Skip to content

Instantly share code, notes, and snippets.

@bjorkstromm
Created June 1, 2020 10:05
Show Gist options
  • Save bjorkstromm/111842ffd11e6a1f94d90f261640f013 to your computer and use it in GitHub Desktop.
Save bjorkstromm/111842ffd11e6a1f94d90f261640f013 to your computer and use it in GitHub Desktop.
Front Door - Access Restrictions
$ResourceGroup = "<your RG>"
$AppName = "<your App>"
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_13.73.248.16/29 --ip-address 13.73.248.16/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.36.120.104/29 --ip-address 20.36.120.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.37.64.104/29 --ip-address 20.37.64.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.37.156.120/29 --ip-address 20.37.156.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.37.195.0/29 --ip-address 20.37.195.0/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.37.224.104/29 --ip-address 20.37.224.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.38.84.72/29 --ip-address 20.38.84.72/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.38.136.104/29 --ip-address 20.38.136.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.39.11.8/29 --ip-address 20.39.11.8/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.41.4.88/29 --ip-address 20.41.4.88/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.41.64.120/29 --ip-address 20.41.64.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.41.192.104/29 --ip-address 20.41.192.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.42.4.120/29 --ip-address 20.42.4.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.42.129.152/29 --ip-address 20.42.129.152/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.42.224.104/29 --ip-address 20.42.224.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.43.41.136/29 --ip-address 20.43.41.136/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.43.65.128/29 --ip-address 20.43.65.128/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.43.130.80/29 --ip-address 20.43.130.80/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.45.112.104/29 --ip-address 20.45.112.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.45.192.104/29 --ip-address 20.45.192.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.150.160.96/29 --ip-address 20.150.160.96/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.189.106.112/29 --ip-address 20.189.106.112/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.192.161.104/29 --ip-address 20.192.161.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_20.192.225.48/29 --ip-address 20.192.225.48/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.67.48.104/29 --ip-address 40.67.48.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.74.30.72/29 --ip-address 40.74.30.72/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.80.56.104/29 --ip-address 40.80.56.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.80.168.104/29 --ip-address 40.80.168.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.80.184.120/29 --ip-address 40.80.184.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.82.248.248/29 --ip-address 40.82.248.248/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_40.89.16.104/29 --ip-address 40.89.16.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.12.41.8/29 --ip-address 51.12.41.8/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.12.193.8/29 --ip-address 51.12.193.8/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.104.25.128/29 --ip-address 51.104.25.128/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.105.80.104/29 --ip-address 51.105.80.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.105.88.104/29 --ip-address 51.105.88.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.107.48.104/29 --ip-address 51.107.48.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.107.144.104/29 --ip-address 51.107.144.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.120.40.104/29 --ip-address 51.120.40.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.120.224.104/29 --ip-address 51.120.224.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.137.160.112/29 --ip-address 51.137.160.112/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_51.143.192.104/29 --ip-address 51.143.192.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_52.136.48.104/29 --ip-address 52.136.48.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_52.140.104.104/29 --ip-address 52.140.104.104/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_52.150.136.120/29 --ip-address 52.150.136.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_52.228.80.120/29 --ip-address 52.228.80.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_102.133.56.88/29 --ip-address 102.133.56.88/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_102.133.216.88/29 --ip-address 102.133.216.88/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_147.243.0.0/16 --ip-address 147.243.0.0/16
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_191.233.9.120/29 --ip-address 191.233.9.120/29
az webapp config access-restriction add --priority 100 --action Allow -g $ResourceGroup -n $AppName --rule-name FrontDoor_191.235.225.128/29 --ip-address 191.235.225.128/29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment