Comments on: Azure Web Sites – block web access to non-production deployment slots https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/ Azure App Service Features and Best Practices Sun, 09 Jun 2019 02:04:32 +0000 hourly 1 https://wordpress.org/?v=6.2.16 By: Diep Nguyen https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1541 Sun, 09 Jun 2019 02:04:32 +0000 http://ruslany.net/?p=32321#comment-1541 In reply to Ruslan.

Thank you.

I will try to whitelist internal IP because I could not use IP restrictions feature on Azure portal because my app is using Cloudflare. IP restrictions feature only works with CloudFlare IP

]]>
By: Ruslan https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1498 Sat, 08 Jun 2019 13:16:28 +0000 http://ruslany.net/?p=32321#comment-1498 In reply to Diep Nguyen.

Oh, I see. If you use the rewrite rule as in this example then you’ll need to whitelist the internal IP ranges (starting with 10 or 100, e.g. “^10\.”).
This articles was written a while ago, before the IP restrictions feature was added to App Service. I would recommend to use the IP restrictions feature on the staging slot instead of the rewrite rule

]]>
By: Diep Nguyen https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1483 Sat, 08 Jun 2019 08:57:25 +0000 http://ruslany.net/?p=32321#comment-1483 In reply to Ruslan.

Hi,

Thanks for the reply.
I mean IP restriction by rewrite module as your above topic, not IP restriction that is configured on Azure portal.
So it is still same?

]]>
By: Ruslan https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1469 Sat, 08 Jun 2019 05:51:33 +0000 http://ruslany.net/?p=32321#comment-1469 In reply to Diep Nguyen.

The IP restrictions are now enforced on the load balancer level and not on the worker VMs. The warmup requests are made directly to worker VMs so they should not be blocked by the IP restriction.

]]>
By: Diep Nguyen https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1453 Sat, 08 Jun 2019 02:50:12 +0000 http://ruslany.net/?p=32321#comment-1453 Hi,

What happens when I use the same hostname for IP restriction and configure to warm up also?

It means Azure will get 403 when warmup that hostname? so how to whitelist ?

Thank you.

]]>
By: Brian D https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1006 Fri, 29 Sep 2017 02:44:11 +0000 http://ruslany.net/?p=32321#comment-1006 Hi,
Great article. Thanks.
Can you add the rewrite rules in the azure dashboard? I can’t find how to do it.
I have to provide the staging deployment slot to management and they have changing IP addresses and dynamic IP addresses, so I would prefer not to have to deploy everytime I add or delete an IP address.
Thanks for your time.
Cheers,
Brian

]]>
By: Felipe https://ruslany.net/2014/04/azure-web-sites-block-web-access-to-non-production-deployment-slots/#comment-1005 Fri, 25 Aug 2017 22:15:52 +0000 http://ruslany.net/?p=32321#comment-1005 Hello, where should I save this file? In the Root the site?

]]>