I'd like to be able to do the following:
- Generate an
ApplicationPassword
without generating the actualvalue
for the password (let Azure do it, similar to the way Azure generates the secret value for you in the UI, or thatsecretText
is a return value from this azure api method: https://learn.microsoft.com/en-us/graph/api/application-addpassword?view=graph-rest-1.0&tabs=http) - Put that secret in an Azure key vault
- Redeploy the stack without having it generate a new secret everytime
Is this possible?
The reason I'd like to not specify the secret value, is that I then need to commit the secret value to code, which I don't want.
The only workaround I can think of is generating the secret value in code, storing it in keyvault, retrieving it from keyvault and using that to create the ApplicationPassword
, but then that would cause Pulumi to create a new secret in the keyvault (and then a new ApplicationPassword
) each time I deploy the stack.