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
Copy file name to clipboardExpand all lines: articles/container-apps/storage-mounts-azure-files.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,11 @@ In this tutorial, you learn how to:
30
30
31
31
- Install the latest version of the [Azure CLI](/cli/azure/install-azure-cli).
32
32
33
-
## Set up
33
+
## Set up the environment
34
34
35
35
The following commands help you define variables and ensure your Container Apps extension is up to date.
36
36
37
-
1.Log in to the Azure CLI.
37
+
1.Sign in to the Azure CLI.
38
38
39
39
# [Bash](#tab/bash)
40
40
@@ -437,14 +437,30 @@ Now you can update the container app configuration to support the storage mount.
437
437
438
438
1. Open *app.yaml* in a code editor.
439
439
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:
441
441
442
442
```yml
443
443
template:
444
444
volumes:
445
445
- name: my-azure-file-volume
446
446
storageName: mystoragemount
447
447
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
448
464
```
449
465
450
466
The new `template.volumes` section includes the following properties.
0 commit comments