Open robbelouwet opened 9 months ago
The behavior is expected for now. The Azure NFS File Share mount in the Azure Container App will be supported in Q1 2024.
Hi there! Any idea on a specific ETA of this feature?
Thanks!
This is currently available in the 2023-11-02-preview
API version in ARM and Bicep, and using the preview containerapp CLI extension.
We're still waiting to add support for it in the Azure portal. In the meantime, you can test it out by ensuring you have the latest Azure CLI installed, as well as 0.3.47 or later of the containerapp extension.
az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --storage-type NfsAzureFile --access-mode ReadOnly --server MyNfsServer.file.core.windows.net --file-share /MyNfsServer/MyShareName
Note that --server
takes the full FQDN of the server. --file-share
is just the server name and share name, following the format /MyNfsServer/MyShareName
exactly.NfsAzureFile
instead of AzureFile
.NFS file shares require that you have a Container Apps environment with a custom VNET, and that it's been connected to the storage account.
We expect to officially announce the feature in public preview in the next 2-3 months.
Thx @anthonychu for the preview, looking forward to this feature! I assume this is under heavy development, the azure portal does not display this type correctly. But we are able to create such a share using your example. We use the ServiceEndpoint instead of the private-endpoint connectivity.
currently:
az containerapp env storage list -g <group> -n <name>
throws in internal server error afterwards though.
How to you specify the credentials (account-key) for this share? In the portal under shares?
update o, found it, there is a flag --azure-file-account-key / -k
option.
Do you know with mount options are suitable?
vers=4,minorversion=1,sec=sys,nconnect=4
I found on the share itself.
This is currently available in the
2023-11-02-preview
API version in ARM and Bicep, and using the preview containerapp CLI extension.We're still waiting to add support for it in the Azure portal. In the meantime, you can test it out by ensuring you have the latest Azure CLI installed, as well as 0.3.47 or later of the containerapp extension.
- When configuring the file share in the Container Apps environment, use
az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --storage-type NfsAzureFile --access-mode ReadOnly --server MyNfsServer.file.core.windows.net --file-share /MyNfsServer/MyShareName
Note that--server
takes the full FQDN of the server.--file-share
is just the server name and share name, following the format/MyNfsServer/MyShareName
exactly.- When creating the volume, use
NfsAzureFile
instead ofAzureFile
.NFS file shares require that you have a Container Apps environment with a custom VNET, and that it's been connected to the storage account.
We expect to officially announce the feature in public preview in the next 2-3 months.
Could you provide an example in Bicep for this, preferably with a private endpoint?
I have tried with both Azure CLI and Bicep but the container always end up in a degraded state with no error messages. The format of server and shareName when using Azure CLI is documented but when it comes to Bicep it's not, therefor an example would help. I looked at the ARM template and ended up with a string interpolation expression to format the path for server and serverName. @anthonychu
This issue is a: (mark with an x)
Issue description
When deploying a container app and mounting an NFS Azure FIle share, the mount operation fails with
mount error(13): Permission denied
. The mount operation uses arguments-t cifs
, which leads me to believe it's trying to mount anCIFS
share instead of anNFS
share.Steps to reproduce
Expected behavior [What you expected to happen.] Container App reaches 'Running' status and is able to mount the NFS File Share.
Actual behavior [What actually happened.] Container App gets stuck in 'Activating' state because the container is unable to mount the file share. After a while, the running status reaches 'Activtion Failed'.
Screenshots
Additional context
N/A