Unable to associate public ip with application gateway

Sean Owen 0 Reputation points
2025-11-20T12:38:06.09+00:00

Edit - I have a developer support plan

Recreating ticket per support call -

I had a public ip (IP A) assigned to a VM. I associated the VM to a new IP (IP B) and checked that no resources are still using the public ip (IP A).

I was unable to then use the IP (IP A) for an application gateway.

During the application gateway setup, on the step where you select a public ip (IP A), it gives a generic error message but it does not give any information i can use to debug the issue. The error message it gives is:

This Public IP cannot be associated with this gateway <br/>

What steps can I take to resolve this issue and use my public ip (IP A) for a new application gateway?

Note: I need to reuse the specific ip address so that I can save customer inconvenience asking 80+ customers to update their DNS to point to a new ip (their DNS was setup using A records not CNAME).

I have labelled my public ips IP A and IP B to hopefully make my question more clear.

User's image

User's image

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
{count} votes

1 answer

Sort by: Most helpful
  1. Ravi Varma Mudduluru 3,625 Reputation points Microsoft External Staff Moderator
    2025-11-20T15:35:44.0166667+00:00

    Hello @Sean Owen,

    Thanks for reaching out Microsoft Q&A.

    Could you please check the Public IP address is associated with any other resource with the below command?

    Get-AzPublicIpAddress -Name myPublicIp1 -ResourceGroupName myRg |fl 
    
    
    

    If the Public IP is not attached to any other resource it will show IPConfigurationText : null.

    User's image

    If the Public IP is attached to any other resource, it will show in IPConfigurationText
    image

    Ensure that IP A is a valid Standard SKU public IP. Application Gateways need a Standard SKU IP for configuration. If it’s Basic SKU, you'll need to upgrade it. https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-upgrade?tabs=azureportal

    Make sure that IP A is an IPv4 address and in the same region as your Application Gateway.

    Could you share us the output result in the private message?

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please "Accept the Answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

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.