You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/ip-services/public-ip-upgrade-portal.md
+124-9Lines changed: 124 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,56 @@
1
1
---
2
-
title: 'Upgrade a public IP address - Azure portal'
3
-
description: In this article, you learn how to upgrade a basic SKU public IP address using the Azure portal.
2
+
title: 'Upgrade a public IP address'
3
+
description: Learn to upgrade a basic SKU public IP address to a standard SKU ip address using the Azure portal, Azure CLI, or Azure PowerShell.
4
4
author: mbender-ms
5
5
ms.author: mbender
6
-
ms.date: 08/24/2023
6
+
ms.date: 11/25/2024
7
7
ms.service: azure-virtual-network
8
8
ms.subservice: ip-services
9
9
ms.topic: how-to
10
10
ms.custom: template-how-to, engagement-fy23
11
11
---
12
12
13
-
# Upgrade a public IP address using the Azure portal
13
+
# Upgrade a public IP address using the Azure portal, Azure CLI, or Azure PowerShell
14
14
15
15
>[!Important]
16
16
>On September 30, 2025, Basic SKU public IPs will be retired. For more information, see the [official announcement](https://azure.microsoft.com/updates/upgrade-to-standard-sku-public-ip-addresses-in-azure-by-30-september-2025-basic-sku-will-be-retired/). If you are currently using Basic SKU public IPs, make sure to upgrade to Standard SKU public IPs prior to the retirement date.
17
17
18
18
Azure public IP addresses are created with a SKU, either Basic or Standard. The SKU determines their functionality including allocation method, feature support, and resources they can be associated with.
19
19
20
-
In this article, you'll learn how to upgrade a static Basic SKU public IP address to Standard SKU in the Azure portal.
20
+
In this article, you learn how to upgrade a static Basic SKU public IP address to Standard SKU in the Azure portal, Azure CLI, or Azure PowerShell.
21
21
22
22
## Prerequisites
23
23
24
-
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
25
-
* A static basic SKU public IP address in your subscription. For more information, see [Create a basic SKU public IP address using the Azure portal](./create-public-ip-portal.md?tabs=option-1-create-public-ip-basic#create-a-basic-sku-public-ip-address).
24
+
# [Azure portal](#tab/azureportal)
25
+
26
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
27
+
- A static basic SKU public IP address in your subscription. For more information, see [Create a basic SKU public IP address using the Azure portal](./create-public-ip-portal.md?tabs=option-1-create-public-ip-basic#create-a-basic-sku-public-ip-address).
28
+
29
+
# [Azure CLI](#tab/azurecli/)
30
+
31
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
32
+
- A **static** basic SKU public IP address in your subscription. For more information, see [Create a basic public IP address using the Azure CLI](./create-public-ip-cli.md?tabs=create-public-ip-basic%2Ccreate-public-ip-zonal%2Crouting-preference#create-public-ip).
- This tutorial requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
37
+
38
+
# [Azure PowerShell](#tab/azurepowershell/)
39
+
40
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
41
+
- A **static** basic SKU public IP address in your subscription. For more information, see [Create a basic public IP address using PowerShell](./create-public-ip-powershell.md?tabs=create-public-ip-basic%2Ccreate-public-ip-non-zonal%2Crouting-preference#create-public-ip).
42
+
- Access to Azure PowerShell installed locally or Azure Cloud Shell.
43
+
- If you choose to install and use PowerShell locally, this article requires the Azure PowerShell module version 5.4.1 or later. Run `Get-Module -ListAvailable Az` to find the installed version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
44
+
45
+
---
26
46
27
47
## Upgrade public IP address
28
48
29
-
In this section, you'll sign in to the Azure portal and upgrade your static Basic SKU public IP to the Standard sku.
49
+
In this section, you upgrade your static Basic SKU public IP to the Standard SKU using the Azure portal, Azure CLI, or Azure PowerShell.
50
+
51
+
# [Azure portal](#tab/azureportal)
52
+
53
+
In this section, you sign in to the Azure portal and upgrade your static Basic SKU public IP to the Standard sku.
30
54
31
55
In order to upgrade a public IP, it must not be associated with any resource. For more information, see [View, modify settings for, or delete a public IP address](./virtual-network-public-ip-address.md#view-modify-settings-for-or-delete-a-public-ip-address) to learn how to disassociate a public IP.
32
56
@@ -58,9 +82,69 @@ Upgrading a public IP resource retains the IP address.
58
82
> [!WARNING]
59
83
> Upgrading a basic public IP to standard SKU can't be reversed. Public IPs upgraded from basic to standard SKU continue to have no guaranteed [availability zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
60
84
85
+
# [Azure CLI](#tab/azurecli/)
86
+
87
+
In order to upgrade a public IP, it must not be associated with any resource. For more information, see [View, modify settings for, or delete a public IP address](./virtual-network-public-ip-address.md#view-modify-settings-for-or-delete-a-public-ip-address) to learn how to disassociate a public IP.
88
+
89
+
Upgrading a public IP resource retains the IP address.
90
+
91
+
>[!IMPORTANT]
92
+
>In the majority of cases, Public IPs upgraded from Basic to Standard SKU continue to have no [availability zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json). This means they cannot be associated with an Azure resource that is either zone-redundant or tied to a pre-specified zone in regions where this is offered. (In rare cases where the Basic Public IP has a specific zone assigned, it will retain this zone when upgraded to Standard.)
93
+
94
+
> [!NOTE]
95
+
> If you have multiple basic SKU public IP addresses attached to a virtual machine, it may be easier to use our [upgrade script](public-ip-upgrade-vm.md).
96
+
97
+
```azurecli-interactive
98
+
az network public-ip update \
99
+
--resource-group myResourceGroup \
100
+
--name myBasicPublicIP \
101
+
--sku Standard
102
+
103
+
```
104
+
> [!NOTE]
105
+
> The basic public IP you are upgrading must have static assignment. You'll receive a warning that the IP can't be upgraded if you try to upgrade a dynamically allocated IP address. Change the IP address assignment to static before upgrading.
106
+
107
+
> [!WARNING]
108
+
> Upgrading a basic public IP to standard SKU can't be reversed. Public IPs upgraded from basic to standard SKU continue to have no guaranteed [availability zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
109
+
110
+
# [Azure PowerShell](#tab/azurepowershell/)
111
+
112
+
In order to upgrade a public IP, it must not be associated with any resource. For more information, see [View, modify settings for, or delete a public IP address](./virtual-network-public-ip-address.md#view-modify-settings-for-or-delete-a-public-ip-address) to learn how to disassociate a public IP.
113
+
114
+
Upgrading a public IP resource retains the IP address.
115
+
116
+
>[!IMPORTANT]
117
+
>In the majority of cases, Public IPs upgraded from Basic to Standard SKU continue to have no [availability zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json). This means they cannot be associated with an Azure resource that is either zone-redundant or tied to a pre-specified zone in regions where this is offered. (In rare cases where the Basic Public IP has a specific zone assigned, it will retain this zone when upgraded to Standard.)
118
+
119
+
> [!NOTE]
120
+
> If you have multiple basic SKU public IP addresses attached to a virtual machine, it may be easier to use our [upgrade script](public-ip-upgrade-vm.md).
121
+
122
+
```azurepowershell-interactive
123
+
### Place the public IP address into a variable. ###
124
+
$ip = @{
125
+
Name = 'myBasicPublicIP'
126
+
ResourceGroupName = 'myResourceGroup'
127
+
}
128
+
$pubIP = Get-AzPublicIpAddress @ip
129
+
130
+
### Set the SKU to standard. ###
131
+
$pubIP.Sku.Name = 'Standard'
132
+
Set-AzPublicIpAddress -PublicIpAddress $pubIP
133
+
134
+
```
135
+
> [!NOTE]
136
+
> The basic public IP you are upgrading must have static assignment. You'll receive a warning that the IP can't be upgraded if you try to upgrade a dynamically allocated IP address. Change the IP address assignment to static before upgrading.
137
+
138
+
> [!WARNING]
139
+
> Upgrading a basic public IP to standard SKU can't be reversed. Public IPs upgraded from basic to standard SKU continue to have no guaranteed [availability zones](../../reliability/availability-zones-overview.md).
140
+
141
+
---
142
+
61
143
## Verify upgrade
62
144
63
-
In this section, you'll verify the public IP address is now the standard sku.
145
+
In this section, you verify the public IP address is now the standard SKU using the Azure portal, Azure CLI, or Azure PowerShell.
146
+
147
+
# [Azure portal](#tab/azureportal)
64
148
65
149
1. Sign in to the [Azure portal](https://portal.azure.com).
66
150
@@ -74,6 +158,37 @@ In this section, you'll verify the public IP address is now the standard sku.
74
158
75
159
:::image type="content" source="./media/public-ip-upgrade-portal/verify-upgrade-ip.png" alt-text="Screenshot showing public IP address is standard SKU." border="true":::
76
160
161
+
# [Azure CLI](#tab/azurecli/)
162
+
163
+
```azurecli-interactive
164
+
# Get the SKU of the public IP address.
165
+
az network public-ip show \
166
+
--resource-group myResourceGroup \
167
+
--name myBasicPublicIP \
168
+
--query sku \
169
+
--output tsv
170
+
```
171
+
> [NOTE!]
172
+
> The command should display **Standard**.
173
+
174
+
# [Azure PowerShell](#tab/azurepowershell)
175
+
176
+
```azurepowershell-interactive
177
+
### Place the public IP address into a variable. ###
178
+
$ip = @{
179
+
Name = 'myBasicPublicIP'
180
+
ResourceGroupName = 'myResourceGroup'
181
+
}
182
+
$pubIP = Get-AzPublicIpAddress @ip
183
+
184
+
### Display setting. ####
185
+
$pubIP.Sku.Name
186
+
```
187
+
> [NOTE!]
188
+
> The command should display **Standard**.
189
+
190
+
---
191
+
77
192
## Next steps
78
193
79
194
In this article, you upgraded a basic SKU public IP address to standard SKU.
0 commit comments