Microsoft.Storage storageAccounts/fileServices/shares 2019-04-01
Bicep resource definition
The storageAccounts/fileServices/shares resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts/fileServices/shares resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Storage/storageAccounts/fileServices/shares@2019-04-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
metadata: {
{customized property}: 'string'
}
shareQuota: int
}
}
Property values
FileShareProperties
Name | Description | Value |
---|---|---|
metadata | A name-value pair to associate with the share as metadata. | FileSharePropertiesMetadata |
shareQuota | The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). | int Constraints: Min value = 1 Max value = 5120 |
FileSharePropertiesMetadata
Name | Description | Value |
---|
Microsoft.Storage/storageAccounts/fileServices/shares
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 3 Max length = 3 (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: storageAccounts/fileServices |
properties | Properties of the file share. | FileShareProperties |
Quickstart samples
The following quickstart samples deploy this resource type.
Bicep File | Description |
---|---|
Create a storage account with file share | This template creates an Azure storage account and file share. |
Create a storage account with multiple file shares | Creates an Azure storage account and multiple file shares. |
Create Function App and private endpoint-secured Storage | This template allows you to deploy an Azure Function App that communicates with Azure Storage over private endpoints. |
Function App secured by Azure Frontdoor | This template allows you to deploy an azure premium function protected and published by Azure Frontdoor premium. The conenction between Azure Frontdoor and Azure Functions is protected by Azure Private Link. |
Private Function App and private endpoint-secured Storage | This template provisions a function app on a Premium plan that has private endpoints and communicates with Azure Storage over private endpoints. |
ARM template resource definition
The storageAccounts/fileServices/shares resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts/fileServices/shares resource, add the following JSON to your template.
{
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"apiVersion": "2019-04-01",
"name": "string",
"properties": {
"metadata": {
"{customized property}": "string"
},
"shareQuota": "int"
}
}
Property values
FileShareProperties
Name | Description | Value |
---|---|---|
metadata | A name-value pair to associate with the share as metadata. | FileSharePropertiesMetadata |
shareQuota | The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). | int Constraints: Min value = 1 Max value = 5120 |
FileSharePropertiesMetadata
Name | Description | Value |
---|
Microsoft.Storage/storageAccounts/fileServices/shares
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2019-04-01' |
name | The resource name | string Constraints: Min length = 3 Max length = 3 (required) |
properties | Properties of the file share. | FileShareProperties |
type | The resource type | 'Microsoft.Storage/storageAccounts/fileServices/shares' |
Quickstart templates
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure Cloud Shell - VNet storage |
This template deploys Azure Cloud Shell storage into an Azure virtual network. |
Connect to an Azure File Share via a Private Endpoint |
This sample shows how to use configure a virtual network and private DNS zone to access an Azure File Share via a private endpoint. |
Create a storage account with file share |
This template creates an Azure storage account and file share. |
Create a storage account with multiple file shares |
Creates an Azure storage account and multiple file shares. |
Create Function App and private endpoint-secured Storage |
This template allows you to deploy an Azure Function App that communicates with Azure Storage over private endpoints. |
Deploy Drupal with VM Scale Set, Azure Files and Mysql |
Deploy a VM Scale Set behind a load balancer/NAT & each VM running Drupal (Apache / PHP). All nodes share the created Azure file share storage and MySQL database |
Function App secured by Azure Frontdoor |
This template allows you to deploy an azure premium function protected and published by Azure Frontdoor premium. The conenction between Azure Frontdoor and Azure Functions is protected by Azure Private Link. |
Private Function App and private endpoint-secured Storage |
This template provisions a function app on a Premium plan that has private endpoints and communicates with Azure Storage over private endpoints. |
Terraform (AzAPI provider) resource definition
The storageAccounts/fileServices/shares resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts/fileServices/shares resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Storage/storageAccounts/fileServices/shares@2019-04-01"
name = "string"
body = jsonencode({
properties = {
metadata = {
{customized property} = "string"
}
shareQuota = int
}
})
}
Property values
FileShareProperties
Name | Description | Value |
---|---|---|
metadata | A name-value pair to associate with the share as metadata. | FileSharePropertiesMetadata |
shareQuota | The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). | int Constraints: Min value = 1 Max value = 5120 |
FileSharePropertiesMetadata
Name | Description | Value |
---|
Microsoft.Storage/storageAccounts/fileServices/shares
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 3 Max length = 3 (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: storageAccounts/fileServices |
properties | Properties of the file share. | FileShareProperties |
type | The resource type | "Microsoft.Storage/storageAccounts/fileServices/shares@2019-04-01" |