question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webapp:Cannot add access restriction for scm part of the Webapp if the same adress is already used for the regular site

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug If the access restriction has been added for the regular website, and if an extra access restriction is set for the scm-site part is added with the same ip cidr, then an error is thrown back:

cli.azure.cli.core.util : IP address 4.3.2.1/32 already exists.Cannot add duplicate IP address values.

Where 4.3.2.1/32 is the given ip address

To Reproduce az webapp config access-restriction add --resource-group ‘Resource-group’ --name ‘webapp-name’ --action Allow --priority 20 --ip-address ‘4.3.2.1/32’ --rule-name ‘Test1’ --description ‘Test1’

az webapp config access-restriction add --resource-group ‘Resource-group’ --name ‘webapp-name’ --action Allow --priority 20 --ip-address ‘4.3.2.1/32’ --rule-name ‘Test2’ --description ‘Test2’ --scm-site $true

Expected behavior

Adding to the whitelist for the SCM part of the site with the given ip-address

Environment summary Works on azure-cli 2.2.0 Does not work on azure-cli 2.10.1

Additional context Also does not currently work on the azure devops hosted agents and on my machine

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
btardifcommented, Oct 30, 2020

@panchagnula I talked to @madsd and he was going to help take a first pass with all the access restrictions related items.

0reactions
btardifcommented, Nov 9, 2020

This is fixed by #15784

Read more comments on GitHub >

github_iconTop Results From Across the Web

az webapp config access-restriction - Microsoft Learn
Removes an Access Restriction from the webapp. az webapp config access-restriction set. Sets if SCM site is using the same restrictions as the...
Read more >
How to get the IP restriction for azure app service scm website ...
You can edit the SO answer to $WebAppConfig.Properties.scmIpSecurityRestrictions to show all SCM sites IP restrictions in your subscription.
Read more >
App Service Network Troubleshooting - Mr. Brooks' Blog
If a web app cannot reach an endpoint via hostname it's always a good idea to test the IP address that corresponds to...
Read more >
Azure Web App – Removing IP Restrictions
Azure Web App allows us to configure IP Restrictions (same goes for Azure ... "New restricted IP address $IPAddress has been added to...
Read more >
Understanding the Nuts and Bolts of SAP Fiori Development ...
Without this connection, the web app cannot use features of the Shell control or the UI5 Flexibility services. If you want to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found