Skip to content

Commit d391dc7

Browse files
committed
[ACA] [DRAFT] Freshness pass on manage-secrets.md.
1 parent 24b0d05 commit d391dc7

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

articles/container-apps/manage-secrets.md

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: how-to
8-
ms.date: 12/05/2024
8+
ms.date: 1/13/2024
99
ms.author: cshoe
1010
ms.custom: devx-track-azurecli, devx-track-azurepowershell, build-2023
1111
---
@@ -134,9 +134,11 @@ To grant access to Key Vault secrets, [create an access policy](/azure/key-vault
134134

135135
1. Under the *Settings* section, select **Identity**.
136136

137-
1. In the *System assigned* tab, select **On**.
137+
1. In the *System assigned* tab, set the *Status* to **On**.
138138

139-
1. Select **Save** to enable system-assigned managed identity.
139+
1. Select **Save** to enable system assigned managed identity.
140+
141+
1. A popup appears to confirm that you want to enable system assigned managed identity and register your container app with Microsoft Entra ID. Select **Yes**.
140142

141143
1. Under the *Settings* section, select **Secrets**.
142144

@@ -146,8 +148,9 @@ To grant access to Key Vault secrets, [create an access policy](/azure/key-vault
146148

147149
- **Name**: The name of the secret.
148150
- **Type**: Select **Key Vault reference**.
149-
- **Key Vault secret URL**: The URI of your secret in Key Vault.
150-
- **Identity**: The identity to use to retrieve the secret from Key Vault.
151+
- **Key Vault secret URL**: The URI of your secret in Key Vault. This URI has the following form:
152+
`https://<YOUR_KEY_VAULT_NAME>.vault.azure.net/secrets/<YOUR_SECRET_NAME>/<32_DIGIT_HEX_ID>`
153+
- **Identity**: Select **System assigned**.
151154

152155
1. Select **Add**.
153156

@@ -164,7 +167,7 @@ Secrets are defined at the application level in the `resources.properties.config
164167
"secrets": [
165168
{
166169
"name": "queue-connection-string",
167-
"keyVaultUrl": "<KEY-VAULT-SECRET-URI>",
170+
"keyVaultUrl": "<KEY_VAULT_SECRET_URI>",
168171
"identity": "system"
169172
}],
170173
}
@@ -174,7 +177,7 @@ Secrets are defined at the application level in the `resources.properties.config
174177

175178
Here, a connection string to a queue storage account is declared in the `secrets` array. Its value is automatically retrieved from Key Vault using the specified identity. To use a user managed identity, replace `system` with the identity's resource ID.
176179

177-
Replace `<KEY-VAULT-SECRET-URI>` with the URI of your secret in Key Vault.
180+
Replace `<KEY_VAULT_SECRET_URI>` with the URI of your secret in Key Vault.
178181

179182
# [Azure CLI](#tab/azure-cli)
180183

@@ -233,23 +236,27 @@ After you've [defined a secret](#defining-secrets) in your container app, you ca
233236

234237
1. Go to your container app in the [Azure portal](https://portal.azure.com).
235238

236-
1. Open the *Revision management* page.
239+
1. Under the *Application* section, select **Revisions and replicas**.
240+
241+
1. In the *Revisions and replicas* page, select **Create new revision**.
237242

238-
1. Select **Create new revision**.
243+
1. In the *Create and deploy new revision* page, in the *Container* tab, under the *Container image* section, select a container.
239244

240-
1. In the *Create and deploy new revision* page, select a container.
245+
1. Select **Edit**.
241246

242-
1. In the *Environment variables* section, select **Add**.
247+
1. In the *Edit a container* context pane, select the **Environment variables** tab.
248+
249+
1. Select **Add**.
243250

244251
1. Enter the following information:
245252

246253
- **Name**: The name of the environment variable.
247254
- **Source**: Select **Reference a secret**.
248-
- **Value**: Select the secret you want to reference.
255+
- **Value**: Select the secret you defined previously.
249256

250257
1. Select **Save**.
251258

252-
1. Select **Create** to create the new revision.
259+
1. In the *Create and deploy new revision* page, select **Create** to create the new revision.
253260

254261
# [ARM template](#tab/arm-template)
255262

@@ -320,35 +327,36 @@ After you've [defined a secret](#defining-secrets) in your container app, you ca
320327

321328
1. Go to your container app in the [Azure portal](https://portal.azure.com).
322329

323-
1. Open the *Revision management* page.
330+
1. Under the *Application* section, select **Revisions and replicas**.
324331

325-
1. Select **Create new revision**.
332+
1. In the *Revisions and replicas* page, select **Create new revision**.
326333

327-
1. In the *Create and deploy new revision* page.
334+
1. In the *Create and deploy new revision* page, in the *Container* tab, under the *Container image* section, select a container.
328335

329-
1. Select a container and select **Edit**.
336+
1. Select **Edit**.
330337

331-
1. In the *Volume mounts* section, expand the **Secrets** section.
338+
1. In the *Edit a container* context pane, select the **Volume mounts** tab.
332339

333340
1. Select **Create new volume**.
334341

335-
1. Enter the following information:
342+
1. In the *Add volume* context pane, enter the following information:
336343

337-
- **Name**: mysecrets
344+
- **Volume type**: Select `Secret`.
345+
- **Name**: `mysecrets`
338346
- **Mount all secrets**: enabled
339347

340348
> [!NOTE]
341349
> If you want to load specific secrets, disable **Mount all secrets** and select the secrets you want to load.
342350
343351
1. Select **Add**.
344352

345-
1. Under *Volume name*, select **mysecrets**.
353+
1. In the *Edit a container* context pane, under *Volume name*, select **mysecrets**.
346354

347-
1. Under *Mount path*, enter **/mnt/secrets**.
355+
1. Under *Mount path*, enter `/mnt/secrets`.
348356

349357
1. Select **Save**.
350358

351-
1. Select **Create** to create the new revision with the volume mount.
359+
1. In the *Create and deploy new revision* page, select **Create** to create the new revision with the volume mount.
352360

353361
# [ARM template](#tab/arm-template)
354362

0 commit comments

Comments
 (0)