az containerapp job identity
Commands to manage managed identities for container app job.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp job identity assign |
Assign managed identity to a container app job. |
Core | GA |
az containerapp job identity remove |
Remove a managed identity from a container app job. |
Core | GA |
az containerapp job identity show |
Show managed identities of a container app job. |
Core | GA |
az containerapp job identity assign
Assign managed identity to a container app job.
Managed identities can be user assigned or system assigned.
az containerapp job identity assign [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--system-assigned]
[--user-assigned]
Examples
Assign system identity.
az containerapp job identity assign -n my-containerapp-job -g MyResourceGroup --system-assigned
Assign user identity.
az containerapp job identity assign -n my-containerapp-job -g MyResourceGroup --user-assigned myUserIdentityName
Assign user identity (from a different resource group than the containerapp job).
az containerapp job identity assign -n my-containerapp-job -g MyResourceGroup --user-assigned myUserIdentityResourceId
Assign system and user identity.
az containerapp job identity assign -n my-containerapp-job -g MyResourceGroup --system-assigned --user-assigned myUserIdentityResourceId
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 Container Apps Job. 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.
Do not wait for the long-running operation to finish.
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
.
Boolean indicating whether to assign system-assigned identity.
Space-separated user identities.
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 job identity remove
Remove a managed identity from a container app job.
az containerapp job identity remove [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--system-assigned]
[--user-assigned]
[--yes]
Examples
Remove system identity.
az containerapp job identity remove -n my-containerapp-job -g MyResourceGroup --system-assigned
Remove user identity.
az containerapp job identity remove -n my-containerapp-job -g MyResourceGroup --user-assigned myUserIdentityName
Remove system and user identity (from a different resource group than the containerapp job).
az containerapp job identity remove -n my-containerapp-job -g MyResourceGroup --system-assigned --user-assigned myUserIdentityResourceId
Remove all user identities.
az containerapp job identity remove -n my-containerapp-job -g MyResourceGroup --user-assigned
Remove system identity and all user identities.
az containerapp job identity remove -n my-containerapp-job -g MyResourceGroup --system-assigned --user-assigned
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 Container Apps Job. 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.
Do not wait for the long-running operation to finish.
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
.
Boolean indicating whether to assign system-assigned identity.
Space-separated user identities. If no user identities are specified, all user identities will be removed.
Do not prompt for confirmation.
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 job identity show
Show managed identities of a container app job.
az containerapp job identity show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Show managed identities.
az containerapp job identity show -n my-containerapp-job -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 Container Apps Job. 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.