Below you will find pages that utilize the taxonomy term “Diskencryption”
Posts
When life gets confusing - check your AzureRM module version
I had to enable disk encryption on some existing Azure VMs this morning but I kept hitting a snag even though I had done this before and was using the same powershell as before. Here’s the PowerShell:
$rgName = ‘MySecureRg’;
$vmName = ‘MySecureVM’;
$KeyVaultName = ‘MySecureVault’;
$KeyVault = Get-AzureRmKeyVault -VaultName $KeyVaultName -ResourceGroupName $rgname;
$diskEncryptionKeyVaultUrl = $KeyVault.VaultUri;
$KeyVaultResourceId = $KeyVault.ResourceId;
Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $KeyVaultResourceId;
Now when I ran Set-AzureRMVMDiskEncryptionExtension it kept prompting me for an AADClient.