Уреди

Делите путем


Upgrade a public IP address using the Azure CLI

Important

On September 30, 2025, Basic SKU public IPs will be retired. For more information, see the official announcement. If you are currently using Basic SKU public IPs, make sure to upgrade to Standard SKU public IPs prior to the retirement date.

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.

In this article, you'll learn how to upgrade a static Basic SKU public IP address to Standard SKU using the Azure CLI.

Prerequisites

  • This tutorial requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.

Upgrade public IP address

In this section, you'll use the Azure CLI and upgrade your static Basic SKU public IP to the Standard SKU.

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 to learn how to disassociate a public IP.

Upgrading a public IP resource retains the IP address.

Important

In the majority of cases, Public IPs upgraded from Basic to Standard SKU continue to have no availability zones. 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.)

Note

If you have multiple basic SKU public IP addresses attached to a virtual machine, it may be easier to use our upgrade script.

az network public-ip update \
    --resource-group myResourceGroup \
    --name myBasicPublicIP \
    --sku Standard

Note

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.

Warning

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.

Verify upgrade

In this section, you'll verify the public IP address is now the standard SKU.

az network public-ip show \
  --resource-group myResourceGroup \
  --name myBasicPublicIP \
  --query sku \
  --output tsv

The command should display Standard.

Next steps

In this article, you upgraded a basic SKU public IP address to standard SKU.

For more information on public IP addresses in Azure, see: