MicrosoftDocs / azure-docs

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

The commands I have tried don't work!Th #122170

Closed spalmstr closed 1 week ago

spalmstr commented 2 weeks ago

[Enter feedback here] The command az vm show -n $vmName -g $rgName --query [securityProfile.encryptionAtHost] -o tsv fails. If the Resource Group is the simple resource group name, it can't be found. If you use the full id, you get an invalid API error. Updating the CLI doesn't help - it is already on the latest version.

So, I've had to abandon the attempt at configuring the VM for Encryption at Host.


Document Details

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

PesalaPavan commented 2 weeks ago

@spalmstr Thanks for your feedback! We will investigate and update as appropriate.

ManoharLakkoju-MSFT commented 1 week ago

Hi @spalmstr It seems like there might be an issue with the command you used. You can try using the following command to check the encryption status of your VM:

az vm encryption show --name MyVM -g MyResourceGroup

This command should return the encryption status of your VM. If you still face issues, please provide more information about the error message you received, and I will try to help you further.

ManoharLakkoju-MSFT commented 1 week ago

@spalmstr We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation