question

AmolAdminaccount-9481 avatar image
0 Votes"
AmolAdminaccount-9481 asked sikumars commented

ARM Template - How to use keyvault secret in custom data

I want to deploy a VM scale set using Cent OS. There is need to provide a custom data for OS so that it can activate using a key.

this key needs to be stored securely in Azure key vault. However custom data is pure string.

How a key can be read from keyvault and provided as custom data in Azure scale set ARM template?

azure-key-vault
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the below answer helped. If this answers your query, please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
Thanks,

0 Votes 0 ·

1 Answer

sikumars avatar image
0 Votes"
sikumars answered sikumars edited

Hello @AmolAdminaccount-9481,

Thanks for reaching out.

Azure Key Vault Secrets, provides secure storage of secrets, such as passwords and database connection strings. For more information, see About Secrets.

Hence, stored secret value can be retrieved through template parameter file. It's worth to refer following Doc, which explained in detail about "how to Integrate Azure Key Vault in your ARM template deployment for standalone windows VM deployment" but same logic can applied in your scenario.

Hope this helps.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.