You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -175,22 +175,23 @@ Replace `<KEY-VAULT-SECRET-URI>` with the URI of your secret in Key Vault.
175
175
176
176
# [Azure CLI](#tab/azure-cli)
177
177
178
-
Secrets are managed using the `az containerapp secret` CLI subgroup.
178
+
When you create a container app, secrets are defined using the `--secrets` parameter.
179
179
180
-
- The `--secrets` parameter accepts a space-delimited set of name/value pairs.
180
+
- The parameter accepts a space-delimited set of name/value pairs.
181
181
- Each pair is delimited by an equals sign (`=`).
182
182
- To specify a Key Vault reference, use the format `<SECRET_NAME>=keyvaultref:<KEY_VAULT_SECRET_URI>,identityref:<MANAGED_IDENTITY_ID>`. For example, `queue-connection-string=keyvaultref:https://mykeyvault.vault.azure.net/secrets/queuereader,identityref:/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/my-identity`.
183
183
184
-
The following command sets a secret for a container app using a Key Vault reference.
Here, a connection string to a queue storage account is declared in the `--secrets` parameter. Replace `<KEY_VAULT_SECRET_URI>` with the URI of your secret in Key Vault. Replace `<MANAGED_IDENTITY_ID>` with the resource ID of a user assigned identity. For system assigned identity, use `System` instead of the resource ID. The identity must have access to the Key Vault secret.
194
+
Here, a connection string to a queue storage account is declared in the `--secrets` parameter. Replace `<KEY_VAULT_SECRET_URI>` with the URI of your secret in Key Vault. Replace `<USER_ASSIGNED_IDENTITY_ID>` with the resource ID of the user assigned identity. For system assigned identity, use `System` instead of the resource ID.
0 commit comments