Skip to content

Commit 0c21e6c

Browse files
committed
Incorporate review feedback.
1 parent 94bd307 commit 0c21e6c

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.custom: devx-track-azurecli
88
ms.topic: tutorial
9-
ms.date: 02/26/2025
9+
ms.date: 03/20/2025
1010
ms.author: cshoe
1111
---
1212

@@ -547,18 +547,6 @@ Now that the storage mount is established, you can manipulate files in Azure Sto
547547
548548
This command may take a moment to open the remote shell. Once the shell is ready, you can interact with the storage mount via file system commands. For more information see [Connect to a container console in Azure Container Apps](/azure/container-apps/container-console).
549549
550-
1. Run the following command to see the mounted file share.
551-
552-
```sh
553-
findmnt | grep nginx
554-
```
555-
556-
You see output similar to the following.
557-
558-
```
559-
`-/var/log/nginx //<STORAGE_ACCOUNT_NAME>.file.core.windows.net/<STORAGE_SHARE_NAME> cifs rw,relatime,vers=3.1.1,cache=strict,username=<STORAGE_ACCOUNT_NAME>,uid=0,forceuid,gid=0,forcegid,addr=57.150.154.70,file_mode=0777,dir_mode=0777,soft,persistenthandles,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,bsize=1048576,echo_interval=30,actimeo=1,closetimeo=1
560-
```
561-
562550
1. Change into the nginx */var/log/nginx* folder.
563551
564552
```sh

articles/container-apps/storage-mounts.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.custom: devx-track-azurecli
88
ms.topic: conceptual
9-
ms.date: 02/26/2025
9+
ms.date: 03/20/2025
1010
ms.author: cshoe
1111
zone_pivot_groups: arm-azure-cli-portal
1212
---
@@ -668,17 +668,20 @@ To configure a volume mount for Azure Files storage in the Azure portal, add a f
668668
669669
When mounting a file share from Azure Files, in addition to the mount path, you can also specify a sub path.
670670
671-
- The mount path is the path in the container where you want to mount the volume.
672-
- The sub path is the path in the volume you want to mount.
671+
- **Mount path**: The path in the container where you want to mount the volume.
672+
- **Sub path**: The path in the volume you want to mount.
673673
674674
The sub path is optional. If not specified, the volume root is mounted.
675675
676-
The sub path should be a relative path from the volume root. The sub path should not start with `/`. Specifying a sub path that starts with `/` might prevent your container app from starting up. For example, `my-volume-folder` is a valid sub path, whereas `/my-volume-folder` is not.
676+
The sub path is a relative path from the volume root. The sub path should not start with `/`. Specifying a sub path that starts with `/` might prevent your container app from starting up. For example, `my-volume-folder` is a valid sub path, where `/my-volume-folder` is not.
677677
678678
The sub path can refer to either a folder or a file in the volume.
679679
- If the sub path refers to a folder, the mount path should refer to an empty folder in the container.
680-
- If the sub path refers to a file, the mount path should refer to a file that does not already exist in the container. For example, if the sub path is `my-volume-folder/my-volume-file` and the mount path is `/my-container-folder/my-container-file`, the folder `/my-container-folder` should exist in the container, but should not already contain the file `my-container-file`.
680+
- If the sub path refers to a file, the mount path should refer to a file that does not already exist in the container. For example, suppose the sub path is `my-volume-folder/my-volume-file` and the mount path is `/my-container-folder/my-container-file`. The folder `/my-container-folder` should exist in the container, but it should not already contain the file `my-container-file`.
681681
682682
If the sub path has a trailing `/`, whether it refers to a folder or file, the trailing `/` is ignored.
683683
684-
For more information see [using subPath](https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath).
684+
## Related content
685+
686+
- [Tutorial: Create an Azure Files volume mount in Azure Container Apps](storage-mounts-azure-files.md)
687+
- [Using subPath](https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath)

0 commit comments

Comments
 (0)