Azure BYOS mount storage to somewhere other then /mounts

Mark Vatcher 21 Reputation points
2022-12-20T15:59:22.737+00:00

Have a PHP app running on a windows webapp and am trying to use BYOS but can't seem to map the mount to anything other then under /mounts .

how do i get it mounted under /home/site/wwwroot ? or at least accessible from PHP. PHP can see /mounts/ but can not get into the folder that's mounted there for some reason. (i'm not responsible for PHP, just reporting back what my developer told me)

tried in both azure portal where it forces mounts/ in the path box. tried it in Azure CLI with --mount-path 'anything other then /mounts' and i get "Operation returned an invalid status 'Bad Request' . if mount path starts with /mounts/ the command succeeds. tried both add and update options.

I tried to mklink but get permission denied.

tried virtual applications and directories but the physical path has to be within \site

Any suggestions, this must be possible.

there must be some way of doing this.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,883 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2022-12-23T06:11:03.847+00:00

    @Mark Vatcher We understand you are attempting to use BYOS with your Windows Web App but are receiving an error.

    We verified with our internal documentation that Windows Web Apps and BYOS have two limitations:

    • Only Azure Files can be used. Azure Blobs cannot be used
    • The mount path must start with /mounts. Eg: /mounts/SubDirectoryPath.

    The error that you are encountering is expected. You will need to ensure you are under the /mounts path

    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.