Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,874 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The azure vm disk can be cmk or pmk encrypted. Which azure powershell command let's me find the disk encryption type is pmk or cmk. (Note - i am only bothered about pmk and cmk encryption and not other encryption)
Hi,
Please see sample code below:
$disk = Get-AzDisk -ResourceGroupName myResourceGroup -Name myDisk
$disk.Encryption.Type
If Type = EncryptionAtRestWithPlatformKey
then it is PMK, if Type = EncryptionAtRestWithCustomerKey
it is CMK.
Please click Accept Answer if the above was useful.
Thanks.
-TP