Full Version of TypeHandlerVersion in Get-AzVMExtension

McKim, Geoff 6 Reputation points
2020-09-30T15:36:48.023+00:00

Greetings, when using Get-AzVMExtension in Powershell with the AzureDiskEncryption extension, Get-AzVMExtension shows only two levels of version number (e.g., 2.2), while the portal shows 4 (e.g., 2.2.0.10). Does anyone know how to see the full version number in PowerShell?

Azure Disk Encryption
Azure Disk Encryption
An Azure service for virtual machines (VMs) that helps address organizational security and compliance requirements by encrypting the VM boot and data disks with keys and policies that are controlled in Azure Key Vault.
162 questions
{count} vote

2 answers

Sort by: Most helpful
  1. JamesTran-MSFT 36,491 Reputation points Microsoft Employee
    2020-09-30T22:51:49.447+00:00

    @McKim, Geoff
    You should be able to get the full extension version by running the below command from either Azure Cloud Shell or Azure PS for Desktop:

    Connect-AzAccount -Tenant "tenantID"  
    Get-AzVmDiskEncryptionStatus -ResourceGroupName 'RGname' -VMName 'VMname'  
    

    29486-extversion.jpg
    29419-portalext.jpg
    For more info.

    If you have any other questions, please let me know.
    Thank you again for your time and patience throughout this issue.

    ----------

    If any reply/answer helped resolve your question, please remember to "mark as answer" so that others in the community facing similar issues can easily find the solution.


  2. JamesTran-MSFT 36,491 Reputation points Microsoft Employee
    2020-10-08T20:29:05.627+00:00

    @McKim, Geoff
    I apologize for the delayed response!

    Can you try some of my recommendations below and let me know the output.

     Connect-AzAccount -Tenant "tenantID"  
     Get-AzVmDiskEncryptionStatus -ResourceGroupName 'RGname' -VMName 'VMname'  
    

    1- Can you run the "Get-AzVmDiskEncryptionStatus" command within Azure Cloud Shell to see if you're getting the version in the output.
    2- For Azure PS for desktop, can you make sure you have the most up to date modules. You can re-install the whole AzPS module or update your existing one.

    I'm currently running:
    31024-image.png

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.