Reputation: 61
Is there a way to encrypt the VM useraccount password passed during Azure provisioning?
As of now, we need to pass the password in plain text for the password to get set correctly when provisioning the VM, which is security issue.
I need to know is there is some Azure API available for password encryption.
Upvotes: 0
Views: 1933
Reputation: 8727
If you're using a JSON template to deploy the VM you can store the Password in Azure KeyVault and AzureRM will pull the password from there. See: https://azure.microsoft.com/en-us/blog/keyvault-support-for-arm-templates/ for a sample.
If you're using a REST call, you could use a similar technique if you're performing a template deployment.
That help?
Upvotes: 2