Azure-docs: SSH key parameter in "az group deployment create" command

Created on 20 Jun 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

In the Azure CLI script while passing the admin public key replace '$key' with "$key" as shown below.

az group deployment create --resource-group $resourceGroupName --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-vm-sshkey/azuredeploy.json --parameters projectName=$projectName adminUsername=$username adminPublicKey="$key"

Also when entering the value for the SSH public key copy the entire content in *.pub file of the generated keys and paste in the console WITHOUT any quotes.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp doc-bug triaged virtual-machines-linusvc

All 3 comments

@chintanr11 Thanks for your feedback. We are checking on this and will update you shortly.

@chintanr11 I have reproduced the issue and have raised a PR for the document changes.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

varma31 picture varma31  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments