Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Create a Storage Account and a File Share

Create a Storage Account and a File Share via az-cli in Container Instance

This template demonstrates creating a Storage File Share via az-cli and Azure Container Instance. Modify the template to create a blob or other similar storage operation. The Azure Container Instance and az-cli can be used to create services not directly available in an Azure Resource Manager Template.

Tags: Azure Container Instance, az-cli

Solution overview and deployed resources

The following resources are deployed as part of the solution

  • Storage Account: Storage account for the file share
  • Azure Container Instance: Azure Container Instance, where the az-cli is exectued to create the file share
  • File share: Azure File share accessiable via SMB protocol

Deployment steps

You can click the "Deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repo.


Mount via SMB protocol on Windows, Linux, macOS or Azure Container Instance


Azure Container Instance is available in selected locations. Please use one of the available location for Azure Container Instance resource.

You can’t perform that action at this time.