Skip to content

Commit a7dae42

Browse files
authored
Merge pull request #3491 from jonathanmedd/Add-AzureRmVMDataDisk
Add-AzureRmVMDataDisk Help Example 2
2 parents a3a4d4a + ee7538f commit a7dae42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'Da
631631
<command:example><maml:title>Example 2: Add a data disk to an existing virtual machine</maml:title>
632632
<dev:code>PS C:\&gt;$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
633633
PS C:\&gt; Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty
634-
PS C:\&gt; Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine</dev:code>
634+
PS C:\&gt; Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -VM $VirtualMachine</dev:code>
635635
<dev:remarks><maml:para>The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable.
636636
</maml:para>
637637
<maml:para>The second command adds a data disk to the virtual machine stored in $VirtualMachine.

src/ResourceManager/Compute/Commands.Compute/help/Add-AzureRmVMDataDisk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The URI of each disk is stored in $DataDiskVhdUri01, $DataDiskVhdUri02, and $Dat
4949
```
5050
PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
5151
PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty
52-
PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine
52+
PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -VM $VirtualMachine
5353
```
5454

5555
The first command gets the virtual machine named VirtualMachine07 by using the **Get-AzureRmVM** cmdlet.

0 commit comments

Comments
 (0)