0

我正在尝试获取托管我的应用服务的磁盘的加密状态。

据我了解,应用服务托管在 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"

有关正确获取此加密状态的任何指示吗?

4

2 回答 2

0

无法获取托管 VM 的加密状态。VM 由 Azure 管理,您无法直接访问它们。

您使用的 CLI 命令调用REST API,它只是获取订阅中资源类型为Microsoft.Compute/virtualMachines.

于 2020-08-28T03:15:52.613 回答
0

应用服务是一种 PaaS 产品,因此您作为订阅者对底层组件没有任何访问权或控制权。即使您使用隔离模式或在资源专用的 ASE 中进行部署。所有存储都使用 azure 标准加密服务和 Microsoft 托管密钥进行静态加密。

于 2020-09-12T12:49:20.900 回答