Error when executing 'az webapp config access-restriction set'
See original GitHub issueWhen I run the command az webapp config access-restriction set --resource-group <resource group> --name <name appservice> --use-same-restrictions-for-scm-site false
It will execute the command with the expected result, but it also gives an error/warning
az : Command group 'webapp config access-restriction' is in preview. It may be changed/removed in a future release.
At line:1 char:12
+ $output = az webapp config access-restriction set --resource-group " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Command group '...future release.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
I want to run it in a pipeline, but due the error/warning the pipelines fails. I see it on Azure CLI versions 2.2.x, 2.7.0 & 2.5.1
How can I prevent the warning/error to occur ?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: c788e908-cee3-ae46-fac4-956d0606ad76
- Version Independent ID: 2ed69bfd-bb05-3d09-072e-00e505856fba
- Content: az webapp config access-restriction
- Content Source: latest/docs-ref-autogen/webapp/config/access-restriction.yml
- Service: app-service-web
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
az webapp config access-restriction - Microsoft Learn
az webapp config access-restriction set. Sets if SCM site is using the same restrictions as the main site.
Read more >Advanced access restriction scenarios in Azure App Service
Currently, you can use two options when configuring Azure App Service access restrictions. The preview feature provides some new scenarios ...
Read more >azure-cli 2.14.1 - PyPI
Fix bug when using set-tier command with service principal login (#15471) ... Fix #13035: Add validation for az webapp config access-restriction to avoid ......
Read more >Azure CLI function app access-restriction "has host bits set"
The error 51.142.236.175/27 has host bits set also occurred to me. But I ran Azure CLI task with command az functionapp config ...
Read more >Whitelist hosted agent for azure app service with azure cli
az webapp config access -restriction add --resource-group 'Resource-group' --name ... if we run the second command we get an error back like this:....
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 FreeTop 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
Top GitHub Comments
With the option
--only-show-errors
it works nicely. Thank again.@sven73a, glad to know it work for you. The
--only-show-errors
option was introduced in https://github.com/Azure/azure-cli/pull/12544, and has been documented at CLI configuration values and environment variables. There is also a corresponding config option[core] only_show_errors
controlling this behavior.