Thank you for reaching out.
I understand you are trying to migrate Application Gateway V1 to V2.
Is it somehow possible to use the public IP of the current Application Gateway and move it to the new Application Gateway?
As documented here It isn't possible to move the IP addresses associated with the existing V1 gateway seamlessly to V2.
This is because the V1 SKU used a Dynamic Public IP Basic SKU and V2 requires a Static Public IP Standard SKU.
I think the better option will be to assign a new static Public IP address Standard SKU to the Application Gateway V2 and perform the migration as described here depending on your requirements.
- A custom DNS zone (for example, contoso.com) that points to the frontend IP address (using an A record) associated with your Standard V1 or WAF V1 gateway. You can update your DNS record to point to the frontend IP or DNS label associated with your Standard_V2 application gateway. Depending on the TTL configured on your DNS record, it may take a while for all your client traffic to migrate to your new V2 gateway.
- You can do a controlled, granular migration using a Traffic Manager profile to incrementally route traffic (weighted traffic routing method) to the new V2 gateway. You can do this by adding the DNS labels of both the V1 and V2 application gateways to the Traffic Manager profile, and CNAMEing your custom DNS record (for example,
www.contoso.com
) to the Traffic Manager domain (for example, contoso.trafficmanager.net). - Update your clients to use the IP address(es) associated with the newly created V2 application gateway. We recommend that you don't use IP addresses directly. Consider using the DNS name label (for example, yourgateway.eastus.cloudapp.azure.com) associated with your application gateway that you can CNAME to your own custom DNS zone (for example, contoso.com).
Hope this helps! Please let me know if you have any questions. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.