From d32169ae03f23d26f2d1e6a5c8415c1c434c63ec Mon Sep 17 00:00:00 2001 From: srozemuller <43162899+srozemuller@users.noreply.github.com> Date: Tue, 1 Jun 2021 03:49:54 +0200 Subject: [PATCH] typo in examples resourcegroup parameter (#15146) --- src/Compute/Compute/help/Set-AzVMOSDisk.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Compute/Compute/help/Set-AzVMOSDisk.md b/src/Compute/Compute/help/Set-AzVMOSDisk.md index bdf70e01d9e3..d087910dd922 100644 --- a/src/Compute/Compute/help/Set-AzVMOSDisk.md +++ b/src/Compute/Compute/help/Set-AzVMOSDisk.md @@ -70,7 +70,7 @@ PS C:\> Set-AzVMOSDisk -VM $VirtualMachine -Name "OsDisk12" -VhdUri "os.vhd" -Ca PS C:\> $VirtualMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Linux -ComputerName "MainComputer" -Credential (Get-Credential) PS C:\> $VirtualMachine = Set-AzVMSourceImage -VM $VirtualMachine -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.10" -Version "latest" -Caching ReadWrite PS C:\> $VirtualMachine = Set-AzVMOSDisk -VM $VirtualMachine -Name "osDisk.vhd" -VhdUri "https://mystorageaccount.blob.core.windows.net/disks/" -CreateOption FromImage -PS C:> New-AzVM -VM $VirtualMachine -ResouceGroupName "ResourceGroup11" +PS C:> New-AzVM -VM $VirtualMachine -ResourceGroupName "ResourceGroup11" ``` The first command gets the availability set named AvailabilitySet13 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. @@ -85,7 +85,7 @@ PS C:\> $AvailabilitySet = Get-AzAvailabilitySet -ResourceGroupName "ResourceGro PS C:\> $VirtualMachine = New-AzVMConfig -VMName "VirtualMachine17" -VMSize "Standard_A1" PS C:\> $VirtualMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Linux -ComputerName "MainComputer" -Credential (Get-Credential) PS C:\> $VirtualMachine = Set-AzVMOSDisk -VM $VirtualMachine -Name "osDisk.vhd" -SourceImageUri "https://mystorageaccount.blob.core.windows.net/vhds/myOSImage.vhd" -VhdUri "https://mystorageaccount.blob.core.windows.net/disks/" -CreateOption fromImage -Linux -PS C:> New-AzVM -VM $VirtualMachine -ResouceGroupName "ResourceGroup11" +PS C:> New-AzVM -VM $VirtualMachine -ResourceGroupName "ResourceGroup11" ``` The first command gets the availability set named AvailabilitySet13 in the resource group named ResourceGroup11 and stores that object in the $AvailabilitySet variable. @@ -99,7 +99,7 @@ The final command sets the properties on the virtual machine in $VirtualMachine. PS C:\> $AvailabilitySet = Get-AzAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet13" PS C:\> $VirtualMachine = New-AzVMConfig -VMName "VirtualMachine17" -VMSize "Standard_A1" PS C:\> $VirtualMachine = Set-AzVMOSDisk -VM $VirtualMachine -Name "osDisk.vhd" -VhdUri "https://mystorageaccount.blob.core.windows.net/disks/" -CreateOption Attach -Linux -PS C:> New-AzVM -VM $VirtualMachine -ResouceGroupName "ResourceGroup11" +PS C:> New-AzVM -VM $VirtualMachine -ResourceGroupName "ResourceGroup11" ``` The first command gets the availability set named AvailabilitySet13 in the resource group named ResourceGroup11 and stores that object in the $AvailabilitySet variable. @@ -112,7 +112,7 @@ The final command sets the properties on the virtual machine in $VirtualMachine. ``` PS C:\> $VirtualMachine = New-AzVMConfig -VMName "VirtualMachine17" -VMSize "Standard_A1" PS C:> $VirtualMachine = Set-AzVMOSDisk -VM $VirtualMachine -Name "OsDisk12" -VhdUri "os.vhd" -Caching ReadWrite -Windows -CreateOption "Attach" -DiskEncryptionKeyUrl "https://mytestvault.vault.azure.net/secrets/Test1/514ceb769c984379a7e0230bddaaaaaa" -DiskEncryptionKeyVaultId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.KeyVault/vaults/mytestvault" -PS C:> New-AzVM -VM $VirtualMachine -ResouceGroupName " ResourceGroup11" +PS C:> New-AzVM -VM $VirtualMachine -ResourceGroupName " ResourceGroup11" ``` This example sets the disk encryption settings on a virtual machine operating system disk.