diff --git a/src/azure-cli/azure/cli/command_modules/search/custom.py b/src/azure-cli/azure/cli/command_modules/search/custom.py index 6faeb12c1e9..f96fd26cf41 100644 --- a/src/azure-cli/azure/cli/command_modules/search/custom.py +++ b/src/azure-cli/azure/cli/command_modules/search/custom.py @@ -4,6 +4,7 @@ # -------------------------------------------------------------------------------------------- from knack.log import get_logger from azure.cli.core.util import sdk_no_wait +from azure.cli.core.azclierror import UnrecognizedArgumentError logger = get_logger(__name__) @@ -18,7 +19,7 @@ def _get_resource_group_location(cli_ctx, resource_group_name): def create_search_service(cmd, resource_group_name, search_service_name, sku, location=None, partition_count=0, replica_count=0, public_network_access="enabled", ip_rules=None, identity_type=None, - no_wait=False): + hosting_mode="default", no_wait=False): """ Creates a Search service in the given resource group. @@ -33,6 +34,8 @@ def create_search_service(cmd, resource_group_name, search_service_name, sku, lo :param ip_rules: Public IP(v4) addresses or CIDR ranges to the search service, seperated by comma or semicolon; these IP rules are applicable only when --public-network-access is "enabled". :param identity_type: The identity type; possible values include: "None", "SystemAssigned". + :param hosting_mode: The hosting mode; possible values include: "default", "highDensity"; + Note that "highDensity" is only applicable to the standard3 SKU. """ from azure.mgmt.search.models import SearchService, Sku, NetworkRuleSet, IpRule, Identity from azure.cli.command_modules.search._client_factory import cf_search_services @@ -51,8 +54,16 @@ def create_search_service(cmd, resource_group_name, search_service_name, sku, lo if partition_count > 0: _search.partition_count = partition_count if (public_network_access.lower() not in ["enabled", "disabled"]): - raise ValueError("SearchService.PublicNetworkAccess: only [""enabled"", ""disabled""] are allowed") + raise UnrecognizedArgumentError( + "SearchService.PublicNetworkAccess: only [""enabled"", ""disabled""] are allowed") + if (hosting_mode not in ["default", "highDensity"]): + raise UnrecognizedArgumentError( + "SearchService.HostingMode: only [""default"", ""highDensity""] are allowed") + if (hosting_mode == "highDensity" and sku.lower() != "standard3"): + raise UnrecognizedArgumentError( + "SearchService.HostingMode: ""highDensity"" is only allowed when sku is ""standard3""") _search.public_network_access = public_network_access + _search.hosting_mode = hosting_mode if ip_rules: _ip_rules = [] @@ -94,7 +105,8 @@ def update_search_service(instance, partition_count=0, replica_count=0, public_n instance.partition_count = partition_count if public_network_access: if (public_network_access.lower() not in ["enabled", "disabled"]): - raise ValueError("SearchService.PublicNetworkAccess: only [""enabled"", ""disabled""] are allowed") + raise UnrecognizedArgumentError( + "SearchService.PublicNetworkAccess: only [""enabled"", ""disabled""] are allowed") instance.public_network_access = public_network_access if ip_rules: _ip_rules = [] diff --git a/src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_create_skus.yaml b/src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_create_skus.yaml index 0405e8e9c6e..4d2a734330a 100644 --- a/src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_create_skus.yaml +++ b/src/azure-cli/azure/cli/command_modules/search/tests/latest/recordings/test_service_create_skus.yaml @@ -13,24 +13,21 @@ interactions: ParameterSetName: - -n -g --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.18.0 - accept-language: - - en-US + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.4 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azure_search_cli_test000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001","name":"azure_search_cli_test000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-01-28T07:29:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001","name":"azure_search_cli_test000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T20:47:04Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '332' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:29:51 GMT + - Mon, 27 Jun 2022 20:47:08 GMT expires: - '-1' pragma: @@ -63,7 +60,7 @@ interactions: ParameterSetName: - -n -g --sku User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-search/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000002?api-version=2020-08-01 response: @@ -74,21 +71,21 @@ interactions: cache-control: - no-cache content-length: - - '629' + - '553' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:29:55 GMT + - Mon, 27 Jun 2022 20:47:13 GMT elapsed-time: - - '2763' + - '2609' etag: - - W/"datetime'2021-01-28T07%3A29%3A55.4525445Z'" + - W/"datetime'2022-06-27T20%3A47%3A13.1273675Z'" expires: - '-1' pragma: - no-cache request-id: - - 9bd0daef-613a-11eb-8cc4-c8348e613252 + - 4f82fdb5-f65a-11ec-bd0e-40b0341d0842 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -112,24 +109,21 @@ interactions: ParameterSetName: - -n -g --sku --replica-count --partition-count User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.18.0 - accept-language: - - en-US + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.4 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azure_search_cli_test000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001","name":"azure_search_cli_test000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-01-28T07:29:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001","name":"azure_search_cli_test000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T20:47:04Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '332' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:29:55 GMT + - Mon, 27 Jun 2022 20:47:13 GMT expires: - '-1' pragma: @@ -162,7 +156,7 @@ interactions: ParameterSetName: - -n -g --sku --replica-count --partition-count User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-search/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000003?api-version=2020-08-01 response: @@ -173,21 +167,21 @@ interactions: cache-control: - no-cache content-length: - - '626' + - '550' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:30:00 GMT + - Mon, 27 Jun 2022 20:47:19 GMT elapsed-time: - - '2529' + - '2459' etag: - - W/"datetime'2021-01-28T07%3A29%3A59.5865856Z'" + - W/"datetime'2022-06-27T20%3A47%3A19.5656357Z'" expires: - '-1' pragma: - no-cache request-id: - - 9e7d99ee-613a-11eb-8e31-c8348e613252 + - 52bc76ea-f65a-11ec-b06b-40b0341d0842 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -197,4 +191,1427 @@ interactions: status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azure_search_cli_test000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001","name":"azure_search_cli_test000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T20:47:04Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '332' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:47:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "standard3"}, "properties": {"replicaCount": + 1, "partitionCount": 1, "hostingMode": "highDensity", "publicNetworkAccess": + "enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + Content-Length: + - '172' + Content-Type: + - application/json + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:47:27 GMT + elapsed-time: + - '5305' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:47:58 GMT + elapsed-time: + - '199' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:48:29 GMT + elapsed-time: + - '239' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:48:59 GMT + elapsed-time: + - '223' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:49:29 GMT + elapsed-time: + - '281' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:49:59 GMT + elapsed-time: + - '230' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:50:30 GMT + elapsed-time: + - '265' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:51:01 GMT + elapsed-time: + - '263' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:51:31 GMT + elapsed-time: + - '228' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:52:01 GMT + elapsed-time: + - '215' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:52:32 GMT + elapsed-time: + - '388' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:53:03 GMT + elapsed-time: + - '205' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:53:33 GMT + elapsed-time: + - '250' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:54:03 GMT + elapsed-time: + - '226' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:54:34 GMT + elapsed-time: + - '257' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:55:04 GMT + elapsed-time: + - '361' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:55:35 GMT + elapsed-time: + - '228' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:56:05 GMT + elapsed-time: + - '294' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:56:35 GMT + elapsed-time: + - '209' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:57:06 GMT + elapsed-time: + - '204' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:57:37 GMT + elapsed-time: + - '201' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:58:07 GMT + elapsed-time: + - '216' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:58:37 GMT + elapsed-time: + - '201' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:59:08 GMT + elapsed-time: + - '198' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 20:59:38 GMT + elapsed-time: + - '198' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"provisioning","statusDetails":"","provisioningState":"provisioning","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 21:00:09 GMT + elapsed-time: + - '210' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - search service create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --replica-count --partition-count --hosting-mode + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-search/8.0.0 Python/3.10.4 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004?api-version=2020-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure_search_cli_test000001/providers/Microsoft.Search/searchServices/test000004","name":"test000004","type":"Microsoft.Search/searchServices","location":"West + US","properties":{"replicaCount":1,"partitionCount":1,"status":"running","statusDetails":"","provisioningState":"succeeded","hostingMode":"highDensity","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard3"}}' + headers: + cache-control: + - no-cache + content-length: + - '558' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 21:00:39 GMT + elapsed-time: + - '197' + etag: + - W/"datetime'2022-06-27T20%3A47%3A28.0237337Z'" + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5690411e-f65a-11ec-82b8-40b0341d0842 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service.py b/src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service.py index 6b2b0ff2394..0bea11c2674 100644 --- a/src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service.py +++ b/src/azure-cli/azure/cli/command_modules/search/tests/latest/test_service.py @@ -39,6 +39,23 @@ def test_service_create_skus(self, resource_group): self.check('replicaCount', '{replica_count}'), self.check('partitionCount', '{partition_count}')]) + self.kwargs.update({ + 'sku_name': 'standard3', + 'name': self.create_random_name(prefix='test', length=24), + 'replica_count': 1, + 'partition_count': 1, + 'hosting_mode': 'highDensity' + }) + + self.cmd( + 'az search service create -n {name} -g {rg} --sku {sku_name}' + ' --replica-count {replica_count} --partition-count {partition_count} --hosting-mode {hosting_mode}', + checks=[self.check('name', '{name}'), + self.check('sku.name', '{sku_name}'), + self.check('replicaCount', '{replica_count}'), + self.check('partitionCount', '{partition_count}'), + self.check('hostingMode', '{hosting_mode}')]) + @ResourceGroupPreparer(name_prefix='azure_search_cli_test') def test_service_create_multi_partition(self, resource_group): self.kwargs.update({