Skip to content

Commit 0210bd8

Browse files
authored
Update remove-public-ip-address-vm.md
1 parent 1123b7d commit 0210bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-network/ip-services/remove-public-ip-address-vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The following example dissociates a public IP address named *myVMPublicIP* from
110110
111111
```azurepowershell
112112
$nic = Get-AzNetworkInterface -Name myVMNic -ResourceGroup myResourceGroup
113-
$nic.IpConfigurations.publicipaddress.id = $null
113+
$nic.IpConfigurations[0].PublicIpAddress = $null
114114
Set-AzNetworkInterface -NetworkInterface $nic
115115
```
116116

0 commit comments

Comments
 (0)