我正在尝试获取托管我的应用服务的磁盘的加密状态。
据我了解,应用服务托管在 Azure 的一些虚拟机中。所以我想检查应用服务托管虚拟机的加密状态。目前我尝试了以下 Azure CLI cmdlet,但它无法找到 VM 主机。我从应用服务 Azure 门户中的 kudu 控制台获取了主机名。
--Get the hostname(VM name) of App service from kudu console
>hostname
R***********
--Using Azure CLI to get the host's encryption status
>az vm encryption show -g "myResourceGroupName" -n "R***********"
Getting error "The Resource 'Microsoft.Compute/virtualMachines/R******' under resource group 'myResourceGroupName' was not found. For more details please go to https://*******ARMResourceNotFoundFix"
有关正确获取此加密状态的任何指示吗?