locked
Unable to perform disk encryption RRS feed

  • Question

  • I'm trying to perform disk encryption from Azure PS for 1 of the WS 2016 VM. I am encountering the following error when I execute the PS.

    Below is the PS script.

    $rgName = 'SELENIUM';
    $vmName = 'seleniumvm';
    $KeyVaultName = 'selenium';
    $KeyVault = Get-AzureRmKeyVault -VaultName $KeyVaultName -ResourceGroupName $rgname;
    $diskEncryptionKeyVaultUrl = $KeyVault.VaultUri;
    $KeyVaultResourceId = $KeyVault.ResourceId;

    Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $KeyVaultResourceId;

    Referred from here.


    Regards,

    Srivatsa



    Tuesday, October 30, 2018 2:46 PM

All replies