diff --git a/src/azure-cli/azure/cli/command_modules/netappfiles/custom.py b/src/azure-cli/azure/cli/command_modules/netappfiles/custom.py index 19f29a6c380..e0f2af346fb 100644 --- a/src/azure-cli/azure/cli/command_modules/netappfiles/custom.py +++ b/src/azure-cli/azure/cli/command_modules/netappfiles/custom.py @@ -198,7 +198,7 @@ def create_volume(cmd, client, account_name, pool_name, volume_name, resource_gr # if NFSv4 is specified then the export policy must reflect this # the RP ordinarily only creates a default setting NFSv3. if protocol_types is not None and any(x in ['NFSv3', 'NFSv4.1'] for x in protocol_types) \ - and not (protocol_types == 'NFSv3' and rule_index is None): + and not (protocol_types == ['NFSv3'] and rule_index is None): rules = [] isNfs41 = False isNfs3 = False diff --git a/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_nfsv3_with_no_export_policy_provided_is_successful.yaml b/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_nfsv3_with_no_export_policy_provided_is_successful.yaml new file mode 100644 index 00000000000..4d90750e084 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_nfsv3_with_no_export_policy_provided_is_successful.yaml @@ -0,0 +1,1306 @@ +interactions: +- request: + body: '{"location": "southcentralus", "tags": {}, "properties": {"addressSpace": + {"addressPrefixes": ["10.0.0.0/16"]}, "dhcpOptions": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -n --resource-group -l --address-prefix + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002\",\r\n + \ \"etag\": \"W/\\\"aae47fa0-0030-4972-9cd8-3c1842f5d754\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {\r\n \"CreatedOnDate\": \"2022-04-19T09:36:37.3204178Z\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"9d1456ad-aec4-4b29-b0ea-b5d43426892e\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/southcentralus/operations/2714e803-c99c-4dcf-957c-a720313de2ec?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '776' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 89131acc-c67b-465c-bd32-dffee9de9a52 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group -l --address-prefix + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/southcentralus/operations/2714e803-c99c-4dcf-957c-a720313de2ec?api-version=2021-05-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d221eb66-5a08-4f8f-a982-cfa8d7c19898 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group -l --address-prefix + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002\",\r\n + \ \"etag\": \"W/\\\"182118d1-ee2a-46e3-9469-b0dff584f280\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {\r\n \"CreatedOnDate\": \"2022-04-19T09:36:37.3204178Z\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"9d1456ad-aec4-4b29-b0ea-b5d43426892e\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '777' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:46 GMT + etag: + - W/"182118d1-ee2a-46e3-9469-b0dff584f280" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6f435f4a-4ec0-4fbd-b2a3-7625a1e4b71d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vnet-name --address-prefixes --delegations + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002\",\r\n + \ \"etag\": \"W/\\\"182118d1-ee2a-46e3-9469-b0dff584f280\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {\r\n \"CreatedOnDate\": \"2022-04-19T09:36:37.3204178Z\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"9d1456ad-aec4-4b29-b0ea-b5d43426892e\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '777' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:46 GMT + etag: + - W/"182118d1-ee2a-46e3-9469-b0dff584f280" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a8a2cce2-9e17-4e0d-9ccf-7e528d340f8f + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002", + "location": "southcentralus", "tags": {"CreatedOnDate": "2022-04-19T09:36:37.3204178Z"}, + "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "dhcpOptions": + {"dnsServers": []}, "subnets": [{"name": "cli-subnet-000003", "properties": + {"addressPrefix": "10.0.0.0/24", "delegations": [{"name": "0", "properties": + {"serviceName": "Microsoft.Netapp/volumes"}}], "privateEndpointNetworkPolicies": + "Enabled", "privateLinkServiceNetworkPolicies": "Enabled"}}], "virtualNetworkPeerings": + [], "enableDdosProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + Content-Length: + - '702' + Content-Type: + - application/json + ParameterSetName: + - -n -g --vnet-name --address-prefixes --delegations + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002\",\r\n + \ \"etag\": \"W/\\\"ab2afae3-c2cb-446b-ac8b-f8abc9ecf20e\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {\r\n \"CreatedOnDate\": \"2022-04-19T09:36:37.3204178Z\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"9d1456ad-aec4-4b29-b0ea-b5d43426892e\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003\",\r\n + \ \"etag\": \"W/\\\"ab2afae3-c2cb-446b-ac8b-f8abc9ecf20e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [\r\n {\r\n \"name\": \"0\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003/delegations/0\",\r\n + \ \"etag\": \"W/\\\"ab2afae3-c2cb-446b-ac8b-f8abc9ecf20e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\",\r\n + \ \"Microsoft.Network/virtualNetworks/subnets/join/action\"\r\n + \ ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\r\n + \ }\r\n ],\r\n \"purpose\": \"HostedWorkloads\",\r\n + \ \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/southcentralus/operations/7b7584ff-fa00-47ac-afd4-1264407f2c95?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '2265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - fc03cd57-8955-4cc8-95ad-95c59e659b47 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vnet-name --address-prefixes --delegations + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/southcentralus/operations/7b7584ff-fa00-47ac-afd4-1264407f2c95?api-version=2021-05-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 155c2386-9d4f-488e-aff5-69a436350f34 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vnet-name --address-prefixes --delegations + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002\",\r\n + \ \"etag\": \"W/\\\"c249b06e-d9bf-435a-b759-9ec239e0a13a\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {\r\n \"CreatedOnDate\": \"2022-04-19T09:36:37.3204178Z\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"9d1456ad-aec4-4b29-b0ea-b5d43426892e\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003\",\r\n + \ \"etag\": \"W/\\\"c249b06e-d9bf-435a-b759-9ec239e0a13a\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [\r\n {\r\n \"name\": \"0\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003/delegations/0\",\r\n + \ \"etag\": \"W/\\\"c249b06e-d9bf-435a-b759-9ec239e0a13a\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\",\r\n + \ \"Microsoft.Network/virtualNetworks/subnets/join/action\"\r\n + \ ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\r\n + \ }\r\n ],\r\n \"purpose\": \"HostedWorkloads\",\r\n + \ \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2267' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:36:51 GMT + etag: + - W/"c249b06e-d9bf-435a-b759-9ec239e0a13a" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 939e816b-bbd5-4da2-8780-98bc0b62cfcc + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralusstage"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles account create + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + ParameterSetName: + - -g -a -l + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004","name":"cli-acc-000004","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2022-04-19T09%3A36%3A58.9794261Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:36:54.5119031Z"},"properties":{"provisioningState":"Creating"},"systemData":{"createdBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","createdByType":"Application","createdAt":"2022-04-19T09:36:58.2005688Z","lastModifiedBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","lastModifiedByType":"Application","lastModifiedAt":"2022-04-19T09:36:58.2005688Z"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/262500ac-c3bc-4f96-a680-04791ebb00a6?api-version=2021-10-01 + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:37:00 GMT + etag: + - W/"datetime'2022-04-19T09%3A36%3A58.9794261Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles account create + Connection: + - keep-alive + ParameterSetName: + - -g -a -l + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/262500ac-c3bc-4f96-a680-04791ebb00a6?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/262500ac-c3bc-4f96-a680-04791ebb00a6","name":"262500ac-c3bc-4f96-a680-04791ebb00a6","status":"Succeeded","startTime":"2022-04-19T09:36:58.981657Z","endTime":"2022-04-19T09:36:59.0441358Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004"}}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:37:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles account create + Connection: + - keep-alive + ParameterSetName: + - -g -a -l + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004","name":"cli-acc-000004","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2022-04-19T09%3A36%3A59.0473196Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:36:54.5119031Z"},"properties":{"activeDirectories":[{"activeDirectoryId":"6411f198-b5fc-ad07-113d-56dd4da0e462","username":"testadmin","password":"****************","domain":"testdomain.local","dns":"10.0.2.4,10.0.2.5","status":"Created","smbServerName":"testsmb","organizationalUnit":"CN=Computers","aesEncryption":false,"ldapSigning":false,"ldapOverTLS":false,"allowLocalNFSUsersWithLdap":false,"encryptDCConnections":false,"ldapSearchScope":{}}],"encryption":{"keySource":"Microsoft.NetApp"},"provisioningState":"Succeeded"},"systemData":{"createdBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","createdByType":"Application","createdAt":"2022-04-19T09:36:58.2005688Z","lastModifiedBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","lastModifiedByType":"Application","lastModifiedAt":"2022-04-19T09:36:58.2005688Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1168' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:37:30 GMT + etag: + - W/"datetime'2022-04-19T09%3A36%3A59.0473196Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralusstage", "properties": {"size": 4398046511104, + "serviceLevel": "Premium"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles pool create + Connection: + - keep-alive + Content-Length: + - '101' + Content-Type: + - application/json + ParameterSetName: + - -g -a -p -l --service-level --size + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005","name":"cli-acc-000004/cli-pool-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2022-04-19T09%3A37%3A39.918599Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:37:34.4434756Z"},"properties":{"serviceLevel":"Premium","size":4398046511104,"totalThroughputMibps":0.0,"utilizedThroughputMibps":0.0,"provisioningState":"Creating"},"systemData":{"createdBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","createdByType":"Application","createdAt":"2022-04-19T09:37:38.6583019Z","lastModifiedBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","lastModifiedByType":"Application","lastModifiedAt":"2022-04-19T09:37:38.6583019Z"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/5396ca89-d8ba-4f47-a5b6-acabe4a5d990?api-version=2021-10-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:37:40 GMT + etag: + - W/"datetime'2022-04-19T09%3A37%3A39.918599Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles pool create + Connection: + - keep-alive + ParameterSetName: + - -g -a -p -l --service-level --size + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/5396ca89-d8ba-4f47-a5b6-acabe4a5d990?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/5396ca89-d8ba-4f47-a5b6-acabe4a5d990","name":"5396ca89-d8ba-4f47-a5b6-acabe4a5d990","status":"Succeeded","startTime":"2022-04-19T09:37:39.9164695Z","endTime":"2022-04-19T09:37:40.3071145Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005"}}' + headers: + cache-control: + - no-cache + content-length: + - '567' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:38:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles pool create + Connection: + - keep-alive + ParameterSetName: + - -g -a -p -l --service-level --size + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005","name":"cli-acc-000004/cli-pool-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2022-04-19T09%3A37%3A40.3017405Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:37:34.4434756Z"},"properties":{"poolId":"8e9b0ab0-1285-3d6f-5440-4914d146a288","serviceLevel":"Premium","size":4398046511104,"qosType":"Auto","totalThroughputMibps":256.0,"utilizedThroughputMibps":0.0,"encryptionType":"Single","coolAccess":false,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '701' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:38:11 GMT + etag: + - W/"datetime'2022-04-19T09%3A37%3A40.3017405Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralusstage", "properties": {"creationToken": "cli-vol-000006", + "serviceLevel": "Premium", "usageThreshold": 107374182400, "protocolTypes": + ["NFSv3"], "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + Content-Length: + - '376' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006","name":"cli-acc-000004/cli-pool-000005/cli-vol-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2022-04-19T09%3A38%3A27.4822526Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:38:14.2221667Z"},"properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000006","usageThreshold":107374182400,"protocolTypes":["NFSv3"],"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003","maximumNumberOfFiles":100000000,"provisioningState":"Creating"},"systemData":{"createdBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","createdByType":"Application","createdAt":"2022-04-19T09:38:24.8178222Z","lastModifiedBy":"c6c4faba-2b22-44d9-80a4-71ff5b71f811","lastModifiedByType":"Application","lastModifiedAt":"2022-04-19T09:38:24.8178222Z"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + cache-control: + - no-cache + content-length: + - '1157' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:38:28 GMT + etag: + - W/"datetime'2022-04-19T09%3A38%3A27.4822526Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:38:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:39:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:39:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:40:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:40:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:41:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:42:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Creating","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:42:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/southcentralusstage/operationResults/3d699556-4210-4c24-a885-b159b8cf7c6f","name":"3d699556-4210-4c24-a885-b159b8cf7c6f","status":"Succeeded","startTime":"2022-04-19T09:38:27.4863265Z","endTime":"2022-04-19T09:42:32.5341064Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006"}}' + headers: + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:43:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - netappfiles volume create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --account-name --pool-name --volume-name -l --service-level + --usage-threshold --file-path --vnet --subnet --protocol-types + User-Agent: + - AZURECLI/2.35.0 azsdk-python-mgmt-netapp/7.0.0 Python/3.8.10 (macOS-12.3.1-x86_64-i386-64bit) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006?api-version=2021-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000004/capacityPools/cli-pool-000005/volumes/cli-vol-000006","name":"cli-acc-000004/cli-pool-000005/cli-vol-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2022-04-19T09%3A42%3A32.5226676Z''\"","location":"southcentralusstage","tags":{"CreatedOnDate":"2022-04-19T09:38:14.2221667Z"},"properties":{"fileSystemId":"851fde95-5c0e-b91d-f01f-cc8a20b1f76c","serviceLevel":"Premium","creationToken":"cli-vol-000006","usageThreshold":107374182400,"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv41":false,"allowedClients":"0.0.0.0/0","kerberos5ReadOnly":false,"kerberos5ReadWrite":false,"kerberos5iReadOnly":false,"kerberos5iReadWrite":false,"kerberos5pReadOnly":false,"kerberos5pReadWrite":false,"hasRootAccess":true,"chownMode":"Restricted"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_93ade68ee53011e9a696c27beff6b5ea_e1f652b9","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_netappfiles_test_volume_000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000002/subnets/cli-subnet-000003","networkFeatures":"Basic","networkSiblingSetId":"1e262fad-81a1-a9ec-63fd-348b870cf1c3","storageToNetworkProximity":"Default","snapshotDirectoryVisible":true,"kerberosEnabled":false,"securityStyle":"Unix","smbEncryption":false,"smbContinuouslyAvailable":false,"encryptionKeySource":"Microsoft.NetApp","ldapEnabled":false,"unixPermissions":"0770","mountTargets":[{"mountTargetId":"851fde95-5c0e-b91d-f01f-cc8a20b1f76c","fileSystemId":"851fde95-5c0e-b91d-f01f-cc8a20b1f76c","ipAddress":"10.0.0.4"}],"throughputMibps":6.25,"volumeSpecName":"generic","coolAccess":false,"avsDataStore":"Disabled","isDefaultQuotaEnabled":false,"defaultUserQuotaInKiBs":0,"defaultGroupQuotaInKiBs":0,"enableSubvolumes":"Disabled","maximumNumberOfFiles":100000000,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2088' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Apr 2022 09:43:00 GMT + etag: + - W/"datetime'2022-04-19T09%3A42%3A32.5226676Z'" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py b/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py index 01613176d86..8cafcdb428d 100644 --- a/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py +++ b/src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py @@ -434,3 +434,19 @@ def test_volume_parameters(self): assert volume['ldapEnabled'] == ldap_enabled assert volume['isDefaultQuotaEnabled'] == is_default_quota_enabled assert volume['avsDataStore'] == avs_data_store + + @ResourceGroupPreparer(name_prefix='cli_netappfiles_test_volume_', additional_tags={'owner': 'cli_test'}) + def test_nfsv3_with_no_export_policy_provided_is_successful(self): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + subnet_name = self.create_random_name(prefix='cli-subnet-', length=16) + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + self.prepare_for_volume_creation('{rg}', account_name, pool_name, vnet_name, subnet_name) + volume = self.cmd("az netappfiles volume create --resource-group {rg} --account-name %s --pool-name %s " + "--volume-name %s -l %s %s --file-path %s --vnet %s --subnet %s --protocol-types NFSv3" % + (account_name, pool_name, volume_name, RG_LOCATION, VOLUME_DEFAULT, volume_name, vnet_name, + subnet_name)).get_output_in_json() + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert len(volume['exportPolicy']['rules']) == 1 + assert volume['exportPolicy']['rules'][0]['nfsv3']