Skip to content

Commit f644741

Browse files
[Doc-a-thon] Updating disks-enable-customer-managed-keys-cli
Changing UbuntuLTS hardcoded image from the sample scripts, making it more generic so it could cover over other Linux images as well. Making this doc Linux agnostic
1 parent 92a945e commit f644741

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/virtual-machines/linux/disks-enable-customer-managed-keys-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ rgName=yourResourceGroupName
3939
vmName=yourVMName
4040
location=westcentralus
4141
vmSize=Standard_DS3_V2
42-
image=UbuntuLTS
42+
image=LinuxImageURN
4343
diskEncryptionSetName=yourDiskencryptionSetName
4444
4545
diskEncryptionSetId=$(az disk-encryption-set show -n $diskEncryptionSetName -g $rgName --query [id] -o tsv)
@@ -66,11 +66,11 @@ rgName=yourResourceGroupName
6666
vmssName=yourVMSSName
6767
location=westcentralus
6868
vmSize=Standard_DS3_V2
69-
image=UbuntuLTS
69+
image=LinuxImageURN
7070
diskEncryptionSetName=yourDiskencryptionSetName
7171
7272
diskEncryptionSetId=$(az disk-encryption-set show -n $diskEncryptionSetName -g $rgName --query [id] -o tsv)
73-
az vmss create -g $rgName -n $vmssName --image UbuntuLTS --upgrade-policy automatic --admin-username azureuser --generate-ssh-keys --os-disk-encryption-set $diskEncryptionSetId --data-disk-sizes-gb 64 128 --data-disk-encryption-sets $diskEncryptionSetId $diskEncryptionSetId
73+
az vmss create -g $rgName -n $vmssName --image $image --upgrade-policy automatic --admin-username azureuser --generate-ssh-keys --os-disk-encryption-set $diskEncryptionSetId --data-disk-sizes-gb 64 128 --data-disk-encryption-sets $diskEncryptionSetId $diskEncryptionSetId
7474
```
7575

7676
### Create an empty disk encrypted using server-side encryption with customer-managed keys and attach it to a VM

0 commit comments

Comments
 (0)