Inside Azure AKS, utilise Azure File Share

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:

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.