Skip to content

Commit d06a752

Browse files
authored
Sample script argument is invalid.
rgName must be replaced with ResourceGroupName
1 parent 21e33a0 commit d06a752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/windows/disk-encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ $diskEncryptionSet=Get-AzDiskEncryptionSet -ResourceGroupName $ResourceGroupName
170170
171171
$vm = Add-AzVMDataDisk -VM $vm -Name $diskName -CreateOption Empty -DiskSizeInGB $diskSizeinGiB -StorageAccountType $diskSKU -Lun $diskLUN -DiskEncryptionSetId $diskEncryptionSet.Id
172172
173-
Update-AzVM -ResourceGroupName $rgName -VM $vm
173+
Update-AzVM -ResourceGroupName $ResourceGroupName -VM $vm
174174
175175
```
176176

0 commit comments

Comments
 (0)