MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Prepare certificate for use with VM: keyvault name and resource group are required for az vm secret format #89284

Closed moshem-pangea closed 2 years ago

moshem-pangea commented 2 years ago

In "Prepare certificate for use with VM" section: For az vm secret format --secret "$secret" --output json to work, keyvault name and resource group (or keyvault ID, which isn't intuitive, even without resource group) must be added. Otherwise, it'll end up with something like: "ERROR: unable to find vault 'yourVault' in current subscription." Full command should be: vm_secret=$(az vm secret format -s "$secret" --resource-group <YourResourceGroupName> --keyvault $keyvault_name --output json)


Document Details

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

MonikaReddy-MSFT commented 2 years ago

@moshem-pangea - Thanks again for bringing this to our attention. We have updated the Doc and it will be live once its merged. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.