File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/virtual-machines/linux Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ rgName=yourResourceGroupName
39
39
vmName=yourVMName
40
40
location=westcentralus
41
41
vmSize=Standard_DS3_V2
42
- image=UbuntuLTS
42
+ image=LinuxImageURN
43
43
diskEncryptionSetName=yourDiskencryptionSetName
44
44
45
45
diskEncryptionSetId=$(az disk-encryption-set show -n $diskEncryptionSetName -g $rgName --query [id] -o tsv)
@@ -66,11 +66,11 @@ rgName=yourResourceGroupName
66
66
vmssName=yourVMSSName
67
67
location=westcentralus
68
68
vmSize=Standard_DS3_V2
69
- image=UbuntuLTS
69
+ image=LinuxImageURN
70
70
diskEncryptionSetName=yourDiskencryptionSetName
71
71
72
72
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
74
74
```
75
75
76
76
### Create an empty disk encrypted using server-side encryption with customer-managed keys and attach it to a VM
You can’t perform that action at this time.
0 commit comments