az containerapp ingress sticky-sessions
Commands to set Sticky session affinity for a container app.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp ingress sticky-sessions set |
Configure Sticky session for a container app. |
Core | GA |
az containerapp ingress sticky-sessions show |
Show the Affinity for a container app. |
Core | GA |
az containerapp ingress sticky-sessions set
Configure Sticky session for a container app.
az containerapp ingress sticky-sessions set --affinity {none, sticky}
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Set affinity to sticky for a container app.
az containerapp ingress sticky-sessions set -n my-containerapp -g MyResourceGroup --affinity sticky
Set affinity to none for a container app.
az containerapp ingress sticky-sessions set -n my-containerapp -g MyResourceGroup --affinity none
Required Parameters
Whether the affinity for the container app is Sticky or None.
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 sticky-sessions show
Show the Affinity for a container app.
az containerapp ingress sticky-sessions show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Show a container app's Sticky affinity configuration.
az containerapp ingress sticky-sessions show -n my-containerapp -g MyResourceGroup
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.