Mount Options in Azure Container Apps does not accept "="

Alex 0 Reputation points
2025-05-09T00:08:54.1633333+00:00

I had previously working Mount Options set for an Azure Files mount associated with an Azure Container App:

file_mode=0777,dir_mode=0777,uid=0,gid=0,nobrl

My Container is no longer starting correctly and is throwing an error which I had resolved with the mount options. When I click out of the Mount Options field, it throws a field error (screenshot below). I can't seem to find any way for it to honor any mount options which include an equals sign.Screenshot 2025-05-08 at 8.06.52 PM

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
691 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 3,435 Reputation points Microsoft External Staff Moderator
    2025-05-09T09:47:06.67+00:00

    Hello Alex,

    It seems like you are facing an issue with setting mount options in Azure Container Apps due to the presence of the equals sign (=) in the options. The error you are encountering when trying to set the mount options with the equals sign is causing your container to fail to start correctly.

    To work around this issue, you can try specifying the mount options without using the equals sign. Instead of using the equals sign to assign values to the options, you can separate the options using spaces or commas.

    I’ve tested this locally and observed that when SMB is added, the same error occurs. Kindly review the screenshot below.

    User's image

    The following characters are illegal in a share name: \ / [ ] : ¦ < > + = ; , * ? "

    User's image

    I have checked locally, and when we add NFS, it is working as expected. please check the screenshot below:

    User's image

    Please refer to these documents for further clarification:

    https://learn.microsoft.com/en-us/rest/api/storageservices/Naming-and-Referencing-Shares--Directories--Files--and-Metadata

    Create an NFS Azure file share and mount it on a Linux VM | Microsoft Learn

    By separating the options with spaces or commas, you can try to set the mount options without using the equals sign. This approach might help you avoid the field error you are encountering and allow your container to start correctly.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.