Cannot mount Azure file share to Azure function app

Wangxiang Ding 26 Reputation points Microsoft Employee
2022-11-02T08:28:38.36+00:00

Follow Storage considerations for Azure Functions az webapp config storage-account to mount azure file share to auzre function but failed with following issues:

(ResourceNotFound) The Resource 'Microsoft.Web/sites/EmailAnalyzer-Hotpot' under resource group 'Hotpot' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.Web/sites/EmailAnalyzer-Hotpot' under resource group 'Hotpot' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

The cloud shell we used is:
az webapp config storage-account add -g Hotpot -n EmailAnalyzer-Hotpot --custom-id EmailAnalyzer-Hotpot --storage-type AzureFiles --account-name analyzermodelstorage --share-name tfidf --access-key <access-key> --mount-path /tfidf

Could you provide some insights? It appers that mounting azure file share to auzre function app is supported as per the doc. Is there anything wrong in my command? Or other configuraion issues? Thanks!

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
{count} votes

Accepted answer
  1. Sam Cogan 10,812 Reputation points Microsoft Employee Volunteer Moderator
    2022-11-02T08:55:39.6+00:00

    The error your getting has nothing to do with actually mounting the file share, it is stating that it cannot find the Azure App service that you are reffering to int he command. Make sure that the app service and resource group names in the command are correct, also make sure you have selected the correct subscription before running the command, you can do this with

    az account set --subscription <subscriptionId>  
    

0 additional answers

Sort by: Most helpful

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.