Share via

Failed to Delete Basic Public IP Reference from a Basic SKU VPN gateway

Fengqizhang-6483 0 Reputation points
2026-06-22T10:28:22.3+00:00

Hi,

I am trying to do Delete Basic Public IP Reference from a Basic SKU VPN gateway in the Azure portal as per the documentation here https://learn.microsoft.com/en-us/azure/vpn-gateway/basic-sku-public-ip-remove due to this must be done before 30 June 2026.

I have validated this operation and all validations are succeeded:User's image

Then, I am however encountering the following error when doing Delete Basic Public Ip Reference:

User's image

My understanding this is an automated process as part of the deletion process provided by Azure. The inner errors don't really display too much more information.

Any suggestion about this?

Azure VPN Gateway
Azure VPN Gateway

An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 8,641 Reputation points Volunteer Moderator
    2026-06-22T12:45:07.2033333+00:00

    Welcome to Microsoft Q&A

    Hello @Fengqizhang-6483 I hope you are doing well,

    The error code PublicIpForGatewayIsRequired is occurring because Azure architecture dictates that an internet-facing VPN Gateway cannot exist without a public IP endpoint. The system is actively blocking the deletion because completing the action would leave your gateway without a required IP address.

    Because your VPN Gateway is on the Basic SKU, it only supports Basic Public IPs. You cannot remove the IP, and you cannot attach a Standard IP to a Basic gateway.

    To meet the June 30, 2026 deprecation deadline, you should not delete the IP reference. Instead, follow this upgrade path:

    Step 1: Upgrade the VPN Gateway SKU. First, migrate or resize your VPN Gateway from the Basic SKU to a higher, Standard-compatible SKU (such as VpnGw1).

    • Step 2: Upgrade the IP In-Place. Once your gateway is running on the upgraded SKU, navigate directly to your Public IP resource in the Azure portal. You can use the built-in option to upgrade the IP allocation directly from Basic to Standard without needing to delete it.

    If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.