WebApp:'az webapp config access-restriction add' fails when webapp has a pre-existing ServiceTag rule
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
When using az webapp config access-restriction add
to add additional rules to a webapp that already have a rule with a ServiceTag, the command fails
Command Name
az webapp config access-restriction add
Errors:
'ServiceTag' is not valid value for enum <enum 'IpFilterTag'>
Traceback (most recent call last):
Temp\pip-unpacked-wheel-tv8yhkg2\msrest\serialization.py, ln 987, in serialize_enum
enum.py, ln 293, in __call__
enum.py, ln 535, in __new__
enum.py, ln 548, in _missing_
ValueError: 'ServiceTag' is not a valid IpFilterTag
...
Temp\pip-unpacked-wheel-tv8yhkg2\msrest\serialization.py, ln 771, in serialize_data
Temp\pip-unpacked-wheel-tv8yhkg2\msrest\serialization.py, ln 994, in serialize_enum
msrest.exceptions.SerializationError: 'ServiceTag' is not valid value for enum <enum 'IpFilterTag'>
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Create a WebApp and add an access restriction rule with a Service Tag. Im my case, we have an “allow frontdoor” rule using the service tag of AzureFrontDoor.Backend
- Then try and create any additional rules with
az webapp config access-restriction add -g {} -n {} --rule-name {} --priority {} --action {} --ip-address {} --subscription {}
Expected Behavior
Add the additional rule
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.18.0
Extensions:
azure-devops 0.18.0
front-door 1.0.11
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
az webapp config access-restriction - Microsoft Learn
Methods that show, set, add, and remove access restrictions on a webapp. ... Create access restriction rule with checking if the subnet has...
Read more >HOW TO SET UP SERVICE ACCESS RESTRICTIONS IN ...
Share. Save. Save. 534 views 4 months ago. 534 views • Aug 3, 2022. HOW TO SET UP SERVICE ACCESS RESTRICTIONS IN AZURE...
Read more >Advanced access restriction scenarios in Azure App Service
To add a rule that will block traffic from several IP ranges, run the below command. az webapp config access-restriction add --resource-group $ ......
Read more >Zero Data Loss Recovery Appliance - Owner's Guide
Oracle customers that have purchased support have access to electronic support ... then copy the webApp subdirectory and its contents to the OEDA_HOME....
Read more >Whitelist hosted agent for azure app service with azure cli
1 of azure cli this does not seem to work anymore. What we do is the following in azure cli: az webapp config...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Pangamma Official release of the next CLI version containing the fix is 6. May (2.23)
I am also having this same issue.