Skip to content

Commit a64406c

Browse files
committed
added - Add access restrictions rules programmatically
1 parent f2f629e commit a64406c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/app-service/app-service-ip-restrictions.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ You can change *Unmatched rule action* for *Main site* programmatically by doing
305305

306306
### [Azure CLI](#tab/azurecli)
307307

308-
Run the following command in the [Cloud Shell](https://shell.azure.com). Use [the Azure CLI](https://learn.microsoft.com/cli/azure/resource?view=azure-cli-latest#az-resource-update). Accepted values for `ipSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
308+
Run the following command in the [Cloud Shell](https://shell.azure.com). Use [the Azure CLI](/cli/azure/resource?view=azure-cli-latest#az-resource-update). Accepted values for `ipSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
309309

310310
```azurecli-interactive
311311
az resource update --resource-group ResourceGroup --name AppName --resource-type "Microsoft.Web/sites" \
@@ -314,7 +314,7 @@ Run the following command in the [Cloud Shell](https://shell.azure.com). Use [th
314314

315315
### [PowerShell](#tab/powershell)
316316

317-
To do the same with PowerShell, run the following command in the [Cloud Shell](https://shell.azure.com). Use [Azure PowerShell](https://learn.microsoft.com/powershell/module/az.resources/set-azresource). Accepted values for `ipSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
317+
To do the same with PowerShell, run the following command in the [Cloud Shell](https://shell.azure.com). Use [Azure PowerShell](/powershell/module/az.resources/set-azresource). Accepted values for `ipSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
318318

319319
```azurepowershell-interactive
320320
$Resource = Get-AzResource -ResourceType Microsoft.Web/sites -ResourceGroupName ResourceGroup -ResourceName AppName
@@ -370,6 +370,8 @@ resource appService 'Microsoft.Web/sites@2020-06-01' = {
370370
}
371371
```
372372

373+
---
374+
373375
You can also set values manually by doing one of the following options:
374376

375377
* Use an [Azure REST API](/rest/api/azure/) PUT operation on the app configuration in Azure Resource Manager. The location for this information in Azure Resource Manager is:
@@ -395,7 +397,7 @@ You can change *Unmatched rule action* for *Advanced tool site* programmatically
395397

396398
### [Azure CLI](#tab/azurecli)
397399

398-
Run the following command in the [Cloud Shell](https://shell.azure.com). Use [the Azure CLI](https://learn.microsoft.com/cli/azure/resource?view=azure-cli-latest#az-resource-update). Accepted values for `scmIpSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
400+
Run the following command in the [Cloud Shell](https://shell.azure.com). Use [the Azure CLI](/cli/azure/resource?view=azure-cli-latest#az-resource-update). Accepted values for `scmIpSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
399401

400402
```azurecli-interactive
401403
az resource update --resource-group ResourceGroup --name AppName --resource-type "Microsoft.Web/sites" \
@@ -404,7 +406,7 @@ Run the following command in the [Cloud Shell](https://shell.azure.com). Use [th
404406

405407
### [PowerShell](#tab/powershell)
406408

407-
To do the same with PowerShell, run the following command in the [Cloud Shell](https://shell.azure.com). Use [Azure PowerShell](https://learn.microsoft.com/powershell/module/az.resources/set-azresource). Accepted values for `scmIpSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
409+
To do the same with PowerShell, run the following command in the [Cloud Shell](https://shell.azure.com). Use [Azure PowerShell](/powershell/module/az.resources/set-azresource). Accepted values for `scmIpSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
408410

409411
```azurepowershell-interactive
410412
$Resource = Get-AzResource -ResourceType Microsoft.Web/sites -ResourceGroupName ResourceGroup -ResourceName AppName

0 commit comments

Comments
 (0)