Hi @Leszek Jaskierny,
Can you confirm whether the Public IP address assigned to the Application Gateway is configured as Static or Dynamic?”
The DNS name you want to reuse (e.g., xxx.westeurope.cloudapp.azure.com) is tied directly to the Public IP resource, not the Application Gateway itself.
- If the Public IP is Static, we can safely detach it from the Gateway and reattach it to the VM, keeping the same DNS name without risk.
- If the Public IP is Dynamic, the IP (and its DNS label) is released as soon as the Gateway is removed or reconfigured, which means the DNS prefix could be lost or taken by someone else.
Kindly let us know if the above helps or you need further assistance on this issue.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Thanks,
Thanmayi