az containerapp ingress access-restriction
Commands to manage IP access restrictions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp ingress access-restriction list |
List IP access restrictions for a container app. |
Core | GA |
az containerapp ingress access-restriction remove |
Remove IP access restrictions from a container app. |
Core | GA |
az containerapp ingress access-restriction set |
Configure IP access restrictions for a container app. |
Core | GA |
az containerapp ingress access-restriction list
List IP access restrictions for a container app.
az containerapp ingress access-restriction list --name
--resource-group
Examples
List IP access restrictions.
az containerapp ingress access-restriction list -n my-containerapp -g MyResourceGroup
Required Parameters
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp ingress access-restriction remove
Remove IP access restrictions from a container app.
az containerapp ingress access-restriction remove --rule-name
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Remove an IP access restriction.
az containerapp ingress access-restriction remove -n my-containerapp -g MyResourceGroup --rule-name restrictionName
Required Parameters
The IP security restriction name.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp ingress access-restriction set
Configure IP access restrictions for a container app.
az containerapp ingress access-restriction set --action {Allow, Deny}
--ip-address
--rule-name
[--description]
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Add an allow IP access restriction.
az containerapp ingress access-restriction set -n my-containerapp -g MyResourceGroup --rule-name restrictionName --ip-address 192.168.1.1/32 --description "Restriction description." --action Allow
Required Parameters
Whether the IP security restriction allows or denies access. All restrictions must be use the same action. If no restrictions are set, all traffic is allowed.
The address range of the IP security restriction in IPv4 CIDR notation. (for example, '198.51.100.14/24').
The IP security restriction name.
Optional Parameters
The description of the IP security restriction.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI