AzureStack-QuickStart-Templ.../101-vm-windows-create-passw...
Deepa Thomas 9392d98c0c Fix AzureStack QuickStartTemplates' Storage account resources to use … (#428)
* Fix AzureStack QuickStartTemplates' Storage account resources to use sku and kind - round2

* Fix AzureStack QuickStartTemplates' Storage account resources to use sku and kind - round3

* Proxy resources don't need to specify api version anymore as the bug is fixed, so remove the api version
2019-04-08 16:25:48 -07:00
..
README.md Adding KV templates (#288) 2017-08-25 13:06:57 -07:00
azuredeploy.json Fix AzureStack QuickStartTemplates' Storage account resources to use … (#428) 2019-04-08 16:25:48 -07:00
azuredeploy.parameters.json Update QuickStartTemplates to add apiprofile 1 (#392) 2018-11-01 16:04:55 -07:00
metadata.json Adding 2 templates that use managed disks and updating the updated date (#399) 2018-11-07 10:45:44 -08:00

README.md

Very simple deployment of a Windows VM

This template allows you to deploy a simple Windows VM by retrieving the password that is stored in a Key Vault. Therefore the password is never put in plain text in the template parameter file.

Add Secret to the Key Vault

You can add the password to the Key Vault using the below commands:

PowerShell

$Secret = ConvertTo-SecureString -String 'Password' -AsPlainText -Force
Set-AzureKeyVaultSecret -VaultName 'Contoso' -Name 'ITSecret' -SecretValue $Secret

CLI

azure keyvault secret set --vault-name Contoso --secret-name ITSecret --value azurepass

Enable Key Vault for VM and Template secret access

After this you'll need to enable the Key Vault for template deployment. You can do this using the following commands:

PowerShell

Set-AzureRmKeyVaultAccessPolicy -VaultName Contoso -EnabledForTemplateDeployment

CLI

azure keyvault set-policy --vault-name Contoso --enabled-for-template-deployment true