Skip to content

Commit e1aec87

Browse files
authored
Merge pull request #115430 from n0099/main
Update remove-public-ip-address-vm.md
2 parents 59716fd + 0210bd8 commit e1aec87

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)