简体   繁体   中英

Change IP address of azure app service

I have an azure app service that runs through cloudflare. As the site was previously running without cloudflare you can find my sites IP address via DNS history here https://securitytrails.com/

Knowing this it means an attacker could bypass my cloudflare DDOS protection.

How can I change the IP address of my azure app service without deleting it?

I'm guessing I could add a public IP and route all traffic from this IP to my existing IP, then I could firewall my existing IP to only accept traffic from the new one. This seems a little convoluted when I could just change the IP, update DNS during nighttime and accept the possibility of a few hours of downtime for users who like to work at 4am (none). Is it possible to force the IP to change?

Directly it is not possible to change the IP address of an Azure App Service. What you can do is either delete the service and recreate it, or downgrade to the free/shared tier.

Both of these actions will relinquish your current IP. When it is recreated, upgraded you will get a new VM instance and a new set of IP addresses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM