# Inside Azure AKS, utilise Azure File Share

**URL:** <https://discuss.kubernetes.io/t/inside-azure-aks-utilise-azure-file-share/24690>\
**Category:** General Discussions\
**Created:** [July 5, 2023, 12:28pm UTC](https://discuss.kubernetes.io/t/inside-azure-aks-utilise-azure-file-share/24690 "2023-07-05T12:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mani0525](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mani0525](https://discuss.kubernetes.io/u/mani0525)\
**Post date:** [July 5, 2023, 12:28pm UTC](https://discuss.kubernetes.io/t/inside-azure-aks-utilise-azure-file-share/24690/1 "2023-07-05T12:28:16Z")

</div>

I need to access some resource files (.NET 6) because I have numerous Linux containers on Azure AKS. These resources will change roughly every week, thus I want to use Azure File Share as a shared path to store them. Is it a wise strategy?

I’ve tried these two methods, but I can’t get it to work:

```auto
testcontainer:
image: ${DOCKER_REGISTRY-}testcontainer
container_name: ...
build:
  context: .
  dockerfile: src/project/Dockerfile
volumes:
  - myshare:/test

### First attempt ###
volumes:
  myshare:
    driver: local
    driver_opts:
      type: cifs
      o: "mfsymlinks,vers=3.0,username=storageAccountName,password=***,addr=storageAccountName.file.core.windows.net"
      device: "//storageAccountName.file.core.windows.net/shareName"

### Second attempt ###
volumes:
  myshare:
    driver: azure_file
    driver_opts:
      share_name: shareName
      storage_account_name: storageAccountName

```

The initial attempt fails with the message “Error mounting volume: invalid argument.”

Error while mounting volume…plugin “azure\_file” not found" appears after the second attempt.

How can I go about that? Thank to everybody.
