Has anyone tried to create secrets in Azure Key Vault using a for loop? Basically, I am trying to iterate through a dictionary with all the secrets I want available in the vault. Pulumi returns errors regarding accessing the vault concurrently, but the secrets seem to get created. Anyone tried this?
03/03/2022, 8:32 PM
I haven't tried it specifically, but can you share the error trace you're getting?
03/04/2022, 5:16 PM
Just found the root cause of the problem. It happens when a vault that contains secrets is deleted by Pulumi destroy. Next time we run Pulumi up, and populate the vault again the issue shows up. The solution around it is to purge the vault manually before running Pulumi again, or create the vault not allowing for soft deletes.