Skip to content

Commit c1fc838

Browse files
authored
Updating a part of the cmdlet in Example 2
Under example 2 the cmdlet Update-AzureRmVM does not support the -Name parameter
1 parent a05a04c commit c1fc838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The second command adds a network interface to the virtual machine stored in $Vi
4545
```
4646
PS C:\> $VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
4747
PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC"
48-
PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine
48+
PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -VM $VirtualMachine
4949
```
5050

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

0 commit comments

Comments
 (0)