Feature is in preview at the moment (2021-04-14) and requires Premium V3 app service.
In Azure subscription:
- Azure Container Registry
- Azure Storage Account
On local:
- VS 2019 + .NET Framework 4.8
- Docker for Windows
- az cli
In VS 2019, build the solution and publish it to folder: bin\app.publish
Using Windows Terminal, from Frbar.Azure.WinContainerFileShare.Api
folder:
docker build . -t aci-fileshare-poc
docker images
docker run -d -p 8080:80 aci-fileshare-poc
Check that the app is up and running by browsing http://localhost:80.
az login
az account set --subscription "<MSDN subscription ID>"
az acr login --name "<Azure Container Registry Name>"
docker tag <Azure Container Registry Name>.azurecr.io/aci-fileshare-poc:v1
docker push <Azure Container Registry Name>.azurecr.io/aci-fileshare-poc:v1
- From the Azure portal, create an Azure App Service with Windows Container using the pushed image. It has to be Premium Tier, V3.
- Mount the File Share with mount path '/mount' (will be
c:/mount
from the application perspective).
Using the standard .net API, files/directories can be accessed like from any local directory.