How to fix "state: NotValidated" in result of "az webapp config storage-account list"

Yasuhisa Shimamura 25 Reputation points
2023-04-28T07:56:32.94+00:00

I want to mount Azure Files to Azure App Service.

Additionally, I want to connect to Azure Files from App Service through a service endpoint.

Azure App Service is configured with VNET integration.

I have allowed the VNET and subnet configured in VNET integration through the Storage firewall and set up a service endpoint.

With this configuration, I have mounted Azure Files in Storage to App Service.

However, when I run az webapp config storage-account list with Azure CLI, I get the following response.


[
  {
    "name": "azure-files-mount",
    "slotSetting": false,
    "value": {
      "accessKey": "my-access-key",
      "accountName": "mystorage",
      "mountPath": "/mounts/share1",
      "shareName": "share1",
      "state": "NotValidated",
      "type": "AzureFiles"
    }
  }
]

Please tell me the solution to set the state to OK.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,111 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,676 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,341 Reputation points MVP
    2023-04-28T09:54:51.0533333+00:00

    Hello @Yasuhisa Shimamura

    To troubleshoot your issue, please first check limitations:

    If above limitations are not related to your case try

    • Ensure that the storage account and the App Service are located in the same region.
    • Check firewall settings or try to enable all traffic
    • Make sure that the "Allow access from" option is set to "Selected networks" and that the appropriate VNet and subnet are added to the "Virtual networks" list.
    • Test the mounted storage. Open SSH session to App Service and execure df -h
      Check latency or general reachability of the storage mount with the following command:
      tcpping <Storageaccount>.file.core.windows.net

    https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux


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.