diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index 6433daee9014..ef730b32f162 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -28,6 +28,7 @@ - New-AzDiskUpdateConfig, New-AzSnapshotUpdateConfig * Add ColocationStatus parameter to Get-AzProximityPlacementGroup cmdlet. * Fix broken example code for 'Revoke-AzSnapshotAccess' and 'Grant-AzSnapshotAccess' +* Fix broken example code for 'Set-AzDiskDiskEncryptionKey' and 'Set-AzDiskKeyEncryptionKey' ## Version 3.3.0 * Fix Set-AzVMCustomScriptExtension cmdlet for a VM with managed OD disk which does not have OS profile. diff --git a/src/Compute/Compute/help/Set-AzDiskDiskEncryptionKey.md b/src/Compute/Compute/help/Set-AzDiskDiskEncryptionKey.md index ec48b898039a..08cb21217a83 100644 --- a/src/Compute/Compute/help/Set-AzDiskDiskEncryptionKey.md +++ b/src/Compute/Compute/help/Set-AzDiskDiskEncryptionKey.md @@ -31,6 +31,7 @@ PS C:\> $keyUrl = https://myvault.vault-int.azure-int.net/keys/456; PS C:\> $keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456'; PS C:\> $diskconfig = Set-AzDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $secretUrl -SourceVaultId $secretId; PS C:\> $diskconfig = Set-AzDiskKeyEncryptionKey -Disk $diskconfig -KeyUrl $keyUrl -SourceVaultId $keyId; +PS C:\> $diskConfig.EncryptionSettingsCollection.EncryptionSettingsVersion = '1.1'; PS C:\> New-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Disk $diskconfig; ``` diff --git a/src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md b/src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md index 0b399b051502..ae266440b870 100644 --- a/src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md +++ b/src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md @@ -31,6 +31,7 @@ PS C:\> $keyUrl = https://myvault.vault-int.azure-int.net/keys/456; PS C:\> $keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456'; PS C:\> $diskconfig = Set-AzDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $secretUrl -SourceVaultId $secretId; PS C:\> $diskconfig = Set-AzDiskKeyEncryptionKey -Disk $diskconfig -KeyUrl $keyUrl -SourceVaultId $keyId; +PS C:\> $diskconfig.EncryptionSettingsCollection.EncryptionSettingsVersion = '1.1'; PS C:\> New-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Disk $diskconfig; ```