Skip to content

Azure App Service with Windows Container and File Share (Preview Feature PoC)

Notifications You must be signed in to change notification settings

frbar/azure_wincontainer_fileshare_poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Azure App Service with Windows Container and File Share

Feature is in preview at the moment (2021-04-14) and requires Premium V3 app service.

Pre-requisities

In Azure subscription:

  • Azure Container Registry
  • Azure Storage Account

On local:

  • VS 2019 + .NET Framework 4.8
  • Docker for Windows
  • az cli

Build Docker Image

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.

Push Docker Image

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

Run the Container

  • From the Azure portal, create an Azure App Service with Windows Container using the pushed image. It has to be Premium Tier, V3.

App Service - Container Settings

  • Mount the File Share with mount path '/mount' (will be c:/mount from the application perspective).

Azure Storage Mount

Accessing the File Share

Using the standard .net API, files/directories can be accessed like from any local directory.

Azure Storage Mount

Azure Storage Mount

Documentation

About

Azure App Service with Windows Container and File Share (Preview Feature PoC)

Topics

Resources

Stars

Watchers

Forks

Languages