Skip to content

Commit c512bbc

Browse files
Merge pull request #226464 from cebundy/aca-storage-tutorial
[Container Apps] Clarify steps for adding storage volume to yaml in storage mount tutorial
2 parents f036ec3 + 81b80bb commit c512bbc

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

articles/container-apps/storage-mounts-azure-files.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ In this tutorial, you learn how to:
3030

3131
- Install the latest version of the [Azure CLI](/cli/azure/install-azure-cli).
3232

33-
## Set up
33+
## Set up the environment
3434

3535
The following commands help you define variables and ensure your Container Apps extension is up to date.
3636

37-
1. Log in to the Azure CLI.
37+
1. Sign in to the Azure CLI.
3838

3939
# [Bash](#tab/bash)
4040

@@ -437,14 +437,30 @@ Now you can update the container app configuration to support the storage mount.
437437
438438
1. Open *app.yaml* in a code editor.
439439
440-
1. Add a reference to the storage volumes to the `template` definition.
440+
1. Replace the `volumes: null` definition in the `template` section with a `volumes:` definition referencing the storage volume. The template section should look like the following:
441441
442442
```yml
443443
template:
444444
volumes:
445445
- name: my-azure-file-volume
446446
storageName: mystoragemount
447447
storageType: AzureFile
448+
containers:
449+
- image: nginx
450+
name: my-container-app
451+
volumeMounts:
452+
- volumeName: my-azure-file-volume
453+
mountPath: /var/log/nginx
454+
resources:
455+
cpu: 0.5
456+
ephemeralStorage: 3Gi
457+
memory: 1Gi
458+
initContainers: null
459+
revisionSuffix: ''
460+
scale:
461+
maxReplicas: 1
462+
minReplicas: 1
463+
rules: null
448464
```
449465
450466
The new `template.volumes` section includes the following properties.

0 commit comments

Comments
 (0)