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.

Error when executing 'az webapp config access-restriction set'

See original GitHub issue

When 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.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
sven73acommented, Jun 25, 2020

With the option --only-show-errors it works nicely. Thank again.

0reactions
jiaslicommented, Jun 28, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

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