你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Storage storageAccounts/fileServices/shares 2023-01-01

Bicep 资源定义

storageAccounts/fileServices/share 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Storage/storageAccounts/fileServices/shares 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    accessTier: 'string'
    enabledProtocols: 'string'
    metadata: {
      {customized property}: 'string'
    }
    rootSquash: 'string'
    shareQuota: int
    signedIdentifiers: [
      {
        accessPolicy: {
          expiryTime: 'string'
          permission: 'string'
          startTime: 'string'
        }
        id: 'string'
      }
    ]
  }
}

属性值

storageAccounts/fileServices/shares

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)

字符限制:3-63

有效字符:
小写字母、数字和连字符。

不能以连字符开头或结尾。 不能使用连续的连字符。
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: fileServices
properties 文件共享的属性。 FileShareProperties

FileShareProperties

名称 说明
accessTier 特定共享的访问层。 GpV2 帐户可以在 TransactionOptimized (默认) 、热和冷之间进行选择。 FileStorage 帐户可以选择“高级”。 “酷”
“热”
“Premium”
“TransactionOptimized”
enabledProtocols 用于文件共享的身份验证协议。 只能在创建共享时指定。 “NFS”
“SMB”
metadata 作为元数据与共享关联的名称-值对。 FileSharePropertiesMetadata
rootSquash 属性仅适用于 NFS 共享。 默认值为 NoRootSquash。 “AllSquash”
“NoRootSquash”
“RootSquash”
shareQuota 共享的最大大小(以 GB 为单位)。 必须大于 0 且小于或等于 5 TB (5120)。 对于大型文件共享,最大大小为 102400。 int

约束:
最小值 = 1
最大值 = 102400
signedIdentifiers 共享上指定的存储访问策略的列表。 SignedIdentifier[]

FileSharePropertiesMetadata

名称 说明
{customized property} 字符串

SignedIdentifier

名称 说明
accessPolicy 访问策略 AccessPolicy
id 存储访问策略的唯一标识符。 字符串

AccessPolicy

名称 说明
expiryTime 访问策略的到期时间 字符串
权限 (permission) 缩写权限的列表。 字符串
startTime 访问策略的开始时间 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
使用 VM 规模集、Azure 文件存储和 Mysql 部署 Drupal

部署到 Azure
& 运行 Drupal (Apache/PHP) 的每个 VM,在负载均衡器/NAT 后面部署 VM 规模集。 所有节点共享创建的 Azure 文件共享存储和 MySQL 数据库
Azure Cloud Shell - VNet 存储

部署到 Azure
此模板将 Azure Cloud Shell存储部署到 Azure 虚拟网络中。
通过专用终结点连接到 Azure 文件共享

部署到 Azure
此示例演示如何使用配置虚拟网络和专用 DNS 区域通过专用终结点访问 Azure 文件共享。
创建包含文件共享的存储帐户

部署到 Azure
此模板创建 Azure 存储帐户和文件共享。
创建具有多个文件共享的存储帐户

部署到 Azure
创建 Azure 存储帐户和多个文件共享。
专用函数应用和专用终结点保护的存储

部署到 Azure
此模板在具有专用终结点并通过专用终结点与 Azure 存储通信的高级计划上预配函数应用。
创建 Function App 和专用终结点保护的存储

部署到 Azure
此模板允许部署通过专用终结点与 Azure 存储通信的 Azure 函数应用。
受 Azure Frontdoor 保护的函数应用

部署到 Azure
此模板允许部署受 Azure Frontdoor 高级版保护并发布的 Azure 高级函数。 Azure Frontdoor 与 Azure Functions 之间的连接受Azure 专用链接保护。

ARM 模板资源定义

storageAccounts/fileServices/share 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Storage/storageAccounts/fileServices/shares 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
  "apiVersion": "2023-01-01",
  "name": "string",
  "properties": {
    "accessTier": "string",
    "enabledProtocols": "string",
    "metadata": {
      "{customized property}": "string"
    },
    "rootSquash": "string",
    "shareQuota": "int",
    "signedIdentifiers": [
      {
        "accessPolicy": {
          "expiryTime": "string",
          "permission": "string",
          "startTime": "string"
        },
        "id": "string"
      }
    ]
  }
}

属性值

storageAccounts/fileServices/shares

名称 说明 Value
type 资源类型 “Microsoft.Storage/storageAccounts/fileServices/shares”
apiVersion 资源 API 版本 '2023-01-01'
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)

字符限制:3-63

有效字符:
小写字母、数字和连字符。

不能以连字符开头或结尾。 不能使用连续的连字符。
properties 文件共享的属性。 FileShareProperties

FileShareProperties

名称 说明
accessTier 特定共享的访问层。 GpV2 帐户可以在 TransactionOptimized (默认) 、热和冷之间进行选择。 FileStorage 帐户可以选择“高级”。 “酷”
“热”
“Premium”
“TransactionOptimized”
enabledProtocols 用于文件共享的身份验证协议。 只能在创建共享时指定。 “NFS”
“SMB”
metadata 作为元数据与共享关联的名称-值对。 FileSharePropertiesMetadata
rootSquash 属性仅适用于 NFS 共享。 默认值为 NoRootSquash。 “AllSquash”
“NoRootSquash”
“RootSquash”
shareQuota 共享的最大大小(以 GB 为单位)。 必须大于 0 且小于或等于 5 TB (5120)。 对于大型文件共享,最大大小为 102400。 int

约束:
最小值 = 1
最大值 = 102400
signedIdentifiers 共享上指定的存储访问策略的列表。 SignedIdentifier[]

FileSharePropertiesMetadata

名称 说明
{customized property} 字符串

SignedIdentifier

名称 说明
accessPolicy 访问策略 AccessPolicy
id 存储访问策略的唯一标识符。 字符串

AccessPolicy

名称 说明
expiryTime 访问策略的到期时间 字符串
权限 (permission) 缩写权限的列表。 字符串
startTime 访问策略的开始时间 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
使用 VM 规模集、Azure 文件存储和 Mysql 部署 Drupal

部署到 Azure
& 运行 Drupal (Apache/PHP) 的每个 VM,在负载均衡器/NAT 后面部署 VM 规模集。 所有节点共享创建的 Azure 文件共享存储和 MySQL 数据库
Azure Cloud Shell - VNet 存储

部署到 Azure
此模板将 Azure Cloud Shell存储部署到 Azure 虚拟网络中。
通过专用终结点连接到 Azure 文件共享

部署到 Azure
此示例演示如何使用配置虚拟网络和专用 DNS 区域通过专用终结点访问 Azure 文件共享。
创建包含文件共享的存储帐户

部署到 Azure
此模板创建 Azure 存储帐户和文件共享。
创建具有多个文件共享的存储帐户

部署到 Azure
创建 Azure 存储帐户和多个文件共享。
专用函数应用和专用终结点保护的存储

部署到 Azure
此模板在具有专用终结点并通过专用终结点与 Azure 存储通信的高级计划上预配函数应用。
创建 Function App 和专用终结点保护的存储

部署到 Azure
此模板允许部署通过专用终结点与 Azure 存储通信的 Azure 函数应用。
受 Azure Frontdoor 保护的函数应用

部署到 Azure
此模板允许部署受 Azure Frontdoor 高级版保护并发布的 Azure 高级函数。 Azure Frontdoor 与 Azure Functions 之间的连接受Azure 专用链接保护。

Terraform (AzAPI 提供程序) 资源定义

storageAccounts/fileServices/share 资源类型可以通过针对以下操作进行部署:

  • 资源组

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Storage/storageAccounts/fileServices/shares 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      accessTier = "string"
      enabledProtocols = "string"
      metadata = {
        {customized property} = "string"
      }
      rootSquash = "string"
      shareQuota = int
      signedIdentifiers = [
        {
          accessPolicy = {
            expiryTime = "string"
            permission = "string"
            startTime = "string"
          }
          id = "string"
        }
      ]
    }
  })
}

属性值

storageAccounts/fileServices/shares

名称 说明 Value
type 资源类型 “Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01”
name 资源名称 字符串 (必需)

字符限制:3-63

有效字符:
小写字母、数字和连字符。

不能以连字符开头或结尾。 不能使用连续的连字符。
parent_id 此资源的父资源 ID。 类型为资源的 ID: fileServices
properties 文件共享的属性。 FileShareProperties

FileShareProperties

名称 说明
accessTier 特定共享的访问层。 GpV2 帐户可以在 TransactionOptimized (默认) 、热和冷之间进行选择。 FileStorage 帐户可以选择“高级”。 “酷”
“热”
“Premium”
“TransactionOptimized”
enabledProtocols 用于文件共享的身份验证协议。 只能在创建共享时指定。 “NFS”
“SMB”
metadata 作为元数据与共享关联的名称-值对。 FileSharePropertiesMetadata
rootSquash 属性仅适用于 NFS 共享。 默认值为 NoRootSquash。 “AllSquash”
“NoRootSquash”
“RootSquash”
shareQuota 共享的最大大小(以 GB 为单位)。 必须大于 0 且小于或等于 5 TB (5120)。 对于大型文件共享,最大大小为 102400。 int

约束:
最小值 = 1
最大值 = 102400
signedIdentifiers 共享上指定的存储访问策略的列表。 SignedIdentifier[]

FileSharePropertiesMetadata

名称 说明
{customized property} 字符串

SignedIdentifier

名称 说明
accessPolicy 访问策略 AccessPolicy
id 存储访问策略的唯一标识符。 字符串

AccessPolicy

名称 说明
expiryTime 访问策略的到期时间 字符串
权限 (permission) 缩写权限的列表。 字符串
startTime 访问策略的开始时间 字符串