question

Jeff-5482 avatar image
1 Vote"
Jeff-5482 asked rohancragg answered

IP access restrictions in Azure Static Web Apps?

For Azure Static Web Apps, is it possible to configure some type of networking access restriction with a list of IPs for approval/denial? Something similar as what can be done with Function Apps, Storage Accounts, etc.?

azure-static-web-apps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

rohancragg avatar image
0 Votes"
rohancragg answered

Set value for allowedIpRanges in the staticwebapp.config.json file
https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#networking

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

brtrach-MSFT avatar image
0 Votes"
brtrach-MSFT answered

@Jeff-5482 This is a good question as yes, the Web and Function App offerings include IP restrictions, although this was not always the case.

It appears after research that at this time, Azure Static Web Apps do not include IP restriction functionality built in at this time.

Before in web apps, you could add an IP security setting in your web.config file but to my knowledge, this file is not included with the static web app.

As a result, you will need to use something in front of a Static Web App, such as Azure Front Door. For more information on how to use these two products together, please refer to this page here.

Please let us know if there are any further questions or concerns.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.