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

使用 REST API 为 Oracle 配置应用程序卷组

本文介绍如何使用 REST API 为 Oracle 创建应用程序卷组 (AVG)。 详细信息包括部署所需的所选参数和属性。 本文还指定用于 Oracle 创建(如果适用)的 AVG 的约束和典型值。

应用程序卷组 create

create 请求中,使用以下 URI 格式:

/subscriptions/<subscriptionId>/providers/Microsoft.NetApp/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.NetApp/netAppAccounts/<accountName>/volumeGroups/<volumeGroupName>?api-version=<apiVersion>

URI 参数 说明 Oracle AVG 的限制
subscriptionId 订阅 ID
resourceGroupName 资源组名称
accountName NetApp 帐户名称
volumeGroupName 卷组名称 建议的格式为 <SID>-<Name>

- SID:唯一标识符。 Oracle 唯一的系统 ID 只能包含字母数字字符、连字符 ('-') 和下划线 ('_')。 它必须是最小 3 个字符和最大 12 个字符字符串,并且必须以字母开头。

- 名称:选择的字符串。

示例: ORA-Testing
apiVersion API 版本 值必须是 2023-05-01 或更高版本

请求正文

请求正文由外部参数、组属性和要创建的卷数组组成,每个卷都具有各自的外部参数和卷属性

下表描述了创建 Oracle 部署所需的请求正文参数和组级别属性。

URI 参数 说明 Oracle AVG 的限制
Location 要在其中创建应用程序卷组的区域
组属性
groupDescription 组描述 自由格式的字符串
applicationType 应用程序类型 ORACLE 用于 Oracle 部署的 AVG
applicationIdentifier 特定于应用程序的标识符字符串 对于 Oracle,此参数是唯一的系统 ID
deploymentSpecId 定义用于部署特定应用程序卷组类型的规则的部署规范标识符 必须是:10542149-bfca-5618-1879-9863dc6767f1
volumes 要创建的卷的数组(请参阅下一个表,了解卷粒度的详细信息) 在 Oracle 部署过程中,可以有 2-12 个卷:

- 必需:1 个数据和 1 个日志

- 可选:data 2-8、mir-log、backup、binary

下表描述了在 Oracle 应用程序卷组中创建卷的请求正文参数和卷属性。

卷级别的请求参数 说明 Oracle 的限制
name 卷名称,其中包括 Oracle SID,用于使用组中的卷标识数据库 无。

示例或建议的卷名称:

- <sid>-ora-data1 (data)
- <sid>-ora-data2 (data)
- <sid>-ora-log (log)
- <sid>-ora-log-mirror (mirlog)
- <sid>-ora-binary (binary)
- <sid>-ora-bakup (backup)
tags 卷标记
zones 可用性区域 对于 Oracle AVG:

- 如果区域具有可用性区域,则必须选择区域。 例如:区域(1、2 或 3)。

- 如果某个区域没有可用区域,并且未启用 PPG 的使用,则客户可以转到区域部署(需要 PPG 激活)。

卷属性 说明 Oracle 值限制
creationToken 导出路径名称,通常与卷名称相同。 <sid>-ora-data1
throughputMibps QoS 吞吐量 应根据 1 MiBps 和 4500 MiBps 之间的卷类型设置吞吐量。
usageThreshold 卷大小(以字节为单位)。 此值必须在 50 GiB 到 100 TiB 范围内。 例如,100 GiB = 107374182400 个字节。 应设置卷大小(以字节为单位)。
exportPolicyRule 卷导出策略规则 必须为 Oracle 指定至少一个导出策略规则。 只能修改 Oracle 的以下规则值。 其余必须有各自的默认值:

- unixReadOnly:应为 false。

- unixReadWrite:应为 true。

- allowedClients:指定允许的客户端。 使用 0.0.0.0/0 表示无限制。

- hasRootAccess:必须为 true 才能使用根用户进行安装。

- chownMode:指定 chown 模式。

- Select nfsv41: or nfsv3::为 true。 建议对所有卷使用相同的协议版本。

所有其他规则值都必须保留为默认值
volumeSpecName 指定要创建的应用程序卷组的卷类型 Oracle 卷必须具有以下值之一:

- ora-data1
- ora-data2
- ora-data3
- ora-data4
- ora-data5
- ora-data6
- ora-data7
- ora-data8
- ora-log
- ora-log-mirror
- ora-binary
- ora-backup
proximityPlacementGroup 用于正确放置卷的邻近放置组 (PPG) 的资源 ID。 此参数是可选的。 如果区域具有可用区域,则使用区域始终是优先级。 datalogmirror-logora-binarybackup 卷必须分别指定 PPG,最好是通用 PPG。
subnetId Azure NetApp 文件的委派子网 ID。 所有卷的子网 ID 必须相同。
capacityPoolResourceId 容量池的 ID 容量池的类型必须为手动 QoS。 通常,所有 Oracle 卷都放置在通用容量池中。 但是,这不是一项要求。
protocolTypes 要使用的协议 此参数应为 NFSv3 或 NFSv4.1,并且应与下表前面所述的导出策略规则中指定的协议匹配。

示例:Oracle API 请求内容的应用程序卷组

本部分中的示例演示了为各种 Oracle 配置传递的卷组创建请求中传递的值。 这些示例演示了表中所述的命名、大小调整和值的最佳做法。

在以下示例中,指定了选定的占位符。 应将它们替换为特定于配置的值。 这些值包括:

  • <SubscriptionId>
    订阅 ID。 示例: aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
  • <ResourceGroup>
    资源组。 示例: TestResourceGroup
  • <NtapAccount>
    NetApp 帐户。 示例: TestAccount
  • <VolumeGroupName>
    卷组名称。 示例: SH9-Test-00001
  • <SubnetId>
    子网资源 ID。 示例: /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/SH9_Subnet
  • <CapacityPoolResourceId>
    容量池资源 ID。 示例: /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/SH9_Pool

使用 curl 为 Oracle 创建应用程序卷组

可以使用使用 curl 调用 API 的示例 shell 脚本创建以下示例的 Oracle 卷组:

  1. 提取订阅 ID。 此命令自动提取订阅 ID 并生成授权令牌:
    subId=$(az account list | jq ".[] | select (.name == \"Pay-As-You-Go\") | .id" -r)echo "Subscription ID: $subId" 
    
  2. 创建访问令牌:
    response=$(az account get-access-token)token=$(echo $response | jq ".accessToken" -r)echo "Token: $token" 
    
  3. 使用 curl 调用 REST API:
    echo "---"curl -X PUT -H "Authorization: Bearer $token" -H "Content-Type:application/json" -H "Accept:application/json" -d @<ExampleJson> https://management.azure.com/subscriptions/$subId/resourceGroups/<ResourceGroup>/providers/Microsoft.NetApp/netAppAccounts/<NtapAccount>/volumeGroups/<VolumeGroupName>?api-version=2023-05-01 | jq . 
    

示例:用于 Oracle 创建请求的应用程序卷组

此示例使用以下卷创建卷组名称“group1”:

  • test-ora-data1
  • test-ora-data2
  • test-ora-data3
  • test-ora-data4
  • test-ora-data5
  • test-ora-data6
  • test-ora-data7
  • test-ora-data8
  • test-ora-log
  • test-ora-log-mirror
  • test-ora-binary
  • test-ora-backup

将 JSON 模板另存为 sh9.json

注意

需要替换占位符 <SubnetId><CapacityPoolResourceId>,并且使用此 json 作为模板进行自己的部署时,需要调整卷数据。

{ 
      "location": "westus", 
      "properties": { 
        "groupMetaData": { 
          "groupDescription": "Volume group", 
          "applicationType": "ORACLE", 
          "applicationIdentifier": "OR2" 
        }, 
        "volumes": [ 
          { 
            "name": "test-ora-data1", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": " OR2-ora-data1", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data1", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": "test-ora-data2", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": " OR2-ora-data2", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data2", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": "test-ora-data3", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": " OR2-ora-data3", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data3", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": "test-ora-data4", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": " OR2-ora-data4", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data4", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-data5", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-data5", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data5", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-data6", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-data6", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data6", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-data7", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-data7", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data7", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-data8", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-data8", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-data8", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-log", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-log", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-log", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-log-mirror", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-log-mirror", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-log-mirror", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-binary", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-binary", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-binary", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ] 
            } 
          }, 
          { 
            "name": " OR2-ora-backup", 
            "zones": [ 
              "1" 
            ], 
            "properties": { 
              "creationToken": "test-ora-backup", 
              "serviceLevel": "Premium", 
              "throughputMibps": 10, 
              "subnetId": <SubnetId>, 
              "usageThreshold": 107374182400, 
              "volumeSpecName": "ora-backup", 
              "capacityPoolResourceId": <CapacityPoolResourceId>, 
              "exportPolicy": { 
                "rules": [ 
                  { 
                    "ruleIndex": 1, 
                    "unixReadOnly": true, 
                    "unixReadWrite": true, 
                    "kerberos5ReadOnly": false, 
                    "kerberos5ReadWrite": false, 
                    "kerberos5iReadOnly": false, 
                    "kerberos5iReadWrite": false, 
                    "kerberos5pReadOnly": false, 
                    "kerberos5pReadWrite": false, 
                    "cifs": false, 
                    "nfsv3": false, 
                    "nfsv41": true, 
                    "allowedClients": "0.0.0.0/0", 
                    "hasRootAccess": true 
                  } 
                ] 
              }, 
              "protocolTypes": [ 
                "NFSv4.1" 
              ]
            }
          }
        ]
      }
    }
  }
}

调整并启动脚本

注意

此 json 输入文件现在应与上述脚本一起使用。

#! /bin/bash
# 1. Extract the subscription ID:
#
subId=$(az account list | jq ".[] | select (.name == \"Pay-As-You-Go\") | .id" -r)
echo "Subscription ID: $subId"
 
#
# 2. Create the access token:
#
response=$(az account get-access-token)
token=$(echo $response | jq ".accessToken" -r)
echo "Token: $token"
#
# 3. Call the REST API using curl
# 
echo "---"
curl -X PUT -H "Authorization: Bearer $token" -H "Content-Type:application/json" -H "Accept:application/json" -d @sh9.json https://management.azure.com/subscriptions/$subId/resourceGroups/rg-westus/providers/Microsoft.NetApp/netAppAccounts/ANF-WestUS-test/volumeGroups/test-ORA?api-version=2022-03-01 | jq .

示例结果

注意

在 curl 调用结束时使用 | jq .,返回的 json 格式良好。

{
        "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/volumeGroups/group1",
        "name": "group1",
        "type": "Microsoft.NetApp/netAppAccounts/volumeGroups",
        "location": "westus",
        "properties": {
          "provisioningState": "Creating",
          "groupMetaData": {
            "groupDescription": "Volume group",
            "applicationType": "ORACLE",
            "applicationIdentifier": "OR2"
          },
          "volumes": [
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data1",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data1",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data1",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data1",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data2",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data2",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data2",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data2",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data3",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data3",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data3",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data3",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data4",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data4",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data4",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data4",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data5",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data5",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data5",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data5",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data6",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data6",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data6",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data6",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data7",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data7",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data7",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data7",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data8",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-data8",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-data8",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-data8",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-log",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-log",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-log",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-log",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-log-mirror",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-log-mirror",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-log-mirror",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-log-mirror",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-binary",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-binary",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-binary",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-binary",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            },
            {
              "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-backup",
              "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes",
              "name": "test-ora-backup",
              "zones": [
                "1"
              ],
              "properties": {
                "throughputMibps": 10.0,
                "volumeSpecName": "ora-backup",
                "serviceLevel": "Premium",
                "creationToken": "test-ora-backup",
                "usageThreshold": 107374182400,
                "subnetId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
                "exportPolicy": {
                  "rules": [
                    {
                      "ruleIndex": 1,
                      "unixReadOnly": true,
                      "unixReadWrite": true,
                      "kerberos5ReadOnly": false,
                      "kerberos5ReadWrite": false,
                      "kerberos5iReadOnly": false,
                      "kerberos5iReadWrite": false,
                      "kerberos5pReadOnly": false,
                      "kerberos5pReadWrite": false,
                      "cifs": false,
                      "nfsv3": false,
                      "nfsv41": true,
                      "allowedClients": "0.0.0.0/0",
                      "hasRootAccess": true
                    }
                  ]
                },
                "protocolTypes": [
                  "NFSv4.1"
                ]
              }
            }
          ]
        }
      }
    }
  }
}

后续步骤