Closed moshem-pangea closed 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.
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.