az containerapp job secret
Commands to manage secrets.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp job secret list |
List the secrets of a container app job. |
Core | GA |
az containerapp job secret remove |
Remove secrets from a container app job. |
Core | GA |
az containerapp job secret set |
Create/update secrets. |
Core | GA |
az containerapp job secret show |
Show details of a secret. |
Core | GA |
az containerapp job secret list
List the secrets of a container app job.
az containerapp job secret list --name
--resource-group
[--show-values]
Examples
List the secrets of a container app job.
az containerapp job secret list -n my-containerapp-job -g MyResourceGroup
Required Parameters
The name of the container app job for which the secret needs to be retrieved.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Show the secret values.
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 secret remove
Remove secrets from a container app job.
az containerapp job secret remove --name
--resource-group
--secret-names
[--yes]
Examples
Remove secrets from a container app job.
az containerapp job secret remove -n my-containerapp-job -g MyResourceGroup --secret-names MySecret MySecret2
Required Parameters
The name of the container app job for which the secret needs to be retrieved.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
A list of secret(s) for the container app job. Space-separated secret values names.
Optional Parameters
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 secret set
Create/update secrets.
az containerapp job secret set --name
--resource-group
--secrets
Examples
Add secrets to a container app job.
az containerapp job secret set -n my-containerapp-job -g MyResourceGroup --secrets MySecretName1=MySecretValue1 MySecretName2=keyvaultref:https://example.vault.azure.net/secrets/mysecret,identityref:/subscriptions/sub/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity
Update a secret.
az containerapp job secret set -n my-containerapp-job -g MyResourceGroup --secrets MyExistingSecretName=MyNewSecretValue MyExistingSecretName2=keyvaultref:https://example.vault.azure.net/secrets/mysecret,identityref:/subscriptions/sub/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity
Required Parameters
The name of the container app job for which the secret needs to be retrieved.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
A list of secret(s) for the container app job. Space-separated values in 'key=value' or 'key=keyvaultref:keyvaulturl,identityref:identity' format (where 'key' cannot be longer than 20 characters).
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 secret show
Show details of a secret.
az containerapp job secret show --name
--resource-group
--secret-name
Examples
Show the details of a secret.
az containerapp job secret show -n my-containerapp-job -g MyResourceGroup --secret-name MySecret
Required Parameters
The name of the container app job for which the secret needs to be retrieved.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the secret to show.
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