CmdID

CmdID / az / az webapp / az webapp config / az webapp config access-restriction

az webapp config access-restriction set

Sets if SCM site is using the same restrictions as the main site and default actions. Azure CLI reference

3 examples 4 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Enable SCM site to use same access restrictions as main site.

az webapp config access-restriction set -g ResourceGroup -n AppName --use-same-restrictions-for-scm-site trueIdentify
-gName of resource group.
-nname of the web app.
--use-same-restrictions-for-scm-siteUse same access restrictions for scm site

Set default action to Allow for main site.

az webapp config access-restriction set -g ResourceGroup -n AppName --default-action AllowIdentify
-gName of resource group.
-nname of the web app.
--default-actionConfigure default action for main site

Set default action to Deny for scm site.

az webapp config access-restriction set -g ResourceGroup -n AppName --scm-default-action DenyIdentify
-gName of resource group.
-nname of the web app.
--scm-default-actionConfigure default action for scm site

Options

4 in the Azure CLI reference
--default-actionConfigure default action for main site
--name
--scm-default-actionConfigure default action for scm site
--use-same-restrictions-for-scm-siteUse same access restrictions for scm site