Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to create secret using dynamic ID with ARM template not with regular key vault.
Hi @sns ,
I assume by "not with regular key vault" you mean not in the Azure portal in the vault itself, but please correct me if I'm wrong.
We have a guide that shows how to use an ARM template to create and set the secret using dynamic ID. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli#reference-secrets-with-dynamic-id
You would use the following:
az group create --name ExampleGroup --location centralus az keyvault create \ --name ExampleVault \ --resource-group ExampleGroup \ --location centralus \ --enabled-for-template-deployment true az keyvault secret set --vault-name ExampleVault --name "ExamplePassword" --value "hVFkk965BuUv"
Then you would reference them with the dynamic ID.
Thanks for confirming! If you were able to get the answer you were looking for, feel free to accept the answer as well. Otherwise let me know if you have further questions.