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-06-01",
  "properties": {
    "metadata": {},
    "shareQuota": "integer",
    "enabledProtocols": "string",
    "rootSquash": "string",
    "accessTier": "string"
  }
}

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
-or-
Microsoft.Storage/storageAccounts/fileServices/shares

See Set name and type for child resources.
apiVersion enum Yes 2019-06-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). For Large File Shares, the maximum size is 102400.
enabledProtocols enum No The authentication protocol that is used for the file share. Can only be specified when creating a share. - SMB or NFS
rootSquash enum No The property is for NFS share only. The default is NoRootSquash. - NoRootSquash, RootSquash, AllSquash
accessTier enum No Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - TransactionOptimized, Hot, Cool, Premium

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.