AZ-801 · Question #179
You have an Azure subscription. The subscription contains a virtual machine named VM1 that runs Windows Server and uses Azure Disk Encryption. You need to identify which Azure Key vault stores the…
The correct answer is C. Get-AzVMDiskEncryptionStatus. To identify the Azure Key Vault storing encryption keys for an Azure Disk Encryption-enabled VM with minimal administrative effort, the Get-AzVMDiskEncryptionStatus PowerShell cmdlet should be used.
Question
Options
- AGet-AzKeyVaultKey
- BGet-AzKeyVault
- CGet-AzVMDiskEncryptionStatus
- DGet-AzDiskEncryptionSet
How the community answered
(62 responses)- A2% (1)
- B6% (4)
- C79% (49)
- D13% (8)
Why each option
To identify the Azure Key Vault storing encryption keys for an Azure Disk Encryption-enabled VM with minimal administrative effort, the `Get-AzVMDiskEncryptionStatus` PowerShell cmdlet should be used.
`Get-AzKeyVaultKey` is used to retrieve specific keys from a known Key Vault, not to identify which Key Vault is associated with a VM's encryption.
`Get-AzKeyVault` lists Key Vaults but does not provide a direct link to which VM uses which vault for disk encryption.
The `Get-AzVMDiskEncryptionStatus` PowerShell cmdlet directly queries a specified virtual machine and returns its Azure Disk Encryption status, including the URI of the Azure Key Vault where the encryption keys for that VM are stored. This provides the required information efficiently.
`Get-AzDiskEncryptionSet` retrieves information about Disk Encryption Sets, which are used for managed disks, but the most direct way to find the Key Vault for a specific VM is through its disk encryption status.
Concept tested: Azure Disk Encryption Key Vault identification
Source: https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azvmdiskencryptionstatus
Topics
Community Discussion
No community discussion yet for this question.