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

Microsoft.NetApp netAppAccounts 2020-07-01

Bicep 资源定义

netAppAccounts 资源类型可以通过针对以下操作进行部署:

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

资源格式

若要创建 Microsoft.NetApp/netAppAccounts 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.NetApp/netAppAccounts@2020-07-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    activeDirectories: [
      {
        activeDirectoryId: 'string'
        adName: 'string'
        aesEncryption: bool
        backupOperators: [
          'string'
        ]
        dns: 'string'
        domain: 'string'
        kdcIP: 'string'
        ldapSigning: bool
        organizationalUnit: 'string'
        password: 'string'
        serverRootCACertificate: 'string'
        site: 'string'
        smbServerName: 'string'
        username: 'string'
      }
    ]
  }
}

属性值

netAppAccounts

名称 说明
name 资源名称 字符串 (必需)

字符限制:1-128

有效字符:
字母数字、下划线字符和连字符。

以字母数字开头。
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
properties NetApp 帐户属性 AccountProperties

AccountProperties

名称 说明
activeDirectories Active Directory ActiveDirectory[]

ActiveDirectory

名称 说明
activeDirectoryId Active Directory 的 ID 字符串
adName Active Directory 计算机的名称。 此可选参数仅在创建 kerberos 卷时使用 字符串

约束:
最小长度 = 1
最大长度 = 64
aesEncryption 如果启用,将为 SMB 通信启用 AES 加密。 bool
backupOperators 要添加到内置备份操作员 Active Directory 组的用户。 不带域说明符的唯一用户名列表 string[]

约束:
最小长度 = 1
最大长度 = 255
dns 仅对 Active Directory 域) (IPv4 的 DNS 服务器 IP 地址的逗号分隔列表 字符串

约束:
Pattern = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
Active Directory 域名 字符串
kdcIP Active Directory 计算机的 kdc 服务器 IP 地址。 此可选参数仅在创建 kerberos 卷时使用。 字符串

约束:
模式 = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
ldapSigning 指定是否需要对 LDAP 流量进行签名。 bool
organizationalUnit Windows Active Directory 中的组织单位 (OU) 字符串
password Active Directory 域管理员的纯文本密码,响应中屏蔽了值 字符串
serverRootCACertificate 启用基于 SSL/TLS 的 LDAP 时,LDAP 客户端需要具有 base64 编码的 Active Directory 证书服务的自签名根 CA 证书,此可选参数仅用于具有 LDAP 用户映射卷的双重协议。 字符串

约束:
最小长度 = 1
最大长度 = 10240
site 服务会将域控制器发现限制为的 Active Directory 站点 字符串
smbServerName SMB 服务器的 NetBIOS 名称。 此名称将在 AD 中注册为计算机帐户,并用于装载卷 字符串
username 有权创建计算机帐户的域用户帐户 字符串

快速入门模板

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

模板 说明
使用 NFSV3/NFSv4.1 卷创建新的 ANF 资源

部署到 Azure
通过此模板,可以使用配置有 NFSV3 或 NFSv4.1 协议的单个容量池和单个卷创建新的 Azure NetApp 文件 资源。 它们与创建任何卷所需的 Azure 虚拟网络和委托子网一起部署
使用 SMB 卷创建新的 ANF 资源

部署到 Azure
使用此模板可以创建新的Azure NetApp 文件资源,其中包含配置了 SMB 协议的单个容量池和单个卷。

ARM 模板资源定义

可以使用面向以下操作部署 netAppAccounts 资源类型:

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

资源格式

若要创建 Microsoft.NetApp/netAppAccounts 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.NetApp/netAppAccounts",
  "apiVersion": "2020-07-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "activeDirectories": [
      {
        "activeDirectoryId": "string",
        "adName": "string",
        "aesEncryption": "bool",
        "backupOperators": [ "string" ],
        "dns": "string",
        "domain": "string",
        "kdcIP": "string",
        "ldapSigning": "bool",
        "organizationalUnit": "string",
        "password": "string",
        "serverRootCACertificate": "string",
        "site": "string",
        "smbServerName": "string",
        "username": "string"
      }
    ]
  }
}

属性值

netAppAccounts

名称 说明 Value
type 资源类型 'Microsoft.NetApp/netAppAccounts'
apiVersion 资源 API 版本 '2020-07-01'
name 资源名称 字符串 (必需)

字符限制:1-128

有效字符:
字母数字、下划线字符和连字符。

以字母数字开头。
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
properties NetApp 帐户属性 AccountProperties

AccountProperties

名称 说明
activeDirectories Active Directory ActiveDirectory[]

ActiveDirectory

名称 说明
activeDirectoryId Active Directory 的 ID 字符串
adName Active Directory 计算机的名称。 此可选参数仅在创建 kerberos 卷时使用 字符串

约束:
最小长度 = 1
最大长度 = 64
aesEncryption 如果启用,将为 SMB 通信启用 AES 加密。 bool
backupOperators 要添加到内置备份操作员 Active Directory 组的用户。 不带域说明符的唯一用户名的列表 string[]

约束:
最小长度 = 1
最大长度 = 255
dns 仅) Active Directory 域 (IPv4 的 DNS 服务器 IP 地址的逗号分隔列表 字符串

约束:
模式 = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
Active Directory 域名 字符串
kdcIP Active Directory 计算机的 kdc 服务器 IP 地址。 此可选参数仅在创建 kerberos 卷时使用。 字符串

约束:
模式 = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
ldapSigning 指定是否需要对 LDAP 流量进行签名。 bool
organizationalUnit Windows Active Directory 中的组织单位 (OU) 字符串
password Active Directory 域管理员的纯文本密码,响应中屏蔽了值 字符串
serverRootCACertificate 启用基于 SSL/TLS 的 LDAP 时,LDAP 客户端需要具有 base64 编码的 Active Directory 证书服务的自签名根 CA 证书,此可选参数仅用于具有 LDAP 用户映射卷的双重协议。 字符串

约束:
最小长度 = 1
最大长度 = 10240
site 服务会将域控制器发现限制为的 Active Directory 站点 字符串
smbServerName SMB 服务器的 NetBIOS 名称。 此名称将在 AD 中注册为计算机帐户,并用于装载卷 字符串
username 有权创建计算机帐户的域用户帐户 字符串

快速入门模板

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

模板 说明
使用 NFSV3/NFSv4.1 卷创建新的 ANF 资源

部署到 Azure
通过此模板,可以使用配置有 NFSV3 或 NFSv4.1 协议的单个容量池和单个卷创建新的 Azure NetApp 文件 资源。 它们与创建任何卷所需的 Azure 虚拟网络和委托子网一起部署
使用 SMB 卷创建新的 ANF 资源

部署到 Azure
使用此模板可以创建新的Azure NetApp 文件资源,其中包含配置了 SMB 协议的单个容量池和单个卷。

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

可以使用面向以下操作部署 netAppAccounts 资源类型:

  • 资源组

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

资源格式

若要创建 Microsoft.NetApp/netAppAccounts 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.NetApp/netAppAccounts@2020-07-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      activeDirectories = [
        {
          activeDirectoryId = "string"
          adName = "string"
          aesEncryption = bool
          backupOperators = [
            "string"
          ]
          dns = "string"
          domain = "string"
          kdcIP = "string"
          ldapSigning = bool
          organizationalUnit = "string"
          password = "string"
          serverRootCACertificate = "string"
          site = "string"
          smbServerName = "string"
          username = "string"
        }
      ]
    }
  })
}

属性值

netAppAccounts

名称 说明 Value
type 资源类型 “Microsoft.NetApp/netAppAccounts@2020-07-01”
name 资源名称 字符串 (必需)

字符限制:1-128

有效字符:
字母数字、下划线字符和连字符。

以字母数字开头。
location 资源位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记 标记名称和值的字典。
properties NetApp 帐户属性 AccountProperties

AccountProperties

名称 说明
activeDirectories Active Directory ActiveDirectory[]

ActiveDirectory

名称 说明
activeDirectoryId Active Directory 的 ID 字符串
adName Active Directory 计算机的名称。 此可选参数仅在创建 kerberos 卷时使用 字符串

约束:
最小长度 = 1
最大长度 = 64
aesEncryption 如果启用,将为 SMB 通信启用 AES 加密。 bool
backupOperators 要添加到内置备份操作员 Active Directory 组的用户。 不带域说明符的唯一用户名的列表 string[]

约束:
最小长度 = 1
最大长度 = 255
dns 仅) Active Directory 域 (IPv4 的 DNS 服务器 IP 地址的逗号分隔列表 字符串

约束:
模式 = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
Active Directory 域名 字符串
kdcIP Active Directory 计算机的 kdc 服务器 IP 地址。 此可选参数仅在创建 kerberos 卷时使用。 字符串

约束:
模式 = ^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$
ldapSigning 指定是否需要对 LDAP 流量进行签名。 bool
organizationalUnit Windows Active Directory 中的组织单位 (OU) 字符串
password Active Directory 域管理员的纯文本密码,响应中屏蔽了值 字符串
serverRootCACertificate 启用基于 SSL/TLS 的 LDAP 时,LDAP 客户端需要具有 base64 编码的 Active Directory 证书服务的自签名根 CA 证书,此可选参数仅用于具有 LDAP 用户映射卷的双重协议。 字符串

约束:
最小长度 = 1
最大长度 = 10240
site 服务会将域控制器发现限制为的 Active Directory 站点 字符串
smbServerName SMB 服务器的 NetBIOS 名称。 此名称将在 AD 中注册为计算机帐户,并用于装载卷 字符串
username 有权创建计算机帐户的域用户帐户 字符串