Microsoft.Storage storageAccounts/fileServices/shares template reference

Template format

To create a Microsoft.Storage/storageAccounts/fileServices/shares resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
  "apiVersion": "2019-04-01",
  "properties": {
    "metadata": {},
    "shareQuota": "integer"

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Storage/storageAccounts/fileServices/shares object

Name Type Required Value
name string Yes The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
type enum Yes shares

See Set name and type for child resources.
apiVersion enum Yes 2019-04-01
properties object Yes Properties of the file share. - FileShareProperties object

FileShareProperties object

Name Type Required Value
metadata object No A name-value pair to associate with the share as metadata.
shareQuota integer No The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120).

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Azure Cloud Shell - VNet storage

Deploy to Azure
This template deploys Azure Cloud Shell storage into an Azure virtual network.
Create a storage account with file share

Deploy to Azure
Creates an Azure storage account and file share.
Create a storage account with multiple file shares

Deploy to Azure
Creates an Azure storage account and multiple file shares.