Skip to content

Commit d7623ff

Browse files
authored
Update the example inserting a missing parameter
Provided example works only for OS disk. If you try to mount a data disk with this configuration, the operation fail. With setting inserted in example the problem is solved. The solution it was an outcome of an analysis done with Product Group
1 parent b8d7f51 commit d7623ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ PS C:\> $keyUrl = https://myvault.vault-int.azure-int.net/keys/456;
3131
PS C:\> $keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456';
3232
PS C:\> $diskconfig = Set-AzDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $secretUrl -SourceVaultId $secretId;
3333
PS C:\> $diskconfig = Set-AzDiskKeyEncryptionKey -Disk $diskconfig -KeyUrl $keyUrl -SourceVaultId $keyId;
34+
PS C:\> $diskconfig.EncryptionSettingsCollection.EncryptionSettingsVersion = '1.1';
3435
PS C:\> New-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Disk $diskconfig;
3536
```
3637

0 commit comments

Comments
 (0)