From 79183b18896623a8ed9a67d4541d60acdfdcbdb0 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Fri, 10 Apr 2020 13:25:59 -0700 Subject: [PATCH 01/10] Add az cosmosdb private-link-resource and private-endpoint --- .../cosmosdb/_client_factory.py | 8 + .../cli/command_modules/cosmosdb/_help.py | 39 + .../cli/command_modules/cosmosdb/_params.py | 20 + .../command_modules/cosmosdb/_validators.py | 15 + .../cli/command_modules/cosmosdb/commands.py | 38 +- .../cli/command_modules/cosmosdb/custom.py | 36 + .../test_cosmosdb_private_endpoint.yaml | 2497 +++++++++++++++++ .../test_cosmosdb_private_link_resource.yaml | 1158 ++++++++ .../tests/latest/test_cosmosdb_commands.py | 65 + 9 files changed, 3875 insertions(+), 1 deletion(-) create mode 100644 src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_client_factory.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_client_factory.py index 6855a1f2193..a6871cfc200 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_client_factory.py @@ -78,6 +78,14 @@ def cf_cosmosdb(cli_ctx, **_): return get_mgmt_service_client(cli_ctx, CosmosDBManagementClient) +def cf_db_private_endpoint_connections(cli_ctx, _): + return cf_cosmosdb(cli_ctx).private_endpoint_connections + + +def cf_db_private_link_resources(cli_ctx, _): + return cf_cosmosdb(cli_ctx).private_link_resources + + def cf_db_accounts(cli_ctx, _): return cf_cosmosdb(cli_ctx).database_accounts diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py index c51679fa60b..7c547a6afa9 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py @@ -486,6 +486,45 @@ short-summary: Manage Azure Comsos DB network rules. """ + +helps['cosmosdb private-endpoint'] = """ +type: group +short-summary: Manage Azure Comsos DB private endpoint connections. +""" + +helps['cosmosdb private-endpoint approve'] = """ +type: command +short-summary: Approve the specified private endpoint connection associated with Azure Comsos DB. +""" + + +helps['cosmosdb private-endpoint delete'] = """ +type: command +short-summary: Delete the specified private endpoint connection associated with Azure Comsos DB. +""" + +helps['cosmosdb private-endpoint reject'] = """ +type: command +short-summary: Reject the specified private endpoint connection associated with Azure Comsos DB. +""" + + +helps['cosmosdb private-endpoint show'] = """ +type: command +short-summary: Show details of a private endpoint connection associated with Azure Comsos DB. +""" + +helps['cosmosdb private-link-resource'] = """ +type: group +short-summary: Manage Azure Comsos DB private link resources. +""" + +helps['cosmosdb private-link-resource show'] = """ +type: command +short-summary: Show the private link resources supported for Azure Comsos DB. +""" + + helps['cosmosdb regenerate-key'] = """ type: command short-summary: Regenerate an access key for a Azure Cosmos DB database account. diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py index 89d900cb7f9..e28c503a0b0 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py @@ -102,6 +102,26 @@ def load_arguments(self, _): database_name_type = CLIArgumentType(options_list=['--database-name', '-d'], help='Database name.') container_name_type = CLIArgumentType(options_list=['--container-name', '-c'], help='Container name.') + with self.argument_context('cosmosdb private-endpoint') as c: + c.argument('approval_description', help='Comments for the approval.') + c.argument('private_endpoint_connection_name', options_list=['--connection-name', '-n'], required=False, + help='The name of the private endpoint connection associated with Azure Cosmos DB. ' + 'Required if --connection-id is not specified') + c.argument('account_name', account_name_type, required=False, + help='Name of the Cosmos DB database account. Required if --connection-id is not specified') + c.argument('resource_group_name', required=False, + help='The resource group name of specified Cosmos DB account.') + c.argument('rejection_description', help='Comments for the rejection.') + + for item in ['approve', 'reject', 'delete', 'show']: + with self.argument_context('cosmosdb private-endpoint {}'.format(item)) as c: + c.extra('connection_id', required=False, + help='The ID of the private endpoint connection associated with Azure Cosmos DB. ' + 'If specified --account-name and --connection-name/-n, this should be omitted.') + + with self.argument_context('cosmosdb private-link-resource') as c: + c.argument('account_name', account_name_type, required=True, help="Cosmosdb account name") + # SQL database with self.argument_context('cosmosdb sql database') as c: c.argument('account_name', account_name_type, id_part=None) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py index fbae1331e86..2957b94e6b9 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py @@ -3,6 +3,8 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from knack.util import CLIError + def validate_failover_policies(ns): """ Extracts multiple space-separated failoverPolicies in regionName=failoverPriority format """ @@ -19,6 +21,19 @@ def validate_ip_range_filter(ns): ns.ip_range_filter = ",".join(ns.ip_range_filter) +def validate_private_endpoint_connection_id(cmd, ns): + if ns.connection_id: + id_parts = ns.connection_id.split('/') + ns.private_endpoint_connection_name = id_parts[-1] + ns.account_name = id_parts[-3] + ns.resource_group_name = id_parts[-7] + + if not all([ns.account_name, ns.resource_group_name, ns.private_endpoint_connection_name]): + raise CLIError(None, 'incorrect usage: [--id ID | --name NAME --account-name NAME]') + + del ns.connection_id + + def validate_capabilities(ns): """ Extracts multiple space-separated capabilities """ from azure.mgmt.cosmosdb.models import Capability diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py index 46a5b9f4028..d3ce88d9947 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py @@ -8,7 +8,16 @@ from azure.cli.core.commands import CliCommandType -from azure.cli.command_modules.cosmosdb._client_factory import cf_db_accounts, cf_sql_resources, cf_mongo_db_resources, cf_cassandra_resources, cf_gremlin_resources, cf_table_resources +from azure.cli.command_modules.cosmosdb._client_factory import ( + cf_db_accounts, + cf_db_private_endpoint_connections, + cf_db_private_link_resources, + cf_sql_resources, + cf_mongo_db_resources, + cf_cassandra_resources, + cf_gremlin_resources, + cf_table_resources +) from azure.cli.command_modules.cosmosdb._format import ( database_output, @@ -18,6 +27,10 @@ list_connection_strings_output ) +from ._validators import ( + validate_private_endpoint_connection_id +) + DATABASE_DEPRECATION_INFO = 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' COLLECTION_DEPRECATON_INFO = 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' @@ -29,6 +42,14 @@ def load_command_table(self, _): operations_tmpl='azure.mgmt.cosmosdb.operations#DatabaseAccountsOperations.{}', client_factory=cf_db_accounts) + cosmosdb_private_endpoint_connections_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cosmosdb.operations#PrivateEndpointConnectionsOperations.{}', + client_factory=cf_db_private_endpoint_connections) + + cosmosdb_private_link_resources_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cosmosdb.operations#PrivateLinkResourcesOperations.{}', + client_factory=cf_db_private_link_resources) + cosmosdb_sql_sdk = CliCommandType( operations_tmpl='azure.mgmt.cosmosdb.operations#SqlResourcesOperations.{}', client_factory=cf_sql_resources) @@ -62,6 +83,21 @@ def load_command_table(self, _): g.custom_command('update', 'cli_cosmosdb_update') g.custom_command('list', 'cli_cosmosdb_list') + with self.command_group('cosmosdb private-endpoint', + cosmosdb_private_endpoint_connections_sdk, + client_factory=cf_db_private_endpoint_connections) as g: + g.custom_command('approve', 'approve_private_endpoint_connection', + validator=validate_private_endpoint_connection_id) + g.custom_command('reject', 'reject_private_endpoint_connection', + validator=validate_private_endpoint_connection_id) + g.command('delete', 'delete', validator=validate_private_endpoint_connection_id) + g.show_command('show', 'get', validator=validate_private_endpoint_connection_id) + + with self.command_group('cosmosdb private-link-resource', + cosmosdb_private_link_resources_sdk, + client_factory=cf_db_private_link_resources) as g: + g.show_command('show', 'list_by_database_account') + # SQL api with self.command_group('cosmosdb sql', is_preview=True): pass diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py index 82973ef9e17..d9639bf3c65 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py @@ -991,6 +991,42 @@ def cli_cosmosdb_network_rule_remove(cmd, return docdb_account +def _update_private_endpoint_connection_status(cmd, client, resource_group_name, account_name, + private_endpoint_connection_name, is_approved=True, description=None, + connection_id=None): # pylint: disable=unused-argument + private_endpoint_connection = client.get(resource_group_name=resource_group_name, account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + new_status = "Approved" if is_approved else "Rejected" + private_endpoint_connection.private_link_service_connection_state.status = new_status + private_endpoint_connection.private_link_service_connection_state.description = description + + return client.create_or_update(resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + private_link_service_connection_state=private_endpoint_connection.private_link_service_connection_state) + + +def approve_private_endpoint_connection(cmd, client, resource_group_name, account_name, private_endpoint_connection_name, + approval_description=None, connection_id=None): + """Approve a private endpoint connection request for Azure Cosmos DB.""" + + return _update_private_endpoint_connection_status( + cmd, client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, + description=approval_description, connection_id=connection_id + ) + + +def reject_private_endpoint_connection(cmd, client, resource_group_name, account_name, private_endpoint_connection_name, + rejection_description=None, connection_id=None): + """Reject a private endpoint connection request for Azure Cosmos DB.""" + + return _update_private_endpoint_connection_status( + cmd, client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=False, + description=rejection_description, connection_id=connection_id + ) + + ###################### # data plane APIs ###################### diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml new file mode 100644 index 00000000000..9297b795718 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml @@ -0,0 +1,2497 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_pe000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T19:43:06Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:43:07 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", "kind": "GlobalDocumentDB", "properties": {"locations": + [{"locationName": "westus", "failoverPriority": 0, "isZoneRedundant": false}], + "databaseAccountOfferType": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + Content-Length: + - '198' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002","name":"cli-test-cosmosdb-pe-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Creating","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + cache-control: + - no-store, no-cache + content-length: + - '1547' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:43:15 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:43:45 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:44:16 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:44:47 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:45:16 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:45:46 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:46:16 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:46:47 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:47:18 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:47:48 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:48:18 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:48:49 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:49:19 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:49:48 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:50:19 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:50:49 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:51:20 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:51:49 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:52:19 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '22' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:52:51 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002","name":"cli-test-cosmosdb-pe-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://cli-test-cosmosdb-pe-000002.documents.azure.com:443/","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1904' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:52:51 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002","name":"cli-test-cosmosdb-pe-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://cli-test-cosmosdb-pe-000002.documents.azure.com:443/","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-pe-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-pe-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1904' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:52:51 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"addressSpace": + {"addressPrefixes": ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"properties": + {"addressPrefix": "10.0.0.0/24"}, "name": "cli-subnet-000004"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"47cf8eed-b76b-4c10-8b22-979134af75e9\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"d4d508cd-fc3f-4443-8094-11697451c0a4\",\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-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"47cf8eed-b76b-4c10-8b22-979134af75e9\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\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 \"enableVmProtection\": 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/centraluseuap/operations/b0dcb1b4-ef13-41f2-979c-716c4029d775?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '1535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:52:53 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: + - 2664f5ef-8854-48b9-a56e-49353a62ef03 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b0dcb1b4-ef13-41f2-979c-716c4029d775?api-version=2019-11-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: + - Fri, 10 Apr 2020 19:52:56 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: + - 3ebaa7d8-975a-412d-a1f3-95f393e7d525 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"d4d508cd-fc3f-4443-8094-11697451c0a4\",\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-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\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 \"enableVmProtection\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1537' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:52:57 GMT + etag: + - W/"1185bae8-3f32-4ff6-aad3-d2a359512458" + 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: + - b06adc73-41ce-4e4e-a47f-91e92b5ee0b6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '639' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:52:57 GMT + etag: + - W/"1185bae8-3f32-4ff6-aad3-d2a359512458" + 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: + - 687ffa62-14b1-4f36-8277-b9b5d5cc7d48 + status: + code: 200 + message: OK +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "properties": {"addressPrefix": "10.0.0.0/24", "delegations": [], "privateEndpointNetworkPolicies": + "Disabled", "privateLinkServiceNetworkPolicies": "Enabled"}, "name": "cli-subnet-000004"}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + Content-Length: + - '451' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"248a340b-71b8-4839-a36e-526619a89efb\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1037262b-fa18-4282-9416-2b0ae257da34?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '639' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:52:58 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: + - 94628016-d47a-4eb9-b8a9-bb0e8ac859ed + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1037262b-fa18-4282-9416-2b0ae257da34?api-version=2019-11-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: + - Fri, 10 Apr 2020 19:53:02 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: + - a453dc31-9d7f-4d73-8fc5-582a8282a19c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"e82addf9-06d1-4145-bad4-2b72a77c5e94\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '640' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:53:02 GMT + etag: + - W/"e82addf9-06d1-4145-bad4-2b72a77c5e94" + 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: + - 3d598014-4bc0-4eea-a8fc-fbd3dd96242c + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "centraluseuap", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004"}, + "privateLinkServiceConnections": [{"properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002", + "groupIds": ["Sql"]}, "name": "cli-pec-000006"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + Content-Length: + - '668' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"b5bec98f-6e9b-4ac3-9ef1-6214c61a8fb6\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"11f5d9a9-de17-4176-8f1c-42141ef2f375\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"b5bec98f-6e9b-4ac3-9ef1-6214c61a8fb6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": + {\r\n \"status\": \"Approved\",\r\n \"description\": + \"\",\r\n \"actionsRequired\": \"None\"\r\n }\r\n },\r\n + \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.dfd08ddd-02ab-4300-a0d9-bb3ce1b59974\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '2298' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:53:05 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: + - 5c6f568a-96fd-4e28-9404-ada918576fee + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:53:15 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: + - b4aae047-cd8e-44df-93c8-256696af9aca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-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: + - Fri, 10 Apr 2020 19:53:25 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: + - 35897fa3-40d4-4873-8db4-7500a2c7d3a0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"11f5d9a9-de17-4176-8f1c-42141ef2f375\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n + \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": + {\r\n \"status\": \"Approved\",\r\n \"description\": + \"\",\r\n \"actionsRequired\": \"None\"\r\n }\r\n },\r\n + \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.dfd08ddd-02ab-4300-a0d9-bb3ce1b59974\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2299' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 19:53:25 GMT + etag: + - W/"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e" + 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: + - 89fb6918-9f5b-4b07-9928-335b4a516313 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint show + Connection: + - keep-alive + ParameterSetName: + - --connection-id + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '774' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:53:26 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint show + Connection: + - keep-alive + ParameterSetName: + - --account-name --connection-name -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '774' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:53:27 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint show + Connection: + - keep-alive + ParameterSetName: + - --account-name -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '774' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:53:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --connection-name --approval-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '774' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:53:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: '{"properties": {"privateLinkServiceConnectionState": {"status": "Approved", + "description": "You are approved!"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint approve + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --account-name -g --connection-name --approval-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Enqueued"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:53:29 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --connection-name --approval-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:54:00 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --connection-name --approval-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '22' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:54:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --connection-name --approval-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"You + are approved!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '808' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:54:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint reject + Connection: + - keep-alive + ParameterSetName: + - --connection-id --rejection-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"You + are approved!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '808' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:54:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: '{"properties": {"privateLinkServiceConnectionState": {"status": "Rejected", + "description": "You are rejected!"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint reject + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --connection-id --rejection-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Enqueued"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:54:31 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint reject + Connection: + - keep-alive + ParameterSetName: + - --connection-id --rejection-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:55:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint reject + Connection: + - keep-alive + ParameterSetName: + - --connection-id --rejection-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '22' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:55:32 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint reject + Connection: + - keep-alive + ParameterSetName: + - --connection-id --rejection-description + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"name":"cli-pe-000005","type":"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005","properties":{"provisioningState":"Succeeded","groupId":"Sql","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"You + are rejected!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '808' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Fri, 10 Apr 2020 19:55:32 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml new file mode 100644 index 00000000000..fd97c8499d4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml @@ -0,0 +1,1158 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_plr000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001","name":"cli_test_cosmosdb_plr000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-08T02:06:23Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Apr 2020 02:06:24 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", "kind": "GlobalDocumentDB", "properties": {"locations": + [{"locationName": "westus", "failoverPriority": 0, "isZoneRedundant": false}], + "databaseAccountOfferType": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + Content-Length: + - '198' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002","name":"cli-test-cosmosdb-plr-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Creating","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","provisioningState":"Creating","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + cache-control: + - no-store, no-cache + content-length: + - '1547' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:06:27 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002/operationResults/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:06:57 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:07:27 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:07:58 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:08:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:08:58 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:09:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:09:58 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:10:29 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:10:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:11:33 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:12:04 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:12:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:13:03 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:13:33 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:14:05 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:14:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:15:04 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '22' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:15:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002","name":"cli-test-cosmosdb-plr-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://cli-test-cosmosdb-plr-000002.documents.azure.com:443/","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1904' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:15:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002?api-version=2019-12-12 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002","name":"cli-test-cosmosdb-plr-000002","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://cli-test-cosmosdb-plr-000002.documents.azure.com:443/","ipRangeFilter":"","publicNetworkAccess":"Enabled","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"enableFreeTier":false,"apiProperties":null,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","documentEndpoint":"https://cli-test-cosmosdb-plr-000002-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"cli-test-cosmosdb-plr-000002-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1904' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:15:35 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-link-resource show + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002/privateLinkResources?api-version=2019-08-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002/privateLinkResources/Sql","name":"Sql","type":"Microsoft.DocumentDB/databaseAccounts/privateLinkResources","properties":{"groupId":"Sql","requiredMembers":["cli-test-cosmosdb-plr-000002-westus","cli-test-cosmosdb-plr-000002"],"requiredZoneNames":["privatelink.documents.azure.com"]}}]}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '522' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy/privateLinkResources?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Wed, 08 Apr 2020 02:15:35 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py index 5d1f3efb0ab..0df6c989150 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py @@ -301,6 +301,71 @@ def test_cosmosdb_network_rule_remove(self, resource_group): assert len(vnet_rules) == 0 + @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_plr') + def test_cosmosdb_private_link_resource(self, resource_group): + self.kwargs.update({ + 'acc': self.create_random_name('cli-test-cosmosdb-plr-', 28), + 'loc': 'centraluseuap' + }) + + self.cmd('az cosmosdb create -n {acc} -g {rg}') + + plr = self.cmd('cosmosdb private-link-resource show --account-name {acc} --resource-group {rg}').get_output_in_json() + assert plr[0]['groupId'] == "Sql" + + @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_pe') + def test_cosmosdb_private_endpoint(self, resource_group): + self.kwargs.update({ + 'acc': self.create_random_name('cli-test-cosmosdb-pe-', 28), + 'loc': 'centraluseuap', + 'vnet': self.create_random_name('cli-vnet-', 24), + 'subnet': self.create_random_name('cli-subnet-', 24), + 'pe': self.create_random_name('cli-pe-', 24), + 'pe_connection': self.create_random_name('cli-pec-', 24) + }) + + # Prepare cosmos db account and network + account = self.cmd('az cosmosdb create -n {acc} -g {rg}').get_output_in_json() + self.kwargs['acc_id'] = account['id'] + self.cmd('network vnet create -n {vnet} -g {rg} -l {loc} --subnet-name {subnet}', + checks=self.check('length(newVNet.subnets)', 1)) + self.cmd('network vnet subnet update -n {subnet} --vnet-name {vnet} -g {rg} ' + '--disable-private-endpoint-network-policies true', + checks=self.check('privateEndpointNetworkPolicies', 'Disabled')) + + # Create a private endpoint connection + pe = self.cmd('network private-endpoint create -g {rg} -n {pe} --vnet-name {vnet} --subnet {subnet} -l {loc} ' + '--connection-name {pe_connection} --private-connection-resource-id {acc_id} ' + '--group-ids Sql').get_output_in_json() + self.kwargs['pe_id'] = pe['id'] + self.kwargs['pe_name'] = self.kwargs['pe_id'].split('/')[-1] + + # Show the connection at cosmos db side + results = self.kwargs['pe_id'].split('/') + self.kwargs['pec_id'] = '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.DocumentDB/databaseAccounts/{2}/privateEndpointConnections/{3}'.format(results[2], results[4], self.kwargs['acc'], results[-1]) + self.cmd('cosmosdb private-endpoint show --connection-id {pec_id}', + checks=self.check('id', '{pec_id}')) + self.cmd('cosmosdb private-endpoint show --account-name {acc} --connection-name {pe_name} -g {rg}', + checks=self.check('name', '{pe_name}')) + self.cmd('cosmosdb private-endpoint show --account-name {acc} -n {pe_name} -g {rg}', + checks=self.check('name', '{pe_name}')) + + # Test approval/rejection + self.kwargs.update({ + 'approval_desc': 'You are approved!', + 'rejection_desc': 'You are rejected!' + }) + self.cmd('cosmosdb private-endpoint approve --account-name {acc} -g {rg} --connection-name {pe_name} ' + '--approval-description "{approval_desc}"', checks=[ + self.check('privateLinkServiceConnectionState.status', 'Approved'), + self.check('privateLinkServiceConnectionState.description', '{approval_desc}') + ]) + self.cmd('cosmosdb private-endpoint reject --connection-id {pec_id} ' + '--rejection-description "{rejection_desc}"', checks=[ + self.check('privateLinkServiceConnectionState.status', 'Rejected'), + self.check('privateLinkServiceConnectionState.description', '{rejection_desc}') + ]) + @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_database') def test_cosmosdb_database(self, resource_group): From b23706b182382ab5053dc49f887f435b21946c7e Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Fri, 10 Apr 2020 13:32:54 -0700 Subject: [PATCH 02/10] modify history.rst --- src/azure-cli/HISTORY.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 331af355e10..090c6ebe8d5 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -74,6 +74,8 @@ Release History **Cosmos DB** * Fix missing --type option for deprecation redirections +* Support az cosmosdb private-endpoint show/delete/approve/reject +* Support az cosmosdb private-link-resource show **Docker** From 7bd4a11e633cf998dcf9f24c71f415718bfb2b47 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Fri, 10 Apr 2020 14:05:55 -0700 Subject: [PATCH 03/10] rename to private-endpoint-connection and fix style --- src/azure-cli/HISTORY.rst | 2 +- .../cli/command_modules/cosmosdb/_help.py | 10 +- .../cli/command_modules/cosmosdb/_params.py | 4 +- .../command_modules/cosmosdb/_validators.py | 2 +- .../cli/command_modules/cosmosdb/commands.py | 2 +- .../cli/command_modules/cosmosdb/custom.py | 12 +- .../test_cosmosdb_private_endpoint.yaml | 520 +++++++++--------- .../tests/latest/test_cosmosdb_commands.py | 10 +- 8 files changed, 283 insertions(+), 279 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 090c6ebe8d5..900956b0fbb 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -74,7 +74,7 @@ Release History **Cosmos DB** * Fix missing --type option for deprecation redirections -* Support az cosmosdb private-endpoint show/delete/approve/reject +* Support az cosmosdb private-endpoint-connection show/delete/approve/reject * Support az cosmosdb private-link-resource show **Docker** diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py index 7c547a6afa9..1d33b91acff 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py @@ -487,29 +487,29 @@ """ -helps['cosmosdb private-endpoint'] = """ +helps['cosmosdb private-endpoint-connection'] = """ type: group short-summary: Manage Azure Comsos DB private endpoint connections. """ -helps['cosmosdb private-endpoint approve'] = """ +helps['cosmosdb private-endpoint-connection approve'] = """ type: command short-summary: Approve the specified private endpoint connection associated with Azure Comsos DB. """ -helps['cosmosdb private-endpoint delete'] = """ +helps['cosmosdb private-endpoint-connection delete'] = """ type: command short-summary: Delete the specified private endpoint connection associated with Azure Comsos DB. """ -helps['cosmosdb private-endpoint reject'] = """ +helps['cosmosdb private-endpoint-connection reject'] = """ type: command short-summary: Reject the specified private endpoint connection associated with Azure Comsos DB. """ -helps['cosmosdb private-endpoint show'] = """ +helps['cosmosdb private-endpoint-connection show'] = """ type: command short-summary: Show details of a private endpoint connection associated with Azure Comsos DB. """ diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py index e28c503a0b0..516ec5b35c4 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py @@ -102,7 +102,7 @@ def load_arguments(self, _): database_name_type = CLIArgumentType(options_list=['--database-name', '-d'], help='Database name.') container_name_type = CLIArgumentType(options_list=['--container-name', '-c'], help='Container name.') - with self.argument_context('cosmosdb private-endpoint') as c: + with self.argument_context('cosmosdb private-endpoint-connection') as c: c.argument('approval_description', help='Comments for the approval.') c.argument('private_endpoint_connection_name', options_list=['--connection-name', '-n'], required=False, help='The name of the private endpoint connection associated with Azure Cosmos DB. ' @@ -114,7 +114,7 @@ def load_arguments(self, _): c.argument('rejection_description', help='Comments for the rejection.') for item in ['approve', 'reject', 'delete', 'show']: - with self.argument_context('cosmosdb private-endpoint {}'.format(item)) as c: + with self.argument_context('cosmosdb private-endpoint-connection {}'.format(item)) as c: c.extra('connection_id', required=False, help='The ID of the private endpoint connection associated with Azure Cosmos DB. ' 'If specified --account-name and --connection-name/-n, this should be omitted.') diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py index 2957b94e6b9..7b4a46cab03 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py @@ -21,7 +21,7 @@ def validate_ip_range_filter(ns): ns.ip_range_filter = ",".join(ns.ip_range_filter) -def validate_private_endpoint_connection_id(cmd, ns): +def validate_private_endpoint_connection_id(ns): if ns.connection_id: id_parts = ns.connection_id.split('/') ns.private_endpoint_connection_name = id_parts[-1] diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py index d3ce88d9947..84f636aa319 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py @@ -83,7 +83,7 @@ def load_command_table(self, _): g.custom_command('update', 'cli_cosmosdb_update') g.custom_command('list', 'cli_cosmosdb_list') - with self.command_group('cosmosdb private-endpoint', + with self.command_group('cosmosdb private-endpoint-connection', cosmosdb_private_endpoint_connections_sdk, client_factory=cf_db_private_endpoint_connections) as g: g.custom_command('approve', 'approve_private_endpoint_connection', diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py index d9639bf3c65..add79748f5a 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py @@ -991,9 +991,9 @@ def cli_cosmosdb_network_rule_remove(cmd, return docdb_account -def _update_private_endpoint_connection_status(cmd, client, resource_group_name, account_name, +def _update_private_endpoint_connection_status(client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, description=None, - connection_id=None): # pylint: disable=unused-argument + connection_id=None): private_endpoint_connection = client.get(resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name) @@ -1007,22 +1007,22 @@ def _update_private_endpoint_connection_status(cmd, client, resource_group_name, private_link_service_connection_state=private_endpoint_connection.private_link_service_connection_state) -def approve_private_endpoint_connection(cmd, client, resource_group_name, account_name, private_endpoint_connection_name, +def approve_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, approval_description=None, connection_id=None): """Approve a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( - cmd, client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, + client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, description=approval_description, connection_id=connection_id ) -def reject_private_endpoint_connection(cmd, client, resource_group_name, account_name, private_endpoint_connection_name, +def reject_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, rejection_description=None, connection_id=None): """Reject a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( - cmd, client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=False, + client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=False, description=rejection_description, connection_id=connection_id ) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml index 9297b795718..76830540a61 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_pe000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T19:43:06Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T20:52:30Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:43:07 GMT + - Fri, 10 Apr 2020 20:52:31 GMT expires: - '-1' pragma: @@ -80,19 +80,19 @@ interactions: US","failoverPriority":0}],"cors":[],"capabilities":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 cache-control: - no-store, no-cache content-length: - '1547' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:43:15 GMT + - Fri, 10 Apr 2020 20:52:35 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 pragma: - no-cache server: @@ -129,7 +129,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -139,11 +139,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:43:45 GMT + - Fri, 10 Apr 2020 20:53:05 GMT pragma: - no-cache server: @@ -178,7 +178,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -188,11 +188,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:44:16 GMT + - Fri, 10 Apr 2020 20:53:35 GMT pragma: - no-cache server: @@ -227,7 +227,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -237,11 +237,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:44:47 GMT + - Fri, 10 Apr 2020 20:54:05 GMT pragma: - no-cache server: @@ -276,7 +276,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -286,11 +286,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:45:16 GMT + - Fri, 10 Apr 2020 20:54:35 GMT pragma: - no-cache server: @@ -325,7 +325,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -335,11 +335,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:45:46 GMT + - Fri, 10 Apr 2020 20:55:06 GMT pragma: - no-cache server: @@ -374,7 +374,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -384,11 +384,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:46:16 GMT + - Fri, 10 Apr 2020 20:55:36 GMT pragma: - no-cache server: @@ -423,7 +423,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -433,11 +433,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:46:47 GMT + - Fri, 10 Apr 2020 20:56:06 GMT pragma: - no-cache server: @@ -472,7 +472,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -482,11 +482,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:47:18 GMT + - Fri, 10 Apr 2020 20:56:36 GMT pragma: - no-cache server: @@ -521,7 +521,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -531,11 +531,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:47:48 GMT + - Fri, 10 Apr 2020 20:57:07 GMT pragma: - no-cache server: @@ -570,7 +570,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -580,11 +580,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:48:18 GMT + - Fri, 10 Apr 2020 20:57:37 GMT pragma: - no-cache server: @@ -619,7 +619,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -629,11 +629,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:48:49 GMT + - Fri, 10 Apr 2020 20:58:08 GMT pragma: - no-cache server: @@ -668,7 +668,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -678,11 +678,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:49:19 GMT + - Fri, 10 Apr 2020 20:58:38 GMT pragma: - no-cache server: @@ -717,7 +717,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -727,11 +727,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:49:48 GMT + - Fri, 10 Apr 2020 20:59:08 GMT pragma: - no-cache server: @@ -766,7 +766,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -776,11 +776,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:50:19 GMT + - Fri, 10 Apr 2020 20:59:39 GMT pragma: - no-cache server: @@ -815,7 +815,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -825,11 +825,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:50:49 GMT + - Fri, 10 Apr 2020 21:00:09 GMT pragma: - no-cache server: @@ -864,7 +864,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -874,11 +874,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:51:20 GMT + - Fri, 10 Apr 2020 21:00:40 GMT pragma: - no-cache server: @@ -913,7 +913,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -923,11 +923,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:51:49 GMT + - Fri, 10 Apr 2020 21:01:10 GMT pragma: - no-cache server: @@ -962,56 +962,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 - response: - body: - string: '{"status":"Dequeued"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '21' - content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 - content-type: - - application/json - date: - - Fri, 10 Apr 2020 19:52:19 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-gatewayversion: - - version=2.10.0 - status: - code: 200 - message: Ok -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cosmosdb create - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 - azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 response: body: string: '{"status":"Succeeded"}' @@ -1021,11 +972,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/08ddaa7c-b772-489a-8d9b-730adc5e20d3?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:52:51 GMT + - Fri, 10 Apr 2020 21:01:40 GMT pragma: - no-cache server: @@ -1075,11 +1026,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:52:51 GMT + - Fri, 10 Apr 2020 21:01:40 GMT pragma: - no-cache server: @@ -1131,11 +1082,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 19:52:51 GMT + - Fri, 10 Apr 2020 21:01:40 GMT pragma: - no-cache server: @@ -1182,15 +1133,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"47cf8eed-b76b-4c10-8b22-979134af75e9\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"22600751-2d56-4741-a8ab-a169e8fc74bb\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"d4d508cd-fc3f-4443-8094-11697451c0a4\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"598b8ff9-5cf2-4978-9fde-b15a21e82826\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"47cf8eed-b76b-4c10-8b22-979134af75e9\\\"\",\r\n + \ \"etag\": \"W/\\\"22600751-2d56-4741-a8ab-a169e8fc74bb\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1201,7 +1152,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b0dcb1b4-ef13-41f2-979c-716c4029d775?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b3b44882-54f3-4856-8d62-95c135bbe7f5?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1209,7 +1160,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:52:53 GMT + - Fri, 10 Apr 2020 21:01:42 GMT expires: - '-1' pragma: @@ -1222,9 +1173,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2664f5ef-8854-48b9-a56e-49353a62ef03 + - c7689747-c378-4542-9d68-73350ec562af x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1245,7 +1196,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b0dcb1b4-ef13-41f2-979c-716c4029d775?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b3b44882-54f3-4856-8d62-95c135bbe7f5?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1257,7 +1208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:52:56 GMT + - Fri, 10 Apr 2020 21:01:45 GMT expires: - '-1' pragma: @@ -1274,7 +1225,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3ebaa7d8-975a-412d-a1f3-95f393e7d525 + - 3aa16f6a-58bb-4ea0-b753-818183e91880 status: code: 200 message: OK @@ -1299,15 +1250,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"d4d508cd-fc3f-4443-8094-11697451c0a4\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"598b8ff9-5cf2-4978-9fde-b15a21e82826\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n + \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1322,9 +1273,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:52:57 GMT + - Fri, 10 Apr 2020 21:01:46 GMT etag: - - W/"1185bae8-3f32-4ff6-aad3-d2a359512458" + - W/"b19db199-a95f-43cd-a354-60b7dc3cf4dc" expires: - '-1' pragma: @@ -1341,7 +1292,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b06adc73-41ce-4e4e-a47f-91e92b5ee0b6 + - c112fb40-f013-4ed8-b5e5-f2dc0ede51f2 status: code: 200 message: OK @@ -1368,7 +1319,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"1185bae8-3f32-4ff6-aad3-d2a359512458\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1381,9 +1332,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:52:57 GMT + - Fri, 10 Apr 2020 21:01:47 GMT etag: - - W/"1185bae8-3f32-4ff6-aad3-d2a359512458" + - W/"b19db199-a95f-43cd-a354-60b7dc3cf4dc" expires: - '-1' pragma: @@ -1400,7 +1351,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 687ffa62-14b1-4f36-8277-b9b5d5cc7d48 + - 16d17631-5dad-41e7-a400-2a3120c25914 status: code: 200 message: OK @@ -1433,14 +1384,14 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"248a340b-71b8-4839-a36e-526619a89efb\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"590e5f31-1db1-4f4e-80ad-9c13c250cdb7\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1037262b-fa18-4282-9416-2b0ae257da34?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/556baede-c8b4-4b6c-8a11-e371872afb1d?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1448,7 +1399,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:52:58 GMT + - Fri, 10 Apr 2020 21:01:47 GMT expires: - '-1' pragma: @@ -1465,7 +1416,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 94628016-d47a-4eb9-b8a9-bb0e8ac859ed + - 782eca30-ed8d-4038-8e8a-ff91d83e9996 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1488,7 +1439,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/1037262b-fa18-4282-9416-2b0ae257da34?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/556baede-c8b4-4b6c-8a11-e371872afb1d?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1500,7 +1451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:02 GMT + - Fri, 10 Apr 2020 21:01:51 GMT expires: - '-1' pragma: @@ -1517,7 +1468,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a453dc31-9d7f-4d73-8fc5-582a8282a19c + - 84179435-f1b6-4b5d-a1ad-3a57458e3ced status: code: 200 message: OK @@ -1542,7 +1493,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"e82addf9-06d1-4145-bad4-2b72a77c5e94\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"ed85870a-994c-4944-8d84-cc75d68dff35\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1555,9 +1506,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:02 GMT + - Fri, 10 Apr 2020 21:01:51 GMT etag: - - W/"e82addf9-06d1-4145-bad4-2b72a77c5e94" + - W/"ed85870a-994c-4944-8d84-cc75d68dff35" expires: - '-1' pragma: @@ -1574,7 +1525,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3d598014-4bc0-4eea-a8fc-fbd3dd96242c + - 4ec4e1ee-9bc9-43db-b33c-83b8567aa99c status: code: 200 message: OK @@ -1608,12 +1559,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"b5bec98f-6e9b-4ac3-9ef1-6214c61a8fb6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"4a2db89f-befe-4209-bf45-93a029b07970\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"11f5d9a9-de17-4176-8f1c-42141ef2f375\",\r\n \"privateLinkServiceConnections\": + \"02cfe4a0-2b76-4de4-9832-a3fa36783f85\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"b5bec98f-6e9b-4ac3-9ef1-6214c61a8fb6\\\"\",\r\n + \ \"etag\": \"W/\\\"4a2db89f-befe-4209-bf45-93a029b07970\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1622,13 +1573,13 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.dfd08ddd-02ab-4300-a0d9-bb3ce1b59974\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.5f7e5d4e-3359-4813-8a55-b18da400b4c6\"\r\n \ }\r\n ]\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1636,7 +1587,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:05 GMT + - Fri, 10 Apr 2020 21:01:55 GMT expires: - '-1' pragma: @@ -1649,9 +1600,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5c6f568a-96fd-4e28-9404-ada918576fee + - a8d763c9-441e-4dc2-a426-7a43c8c1a429 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1673,7 +1624,109 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 21:02:05 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: + - 1be2972c-662f-422d-b9c5-23e2cae2b172 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Apr 2020 21:02:15 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: + - dbd9c215-cf93-43ee-9647-38093bdb8b4b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-ids + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1685,7 +1738,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:15 GMT + - Fri, 10 Apr 2020 21:02:25 GMT expires: - '-1' pragma: @@ -1702,7 +1755,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b4aae047-cd8e-44df-93c8-256696af9aca + - ca41f525-d908-4712-bbcf-08ad9ac3affa status: code: 200 message: OK @@ -1724,7 +1777,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/d0e5f032-4dba-4066-ab4a-e646cbec9f6b?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1736,7 +1789,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:25 GMT + - Fri, 10 Apr 2020 21:02:35 GMT expires: - '-1' pragma: @@ -1753,7 +1806,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 35897fa3-40d4-4873-8db4-7500a2c7d3a0 + - 46cbd07d-a2e6-432f-bf37-0d53138a6ee9 status: code: 200 message: OK @@ -1779,12 +1832,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"1f14185d-74c8-4347-93a8-5cea16d39449\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"11f5d9a9-de17-4176-8f1c-42141ef2f375\",\r\n \"privateLinkServiceConnections\": + \"02cfe4a0-2b76-4de4-9832-a3fa36783f85\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e\\\"\",\r\n + \ \"etag\": \"W/\\\"1f14185d-74c8-4347-93a8-5cea16d39449\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1793,7 +1846,7 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.dfd08ddd-02ab-4300-a0d9-bb3ce1b59974\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.5f7e5d4e-3359-4813-8a55-b18da400b4c6\"\r\n \ }\r\n ]\r\n }\r\n}" headers: cache-control: @@ -1803,9 +1856,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 19:53:25 GMT + - Fri, 10 Apr 2020 21:02:35 GMT etag: - - W/"fba5bd0d-056e-4e96-a57d-7bd4c3e4fa8e" + - W/"1f14185d-74c8-4347-93a8-5cea16d39449" expires: - '-1' pragma: @@ -1822,7 +1875,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 89fb6918-9f5b-4b07-9928-335b4a516313 + - 04ec3b16-b86c-4c51-8f32-44a02683adfa status: code: 200 message: OK @@ -1834,7 +1887,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint show + - cosmosdb private-endpoint-connection show Connection: - keep-alive ParameterSetName: @@ -1855,11 +1908,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:53:26 GMT + - Fri, 10 Apr 2020 21:02:36 GMT pragma: - no-cache server: @@ -1885,7 +1938,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint show + - cosmosdb private-endpoint-connection show Connection: - keep-alive ParameterSetName: @@ -1906,11 +1959,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:53:27 GMT + - Fri, 10 Apr 2020 21:02:38 GMT pragma: - no-cache server: @@ -1936,7 +1989,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint show + - cosmosdb private-endpoint-connection show Connection: - keep-alive ParameterSetName: @@ -1957,11 +2010,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:53:28 GMT + - Fri, 10 Apr 2020 21:02:38 GMT pragma: - no-cache server: @@ -1987,7 +2040,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint approve + - cosmosdb private-endpoint-connection approve Connection: - keep-alive ParameterSetName: @@ -2008,11 +2061,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:53:28 GMT + - Fri, 10 Apr 2020 21:02:39 GMT pragma: - no-cache server: @@ -2039,7 +2092,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint approve + - cosmosdb private-endpoint-connection approve Connection: - keep-alive Content-Length: @@ -2060,19 +2113,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:53:29 GMT + - Fri, 10 Apr 2020 21:02:40 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2096,56 +2149,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint approve - Connection: - - keep-alive - ParameterSetName: - - --account-name -g --connection-name --approval-description - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 - azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview - response: - body: - string: '{"status":"Dequeued"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '21' - content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview - content-type: - - application/json - date: - - Fri, 10 Apr 2020 19:54:00 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-gatewayversion: - - version=2.10.0 - status: - code: 200 - message: Ok -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cosmosdb private-endpoint approve + - cosmosdb private-endpoint-connection approve Connection: - keep-alive ParameterSetName: @@ -2154,7 +2158,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2164,11 +2168,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a3cd3d00-6df4-4331-be4a-96bf060d2b52?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:54:30 GMT + - Fri, 10 Apr 2020 21:03:10 GMT pragma: - no-cache server: @@ -2194,7 +2198,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint approve + - cosmosdb private-endpoint-connection approve Connection: - keep-alive ParameterSetName: @@ -2214,11 +2218,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:54:30 GMT + - Fri, 10 Apr 2020 21:03:11 GMT pragma: - no-cache server: @@ -2244,7 +2248,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint reject + - cosmosdb private-endpoint-connection reject Connection: - keep-alive ParameterSetName: @@ -2266,11 +2270,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:54:30 GMT + - Fri, 10 Apr 2020 21:03:11 GMT pragma: - no-cache server: @@ -2297,7 +2301,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint reject + - cosmosdb private-endpoint-connection reject Connection: - keep-alive Content-Length: @@ -2318,19 +2322,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:54:31 GMT + - Fri, 10 Apr 2020 21:03:12 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2342,7 +2346,7 @@ interactions: x-ms-gatewayversion: - version=2.10.0 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -2354,7 +2358,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint reject + - cosmosdb private-endpoint-connection reject Connection: - keep-alive ParameterSetName: @@ -2363,7 +2367,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview response: body: string: '{"status":"Dequeued"}' @@ -2373,11 +2377,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:55:02 GMT + - Fri, 10 Apr 2020 21:03:43 GMT pragma: - no-cache server: @@ -2403,7 +2407,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint reject + - cosmosdb private-endpoint-connection reject Connection: - keep-alive ParameterSetName: @@ -2412,7 +2416,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2422,11 +2426,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/84f86708-958a-4f48-aeec-c41fd3edd8ee?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:55:32 GMT + - Fri, 10 Apr 2020 21:04:13 GMT pragma: - no-cache server: @@ -2452,7 +2456,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-endpoint reject + - cosmosdb private-endpoint-connection reject Connection: - keep-alive ParameterSetName: @@ -2472,11 +2476,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peccoiq5ke4vtku7sx5edbolwih4bwmgmp5lt7uz54x5l7xvl4eflritp/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-4q6hqwx/privateEndpointConnections/cli-pe-thphfwf6uzq5mpe7e?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 19:55:32 GMT + - Fri, 10 Apr 2020 21:04:13 GMT pragma: - no-cache server: diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py index 0df6c989150..9ce2f001237 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py @@ -343,11 +343,11 @@ def test_cosmosdb_private_endpoint(self, resource_group): # Show the connection at cosmos db side results = self.kwargs['pe_id'].split('/') self.kwargs['pec_id'] = '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.DocumentDB/databaseAccounts/{2}/privateEndpointConnections/{3}'.format(results[2], results[4], self.kwargs['acc'], results[-1]) - self.cmd('cosmosdb private-endpoint show --connection-id {pec_id}', + self.cmd('cosmosdb private-endpoint-connection show --connection-id {pec_id}', checks=self.check('id', '{pec_id}')) - self.cmd('cosmosdb private-endpoint show --account-name {acc} --connection-name {pe_name} -g {rg}', + self.cmd('cosmosdb private-endpoint-connection show --account-name {acc} --connection-name {pe_name} -g {rg}', checks=self.check('name', '{pe_name}')) - self.cmd('cosmosdb private-endpoint show --account-name {acc} -n {pe_name} -g {rg}', + self.cmd('cosmosdb private-endpoint-connection show --account-name {acc} -n {pe_name} -g {rg}', checks=self.check('name', '{pe_name}')) # Test approval/rejection @@ -355,12 +355,12 @@ def test_cosmosdb_private_endpoint(self, resource_group): 'approval_desc': 'You are approved!', 'rejection_desc': 'You are rejected!' }) - self.cmd('cosmosdb private-endpoint approve --account-name {acc} -g {rg} --connection-name {pe_name} ' + self.cmd('cosmosdb private-endpoint-connection approve --account-name {acc} -g {rg} --connection-name {pe_name} ' '--approval-description "{approval_desc}"', checks=[ self.check('privateLinkServiceConnectionState.status', 'Approved'), self.check('privateLinkServiceConnectionState.description', '{approval_desc}') ]) - self.cmd('cosmosdb private-endpoint reject --connection-id {pec_id} ' + self.cmd('cosmosdb private-endpoint-connection reject --connection-id {pec_id} ' '--rejection-description "{rejection_desc}"', checks=[ self.check('privateLinkServiceConnectionState.status', 'Rejected'), self.check('privateLinkServiceConnectionState.description', '{rejection_desc}') From ffb8859908d633d85a4f45c2e00ca1ce313e6cb1 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Fri, 10 Apr 2020 14:42:30 -0700 Subject: [PATCH 04/10] style fix --- .../cli/command_modules/cosmosdb/custom.py | 11 +- .../test_cosmosdb_private_endpoint.yaml | 449 ++++++++++-------- 2 files changed, 253 insertions(+), 207 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py index add79748f5a..a8e8987064e 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py @@ -992,8 +992,7 @@ def cli_cosmosdb_network_rule_remove(cmd, def _update_private_endpoint_connection_status(client, resource_group_name, account_name, - private_endpoint_connection_name, is_approved=True, description=None, - connection_id=None): + private_endpoint_connection_name, is_approved=True, description=None): private_endpoint_connection = client.get(resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name) @@ -1008,22 +1007,22 @@ def _update_private_endpoint_connection_status(client, resource_group_name, acco def approve_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, - approval_description=None, connection_id=None): + approval_description=None): """Approve a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, - description=approval_description, connection_id=connection_id + description=approval_description ) def reject_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, - rejection_description=None, connection_id=None): + rejection_description=None): """Reject a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=False, - description=rejection_description, connection_id=connection_id + description=rejection_description ) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml index 76830540a61..4f56f73a1df 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_pe000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T20:52:30Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T21:22:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 20:52:31 GMT + - Fri, 10 Apr 2020 21:22:14 GMT expires: - '-1' pragma: @@ -80,19 +80,19 @@ interactions: US","failoverPriority":0}],"cors":[],"capabilities":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 cache-control: - no-store, no-cache content-length: - '1547' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:52:35 GMT + - Fri, 10 Apr 2020 21:22:17 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 pragma: - no-cache server: @@ -129,7 +129,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -139,11 +139,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:53:05 GMT + - Fri, 10 Apr 2020 21:22:48 GMT pragma: - no-cache server: @@ -178,7 +178,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -188,11 +188,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:53:35 GMT + - Fri, 10 Apr 2020 21:23:18 GMT pragma: - no-cache server: @@ -227,7 +227,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -237,11 +237,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:54:05 GMT + - Fri, 10 Apr 2020 21:23:48 GMT pragma: - no-cache server: @@ -276,7 +276,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -286,11 +286,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:54:35 GMT + - Fri, 10 Apr 2020 21:24:19 GMT pragma: - no-cache server: @@ -325,7 +325,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -335,11 +335,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:55:06 GMT + - Fri, 10 Apr 2020 21:24:50 GMT pragma: - no-cache server: @@ -374,7 +374,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -384,11 +384,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:55:36 GMT + - Fri, 10 Apr 2020 21:25:20 GMT pragma: - no-cache server: @@ -423,7 +423,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -433,11 +433,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:56:06 GMT + - Fri, 10 Apr 2020 21:25:50 GMT pragma: - no-cache server: @@ -472,7 +472,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -482,11 +482,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:56:36 GMT + - Fri, 10 Apr 2020 21:26:20 GMT pragma: - no-cache server: @@ -521,7 +521,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -531,11 +531,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:57:07 GMT + - Fri, 10 Apr 2020 21:26:50 GMT pragma: - no-cache server: @@ -570,7 +570,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -580,11 +580,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:57:37 GMT + - Fri, 10 Apr 2020 21:27:22 GMT pragma: - no-cache server: @@ -619,7 +619,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -629,11 +629,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:58:08 GMT + - Fri, 10 Apr 2020 21:27:52 GMT pragma: - no-cache server: @@ -668,7 +668,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -678,11 +678,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:58:38 GMT + - Fri, 10 Apr 2020 21:28:22 GMT pragma: - no-cache server: @@ -717,7 +717,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -727,11 +727,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:59:08 GMT + - Fri, 10 Apr 2020 21:28:53 GMT pragma: - no-cache server: @@ -766,7 +766,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -776,11 +776,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 20:59:39 GMT + - Fri, 10 Apr 2020 21:29:23 GMT pragma: - no-cache server: @@ -815,7 +815,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -825,11 +825,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:00:09 GMT + - Fri, 10 Apr 2020 21:29:54 GMT pragma: - no-cache server: @@ -864,7 +864,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -874,11 +874,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:00:40 GMT + - Fri, 10 Apr 2020 21:30:24 GMT pragma: - no-cache server: @@ -913,7 +913,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -923,11 +923,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:01:10 GMT + - Fri, 10 Apr 2020 21:30:54 GMT pragma: - no-cache server: @@ -962,7 +962,105 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 21:31:25 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + content-type: + - application/json + date: + - Fri, 10 Apr 2020 21:31:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 response: body: string: '{"status":"Succeeded"}' @@ -972,11 +1070,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cb3ecf9c-c431-4943-b3de-5c474b1347d8?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:01:40 GMT + - Fri, 10 Apr 2020 21:32:26 GMT pragma: - no-cache server: @@ -1026,11 +1124,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:01:40 GMT + - Fri, 10 Apr 2020 21:32:26 GMT pragma: - no-cache server: @@ -1082,11 +1180,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:01:40 GMT + - Fri, 10 Apr 2020 21:32:26 GMT pragma: - no-cache server: @@ -1133,15 +1231,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"22600751-2d56-4741-a8ab-a169e8fc74bb\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"f9a34e92-c1fe-4c76-9057-db4873313a2b\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"598b8ff9-5cf2-4978-9fde-b15a21e82826\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"2280009d-5c26-4ebb-80d6-10ac209be8f0\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"22600751-2d56-4741-a8ab-a169e8fc74bb\\\"\",\r\n + \ \"etag\": \"W/\\\"f9a34e92-c1fe-4c76-9057-db4873313a2b\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1152,7 +1250,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b3b44882-54f3-4856-8d62-95c135bbe7f5?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/c4178c76-5d56-40df-8f28-d367a5a8fa2f?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1160,7 +1258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:42 GMT + - Fri, 10 Apr 2020 21:32:28 GMT expires: - '-1' pragma: @@ -1173,7 +1271,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c7689747-c378-4542-9d68-73350ec562af + - 8db3d817-e9df-4d32-80f5-ed8ed5bce93c x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1196,7 +1294,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/b3b44882-54f3-4856-8d62-95c135bbe7f5?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/c4178c76-5d56-40df-8f28-d367a5a8fa2f?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1208,7 +1306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:45 GMT + - Fri, 10 Apr 2020 21:32:32 GMT expires: - '-1' pragma: @@ -1225,7 +1323,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3aa16f6a-58bb-4ea0-b753-818183e91880 + - 68ec77d8-6271-4b64-90e6-516ecbf8b793 status: code: 200 message: OK @@ -1250,15 +1348,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"598b8ff9-5cf2-4978-9fde-b15a21e82826\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"2280009d-5c26-4ebb-80d6-10ac209be8f0\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n + \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1273,9 +1371,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:46 GMT + - Fri, 10 Apr 2020 21:32:32 GMT etag: - - W/"b19db199-a95f-43cd-a354-60b7dc3cf4dc" + - W/"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d" expires: - '-1' pragma: @@ -1292,7 +1390,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c112fb40-f013-4ed8-b5e5-f2dc0ede51f2 + - 8594ee32-83ba-4f5b-946a-802fb5e6d7fe status: code: 200 message: OK @@ -1319,7 +1417,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"b19db199-a95f-43cd-a354-60b7dc3cf4dc\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1332,9 +1430,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:47 GMT + - Fri, 10 Apr 2020 21:32:32 GMT etag: - - W/"b19db199-a95f-43cd-a354-60b7dc3cf4dc" + - W/"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d" expires: - '-1' pragma: @@ -1351,7 +1449,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 16d17631-5dad-41e7-a400-2a3120c25914 + - e7fe369b-8b29-465a-a049-b1392efd8dc2 status: code: 200 message: OK @@ -1384,14 +1482,14 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"590e5f31-1db1-4f4e-80ad-9c13c250cdb7\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"8df7245b-f2ac-4c4b-937f-6428cc6a9af4\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/556baede-c8b4-4b6c-8a11-e371872afb1d?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7511ff31-e56e-4381-8660-4103c26e73e1?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1399,7 +1497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:47 GMT + - Fri, 10 Apr 2020 21:32:33 GMT expires: - '-1' pragma: @@ -1416,7 +1514,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 782eca30-ed8d-4038-8e8a-ff91d83e9996 + - c01cd305-ea9b-419a-8a7b-c7e08cc0ca63 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1439,7 +1537,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/556baede-c8b4-4b6c-8a11-e371872afb1d?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7511ff31-e56e-4381-8660-4103c26e73e1?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1451,7 +1549,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:51 GMT + - Fri, 10 Apr 2020 21:32:36 GMT expires: - '-1' pragma: @@ -1468,7 +1566,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 84179435-f1b6-4b5d-a1ad-3a57458e3ced + - d0edc882-14d1-4206-be6d-c5a425811431 status: code: 200 message: OK @@ -1493,7 +1591,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"ed85870a-994c-4944-8d84-cc75d68dff35\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"8aa94c07-84b8-4879-8e31-55ba535a03b8\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1506,9 +1604,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:51 GMT + - Fri, 10 Apr 2020 21:32:37 GMT etag: - - W/"ed85870a-994c-4944-8d84-cc75d68dff35" + - W/"8aa94c07-84b8-4879-8e31-55ba535a03b8" expires: - '-1' pragma: @@ -1525,7 +1623,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4ec4e1ee-9bc9-43db-b33c-83b8567aa99c + - cac9c4f4-a028-4803-874a-1a1ce33380c7 status: code: 200 message: OK @@ -1559,12 +1657,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"4a2db89f-befe-4209-bf45-93a029b07970\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"22a726e5-97a2-4d3a-8de2-6e1d4d3793ca\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"02cfe4a0-2b76-4de4-9832-a3fa36783f85\",\r\n \"privateLinkServiceConnections\": + \"707ce083-18b2-4a10-b448-4fa9e0e1987e\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"4a2db89f-befe-4209-bf45-93a029b07970\\\"\",\r\n + \ \"etag\": \"W/\\\"22a726e5-97a2-4d3a-8de2-6e1d4d3793ca\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1573,13 +1671,13 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.5f7e5d4e-3359-4813-8a55-b18da400b4c6\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48300336-2a88-425e-8597-ee098240748e\"\r\n \ }\r\n ]\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1587,7 +1685,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:01:55 GMT + - Fri, 10 Apr 2020 21:32:41 GMT expires: - '-1' pragma: @@ -1600,9 +1698,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a8d763c9-441e-4dc2-a426-7a43c8c1a429 + - 354e926b-b37e-4b7c-9102-66d740071556 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1624,7 +1722,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1636,7 +1734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:02:05 GMT + - Fri, 10 Apr 2020 21:32:52 GMT expires: - '-1' pragma: @@ -1653,7 +1751,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1be2972c-662f-422d-b9c5-23e2cae2b172 + - 5a785799-8e30-4368-95f8-c3ec1e97176e status: code: 200 message: OK @@ -1675,7 +1773,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1687,7 +1785,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:02:15 GMT + - Fri, 10 Apr 2020 21:33:02 GMT expires: - '-1' pragma: @@ -1704,7 +1802,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - dbd9c215-cf93-43ee-9647-38093bdb8b4b + - cc28d664-f287-4a64-b3d5-11f665accb87 status: code: 200 message: OK @@ -1726,58 +1824,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Apr 2020 21:02:25 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: - - ca41f525-d908-4712-bbcf-08ad9ac3affa - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network private-endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id - --group-ids - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 - azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/fbeb6170-9161-41ea-b381-52f43abd3d4a?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1789,7 +1836,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:02:35 GMT + - Fri, 10 Apr 2020 21:33:12 GMT expires: - '-1' pragma: @@ -1806,7 +1853,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 46cbd07d-a2e6-432f-bf37-0d53138a6ee9 + - b73a75ee-61ac-4c85-a115-bd37d38743fd status: code: 200 message: OK @@ -1832,12 +1879,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"1f14185d-74c8-4347-93a8-5cea16d39449\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"bc94b850-e5d3-4352-bd3d-4fda0e335083\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"02cfe4a0-2b76-4de4-9832-a3fa36783f85\",\r\n \"privateLinkServiceConnections\": + \"707ce083-18b2-4a10-b448-4fa9e0e1987e\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"1f14185d-74c8-4347-93a8-5cea16d39449\\\"\",\r\n + \ \"etag\": \"W/\\\"bc94b850-e5d3-4352-bd3d-4fda0e335083\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1846,7 +1893,7 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.5f7e5d4e-3359-4813-8a55-b18da400b4c6\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48300336-2a88-425e-8597-ee098240748e\"\r\n \ }\r\n ]\r\n }\r\n}" headers: cache-control: @@ -1856,9 +1903,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:02:35 GMT + - Fri, 10 Apr 2020 21:33:12 GMT etag: - - W/"1f14185d-74c8-4347-93a8-5cea16d39449" + - W/"bc94b850-e5d3-4352-bd3d-4fda0e335083" expires: - '-1' pragma: @@ -1875,7 +1922,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 04ec3b16-b86c-4c51-8f32-44a02683adfa + - 0cf81d54-a2f5-4017-9098-45c3d7d8e4d2 status: code: 200 message: OK @@ -1908,11 +1955,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:02:36 GMT + - Fri, 10 Apr 2020 21:33:14 GMT pragma: - no-cache server: @@ -1959,11 +2006,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:02:38 GMT + - Fri, 10 Apr 2020 21:33:15 GMT pragma: - no-cache server: @@ -2010,11 +2057,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:02:38 GMT + - Fri, 10 Apr 2020 21:33:15 GMT pragma: - no-cache server: @@ -2061,11 +2108,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:02:39 GMT + - Fri, 10 Apr 2020 21:33:16 GMT pragma: - no-cache server: @@ -2113,19 +2160,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:02:40 GMT + - Fri, 10 Apr 2020 21:33:16 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2158,7 +2205,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2168,11 +2215,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a52d1069-43ce-4797-807c-61fe3273efe5?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:03:10 GMT + - Fri, 10 Apr 2020 21:33:47 GMT pragma: - no-cache server: @@ -2218,11 +2265,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:03:11 GMT + - Fri, 10 Apr 2020 21:33:47 GMT pragma: - no-cache server: @@ -2270,11 +2317,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:03:11 GMT + - Fri, 10 Apr 2020 21:33:48 GMT pragma: - no-cache server: @@ -2322,19 +2369,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:03:12 GMT + - Fri, 10 Apr 2020 21:33:48 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2346,7 +2393,7 @@ interactions: x-ms-gatewayversion: - version=2.10.0 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -2367,7 +2414,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview response: body: string: '{"status":"Dequeued"}' @@ -2377,11 +2424,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:03:43 GMT + - Fri, 10 Apr 2020 21:34:19 GMT pragma: - no-cache server: @@ -2416,7 +2463,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2426,11 +2473,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/816275ef-b536-4f35-8c68-4cac089bf349?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:04:13 GMT + - Fri, 10 Apr 2020 21:34:49 GMT pragma: - no-cache server: @@ -2476,11 +2523,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_pervpiqdyax5boem3avzl7rbkcnrtq3udnlqmt3bewo7jl6zpyo4aptqs/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-cw4g4qc/privateEndpointConnections/cli-pe-yx6trpgc5ii6i73jd?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:04:13 GMT + - Fri, 10 Apr 2020 21:34:49 GMT pragma: - no-cache server: From ca023291175d3e80659e47ce5c8cfb82c414375e Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Wed, 15 Apr 2020 17:16:50 -0700 Subject: [PATCH 05/10] fix following command guideline and comments --- .../cli/command_modules/cosmosdb/_help.py | 16 + .../cli/command_modules/cosmosdb/_params.py | 11 +- .../command_modules/cosmosdb/_validators.py | 11 +- .../cli/command_modules/cosmosdb/commands.py | 3 +- .../cli/command_modules/cosmosdb/custom.py | 8 +- .../test_cosmosdb_private_endpoint.yaml | 481 ++++++++++-------- .../test_cosmosdb_private_link_resource.yaml | 232 ++++++--- 7 files changed, 465 insertions(+), 297 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py index 1d33b91acff..d9f9d7f5e8b 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py @@ -495,23 +495,36 @@ helps['cosmosdb private-endpoint-connection approve'] = """ type: command short-summary: Approve the specified private endpoint connection associated with Azure Comsos DB. +examples: + - name: Approve the specified private endpoint connection associated with Azure Comsos DB. + text: az cosmosdb private-endpoint-connection approve --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup --description "Approved" """ helps['cosmosdb private-endpoint-connection delete'] = """ type: command short-summary: Delete the specified private endpoint connection associated with Azure Comsos DB. +examples: + - name: Delete the specified private endpoint connection associated with Azure Comsos DB. + text: az cosmosdb private-endpoint-connection delete --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup + """ helps['cosmosdb private-endpoint-connection reject'] = """ type: command short-summary: Reject the specified private endpoint connection associated with Azure Comsos DB. +examples: + - name: Reject the specified private endpoint connection associated with Azure Comsos DB. + text: az cosmosdb private-endpoint-connection reject --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup --description "Rejected" """ helps['cosmosdb private-endpoint-connection show'] = """ type: command short-summary: Show details of a private endpoint connection associated with Azure Comsos DB. +examples: + - name: Show details of a private endpoint connection associated with Azure Comsos DB. + text: az cosmosdb private-endpoint-connection show --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup """ helps['cosmosdb private-link-resource'] = """ @@ -522,6 +535,9 @@ helps['cosmosdb private-link-resource show'] = """ type: command short-summary: Show the private link resources supported for Azure Comsos DB. +example: + - name: Show the private link resources supported for Azure Comsos DB. + text: cosmosdb private-link-resource show --account-name MyAccount --resource-group MyResourceGroup """ diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py index 516ec5b35c4..3f43febe04a 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py @@ -103,21 +103,20 @@ def load_arguments(self, _): container_name_type = CLIArgumentType(options_list=['--container-name', '-c'], help='Container name.') with self.argument_context('cosmosdb private-endpoint-connection') as c: - c.argument('approval_description', help='Comments for the approval.') - c.argument('private_endpoint_connection_name', options_list=['--connection-name', '-n'], required=False, + c.argument('private_endpoint_connection_name', options_list=['--name', '-n'], required=False, help='The name of the private endpoint connection associated with Azure Cosmos DB. ' 'Required if --connection-id is not specified') c.argument('account_name', account_name_type, required=False, help='Name of the Cosmos DB database account. Required if --connection-id is not specified') c.argument('resource_group_name', required=False, - help='The resource group name of specified Cosmos DB account.') - c.argument('rejection_description', help='Comments for the rejection.') + help='The resource group name of specified Cosmos DB account. Required if --connection-id is not specified') for item in ['approve', 'reject', 'delete', 'show']: with self.argument_context('cosmosdb private-endpoint-connection {}'.format(item)) as c: - c.extra('connection_id', required=False, + c.extra('connection_id', options_list=['--id'], required=False, help='The ID of the private endpoint connection associated with Azure Cosmos DB. ' - 'If specified --account-name and --connection-name/-n, this should be omitted.') + 'If specified --account-name --resource-group/-g and --connection-name/-n, this should be omitted.') + c.argument('description', options_list=['--description'], required=False, help='Comments for the {} operation.'.format(item)) with self.argument_context('cosmosdb private-link-resource') as c: c.argument('account_name', account_name_type, required=True, help="Cosmosdb account name") diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py index 7b4a46cab03..634f3f94c50 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py @@ -23,13 +23,14 @@ def validate_ip_range_filter(ns): def validate_private_endpoint_connection_id(ns): if ns.connection_id: - id_parts = ns.connection_id.split('/') - ns.private_endpoint_connection_name = id_parts[-1] - ns.account_name = id_parts[-3] - ns.resource_group_name = id_parts[-7] + from azure.cli.core.util import parse_proxy_resource_id + result = parse_proxy_resource_id(ns.connection_id) + ns.resource_group_name = result['resource_group'] + ns.account_name = result['name'] + ns.private_endpoint_connection_name = result['child_name_1'] if not all([ns.account_name, ns.resource_group_name, ns.private_endpoint_connection_name]): - raise CLIError(None, 'incorrect usage: [--id ID | --name NAME --account-name NAME]') + raise CLIError(None, 'incorrect usage: [--id ID | --name NAME --account-name NAME --resource-group NAME]') del ns.connection_id diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py index 84f636aa319..0c221bb8035 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py @@ -96,7 +96,8 @@ def load_command_table(self, _): with self.command_group('cosmosdb private-link-resource', cosmosdb_private_link_resources_sdk, client_factory=cf_db_private_link_resources) as g: - g.show_command('show', 'list_by_database_account') + from azure.cli.core.commands.transform import gen_dict_to_list_transform + g.show_command('list', 'list_by_database_account', transform=gen_dict_to_list_transform(key='values')) # SQL api with self.command_group('cosmosdb sql', is_preview=True): diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py index a8e8987064e..577b7c5b4fa 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py @@ -1007,22 +1007,22 @@ def _update_private_endpoint_connection_status(client, resource_group_name, acco def approve_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, - approval_description=None): + description=None): """Approve a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=True, - description=approval_description + description=description ) def reject_private_endpoint_connection(client, resource_group_name, account_name, private_endpoint_connection_name, - rejection_description=None): + description=None): """Reject a private endpoint connection request for Azure Cosmos DB.""" return _update_private_endpoint_connection_status( client, resource_group_name, account_name, private_endpoint_connection_name, is_approved=False, - description=rejection_description + description=description ) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml index 4f56f73a1df..5b328f0953b 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_pe000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-10T21:22:12Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001","name":"cli_test_cosmosdb_pe000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-15T23:54:02Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:22:14 GMT + - Wed, 15 Apr 2020 23:54:02 GMT expires: - '-1' pragma: @@ -80,19 +80,19 @@ interactions: US","failoverPriority":0}],"cors":[],"capabilities":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 cache-control: - no-store, no-cache content-length: - '1547' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:22:17 GMT + - Wed, 15 Apr 2020 23:54:06 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/operationResults/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 pragma: - no-cache server: @@ -129,7 +129,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -139,11 +139,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:22:48 GMT + - Wed, 15 Apr 2020 23:54:35 GMT pragma: - no-cache server: @@ -178,7 +178,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -188,11 +188,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:23:18 GMT + - Wed, 15 Apr 2020 23:55:07 GMT pragma: - no-cache server: @@ -227,7 +227,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -237,11 +237,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:23:48 GMT + - Wed, 15 Apr 2020 23:55:37 GMT pragma: - no-cache server: @@ -276,7 +276,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -286,11 +286,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:24:19 GMT + - Wed, 15 Apr 2020 23:56:07 GMT pragma: - no-cache server: @@ -325,7 +325,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -335,11 +335,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:24:50 GMT + - Wed, 15 Apr 2020 23:56:38 GMT pragma: - no-cache server: @@ -374,7 +374,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -384,11 +384,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:25:20 GMT + - Wed, 15 Apr 2020 23:57:08 GMT pragma: - no-cache server: @@ -423,7 +423,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -433,11 +433,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:25:50 GMT + - Wed, 15 Apr 2020 23:57:39 GMT pragma: - no-cache server: @@ -472,7 +472,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -482,11 +482,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:26:20 GMT + - Wed, 15 Apr 2020 23:58:08 GMT pragma: - no-cache server: @@ -521,7 +521,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -531,11 +531,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:26:50 GMT + - Wed, 15 Apr 2020 23:58:39 GMT pragma: - no-cache server: @@ -570,7 +570,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -580,11 +580,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:27:22 GMT + - Wed, 15 Apr 2020 23:59:09 GMT pragma: - no-cache server: @@ -619,7 +619,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -629,11 +629,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:27:52 GMT + - Wed, 15 Apr 2020 23:59:39 GMT pragma: - no-cache server: @@ -668,7 +668,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -678,11 +678,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:28:22 GMT + - Thu, 16 Apr 2020 00:00:11 GMT pragma: - no-cache server: @@ -717,7 +717,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -727,11 +727,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:28:53 GMT + - Thu, 16 Apr 2020 00:00:42 GMT pragma: - no-cache server: @@ -766,7 +766,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -776,11 +776,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:29:23 GMT + - Thu, 16 Apr 2020 00:01:12 GMT pragma: - no-cache server: @@ -815,7 +815,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -825,11 +825,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:29:54 GMT + - Thu, 16 Apr 2020 00:01:42 GMT pragma: - no-cache server: @@ -864,7 +864,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -874,11 +874,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:30:24 GMT + - Thu, 16 Apr 2020 00:02:12 GMT pragma: - no-cache server: @@ -913,7 +913,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -923,11 +923,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:30:54 GMT + - Thu, 16 Apr 2020 00:02:43 GMT pragma: - no-cache server: @@ -962,7 +962,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -972,11 +972,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:31:25 GMT + - Thu, 16 Apr 2020 00:03:14 GMT pragma: - no-cache server: @@ -1011,7 +1011,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -1021,11 +1021,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:31:56 GMT + - Thu, 16 Apr 2020 00:03:44 GMT pragma: - no-cache server: @@ -1060,7 +1060,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 response: body: string: '{"status":"Succeeded"}' @@ -1070,11 +1070,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/c36792e0-ce8c-402f-903f-99fed5d07992?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/18fdb0c3-e453-4448-b28c-e8b723be0167?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:32:26 GMT + - Thu, 16 Apr 2020 00:04:14 GMT pragma: - no-cache server: @@ -1124,11 +1124,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:32:26 GMT + - Thu, 16 Apr 2020 00:04:15 GMT pragma: - no-cache server: @@ -1180,11 +1180,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64?api-version=2019-12-12 content-type: - application/json date: - - Fri, 10 Apr 2020 21:32:26 GMT + - Thu, 16 Apr 2020 00:04:15 GMT pragma: - no-cache server: @@ -1231,15 +1231,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"f9a34e92-c1fe-4c76-9057-db4873313a2b\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"4787f499-90c0-4411-85ef-1c8055ef7ce3\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"2280009d-5c26-4ebb-80d6-10ac209be8f0\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"816d7cb1-bbca-4885-b13e-cfc10e46b6e9\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"f9a34e92-c1fe-4c76-9057-db4873313a2b\\\"\",\r\n + \ \"etag\": \"W/\\\"4787f499-90c0-4411-85ef-1c8055ef7ce3\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1250,7 +1250,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/c4178c76-5d56-40df-8f28-d367a5a8fa2f?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1258,7 +1258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:28 GMT + - Thu, 16 Apr 2020 00:04:17 GMT expires: - '-1' pragma: @@ -1271,7 +1271,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8db3d817-e9df-4d32-80f5-ed8ed5bce93c + - 1424dde7-67b5-4367-84b4-2ca502526f15 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1294,7 +1294,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/c4178c76-5d56-40df-8f28-d367a5a8fa2f?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1306,7 +1306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:32 GMT + - Thu, 16 Apr 2020 00:04:20 GMT expires: - '-1' pragma: @@ -1323,7 +1323,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 68ec77d8-6271-4b64-90e6-516ecbf8b793 + - d759fd9c-c9e9-4c1c-934a-44c731264805 status: code: 200 message: OK @@ -1348,15 +1348,15 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"136b24e6-f2e8-440a-83ff-73243edf9251\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"2280009d-5c26-4ebb-80d6-10ac209be8f0\",\r\n \"addressSpace\": + \ \"resourceGuid\": \"816d7cb1-bbca-4885-b13e-cfc10e46b6e9\",\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-000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n + \ \"etag\": \"W/\\\"136b24e6-f2e8-440a-83ff-73243edf9251\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": @@ -1371,9 +1371,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:32 GMT + - Thu, 16 Apr 2020 00:04:21 GMT etag: - - W/"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d" + - W/"136b24e6-f2e8-440a-83ff-73243edf9251" expires: - '-1' pragma: @@ -1390,7 +1390,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8594ee32-83ba-4f5b-946a-802fb5e6d7fe + - f0827b45-96eb-41ad-a2c1-f07066473744 status: code: 200 message: OK @@ -1417,7 +1417,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"136b24e6-f2e8-440a-83ff-73243edf9251\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1430,9 +1430,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:32 GMT + - Thu, 16 Apr 2020 00:04:21 GMT etag: - - W/"7ab9c76c-87f5-4b06-81cc-aaffd8fd164d" + - W/"136b24e6-f2e8-440a-83ff-73243edf9251" expires: - '-1' pragma: @@ -1449,7 +1449,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e7fe369b-8b29-465a-a049-b1392efd8dc2 + - ab50f233-d041-4e19-a032-be1fecd2494e status: code: 200 message: OK @@ -1482,14 +1482,14 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"8df7245b-f2ac-4c4b-937f-6428cc6a9af4\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"e49617ae-94d8-4ccf-bcf2-9e434138fdf1\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7511ff31-e56e-4381-8660-4103c26e73e1?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1497,7 +1497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:33 GMT + - Thu, 16 Apr 2020 00:04:22 GMT expires: - '-1' pragma: @@ -1514,7 +1514,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c01cd305-ea9b-419a-8a7b-c7e08cc0ca63 + - 9ea2fa09-9775-45c2-a721-8194177ca042 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1537,7 +1537,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/7511ff31-e56e-4381-8660-4103c26e73e1?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1549,7 +1549,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:36 GMT + - Thu, 16 Apr 2020 00:04:26 GMT expires: - '-1' pragma: @@ -1566,7 +1566,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d0edc882-14d1-4206-be6d-c5a425811431 + - dde746fd-48d8-4b6d-88b1-23d0b6929c74 status: code: 200 message: OK @@ -1591,7 +1591,7 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"8aa94c07-84b8-4879-8e31-55ba535a03b8\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"ab6f994a-69b0-45e0-99d5-53c1258b6dae\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -1604,9 +1604,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:37 GMT + - Thu, 16 Apr 2020 00:04:26 GMT etag: - - W/"8aa94c07-84b8-4879-8e31-55ba535a03b8" + - W/"ab6f994a-69b0-45e0-99d5-53c1258b6dae" expires: - '-1' pragma: @@ -1623,7 +1623,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - cac9c4f4-a028-4803-874a-1a1ce33380c7 + - 01db6dc4-06bd-4e72-a3f2-39c2d5ed4179 status: code: 200 message: OK @@ -1657,12 +1657,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"22a726e5-97a2-4d3a-8de2-6e1d4d3793ca\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0f42e9fc-1e00-4ddd-a17b-666cbc03d65e\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"707ce083-18b2-4a10-b448-4fa9e0e1987e\",\r\n \"privateLinkServiceConnections\": + \"73e52a93-e846-4a08-97f6-d7c798f1b6aa\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"22a726e5-97a2-4d3a-8de2-6e1d4d3793ca\\\"\",\r\n + \ \"etag\": \"W/\\\"0f42e9fc-1e00-4ddd-a17b-666cbc03d65e\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1671,13 +1671,13 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48300336-2a88-425e-8597-ee098240748e\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.a8ca0f8d-08a8-4946-92d0-30a55268cd46\"\r\n \ }\r\n ]\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1685,7 +1685,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:41 GMT + - Thu, 16 Apr 2020 00:04:29 GMT expires: - '-1' pragma: @@ -1698,7 +1698,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 354e926b-b37e-4b7c-9102-66d740071556 + - 9ceda7b8-46f4-4173-97b0-789c015d7182 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1722,7 +1722,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1734,7 +1734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:32:52 GMT + - Thu, 16 Apr 2020 00:04:40 GMT expires: - '-1' pragma: @@ -1751,7 +1751,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5a785799-8e30-4368-95f8-c3ec1e97176e + - e0aae5ae-9a66-4e58-a8a9-686bbd8134d6 status: code: 200 message: OK @@ -1773,58 +1773,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Apr 2020 21:33:02 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: - - cc28d664-f287-4a64-b3d5-11f665accb87 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network private-endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id - --group-ids - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 - azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/31de5515-7d45-4a95-9726-1be751477abe?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1836,7 +1785,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:33:12 GMT + - Thu, 16 Apr 2020 00:04:50 GMT expires: - '-1' pragma: @@ -1853,7 +1802,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b73a75ee-61ac-4c85-a115-bd37d38743fd + - d6384728-e021-42dc-98b2-8e3f8d9cfdac status: code: 200 message: OK @@ -1879,12 +1828,12 @@ interactions: response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"bc94b850-e5d3-4352-bd3d-4fda0e335083\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0df5c688-5fde-475c-9b4a-085450b82804\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"centraluseuap\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"707ce083-18b2-4a10-b448-4fa9e0e1987e\",\r\n \"privateLinkServiceConnections\": + \"73e52a93-e846-4a08-97f6-d7c798f1b6aa\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"bc94b850-e5d3-4352-bd3d-4fda0e335083\\\"\",\r\n + \ \"etag\": \"W/\\\"0df5c688-5fde-475c-9b4a-085450b82804\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002\",\r\n \ \"groupIds\": [\r\n \"Sql\"\r\n ],\r\n \"privateLinkServiceConnectionState\": @@ -1893,7 +1842,7 @@ interactions: \ \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48300336-2a88-425e-8597-ee098240748e\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.a8ca0f8d-08a8-4946-92d0-30a55268cd46\"\r\n \ }\r\n ]\r\n }\r\n}" headers: cache-control: @@ -1903,9 +1852,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 10 Apr 2020 21:33:12 GMT + - Thu, 16 Apr 2020 00:04:50 GMT etag: - - W/"bc94b850-e5d3-4352-bd3d-4fda0e335083" + - W/"0df5c688-5fde-475c-9b4a-085450b82804" expires: - '-1' pragma: @@ -1922,7 +1871,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0cf81d54-a2f5-4017-9098-45c3d7d8e4d2 + - ac677435-c8c6-4c72-bbac-ad011980c171 status: code: 200 message: OK @@ -1938,7 +1887,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --connection-id + - --id User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -1955,11 +1904,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:14 GMT + - Thu, 16 Apr 2020 00:04:51 GMT pragma: - no-cache server: @@ -1989,7 +1938,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name --connection-name -g + - --account-name --name --resource-group User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2006,11 +1955,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:15 GMT + - Thu, 16 Apr 2020 00:04:51 GMT pragma: - no-cache server: @@ -2040,7 +1989,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name -n -g + - -a -n -g User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2057,11 +2006,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:15 GMT + - Thu, 16 Apr 2020 00:04:53 GMT pragma: - no-cache server: @@ -2091,7 +2040,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name -g --connection-name --approval-description + - --account-name --resource-group --name --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2108,11 +2057,11 @@ interactions: content-length: - '774' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:16 GMT + - Thu, 16 Apr 2020 00:04:52 GMT pragma: - no-cache server: @@ -2147,7 +2096,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ParameterSetName: - - --account-name -g --connection-name --approval-description + - --account-name --resource-group --name --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2160,19 +2109,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6eea1240-9ebe-49a2-ade2-336c4344ca12?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:16 GMT + - Thu, 16 Apr 2020 00:04:53 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/6eea1240-9ebe-49a2-ade2-336c4344ca12?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2200,12 +2149,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name -g --connection-name --approval-description + - --account-name --resource-group --name --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6eea1240-9ebe-49a2-ade2-336c4344ca12?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2215,11 +2164,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a80ae5c0-6056-4b2d-8c12-03a6f463d4ce?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6eea1240-9ebe-49a2-ade2-336c4344ca12?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:47 GMT + - Thu, 16 Apr 2020 00:05:23 GMT pragma: - no-cache server: @@ -2249,7 +2198,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name -g --connection-name --approval-description + - --account-name --resource-group --name --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2265,11 +2214,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:47 GMT + - Thu, 16 Apr 2020 00:05:24 GMT pragma: - no-cache server: @@ -2299,7 +2248,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --connection-id --rejection-description + - --id --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2317,11 +2266,11 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:48 GMT + - Thu, 16 Apr 2020 00:05:24 GMT pragma: - no-cache server: @@ -2356,7 +2305,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ParameterSetName: - - --connection-id --rejection-description + - --id --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2369,19 +2318,19 @@ interactions: string: '{"status":"Enqueued"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview cache-control: - no-store, no-cache content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:33:48 GMT + - Thu, 16 Apr 2020 00:05:25 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview pragma: - no-cache server: @@ -2409,12 +2358,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - --connection-id --rejection-description + - --id --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview response: body: string: '{"status":"Dequeued"}' @@ -2424,11 +2373,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:34:19 GMT + - Thu, 16 Apr 2020 00:05:56 GMT pragma: - no-cache server: @@ -2458,12 +2407,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - --connection-id --rejection-description + - --id --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview response: body: string: '{"status":"Succeeded"}' @@ -2473,11 +2422,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4f057396-22ba-46c9-95e7-ba1f5a894b92?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/d913095a-c5f8-47ef-8b8e-8b4bd8c54777?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:34:49 GMT + - Thu, 16 Apr 2020 00:06:26 GMT pragma: - no-cache server: @@ -2507,7 +2456,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --connection-id --rejection-description + - --id --description User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 @@ -2523,11 +2472,115 @@ interactions: content-length: - '808' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peg7fmozlinljdexz52eacmqc5uypok3szj2h556g4mlzkauxa77vlnpy/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-fkclard/privateEndpointConnections/cli-pe-qj7rihasjoqitp62r?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Thu, 16 Apr 2020 00:06:26 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Enqueued"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6da1403f-61b2-4542-b2fe-30857b0f7a79?api-version=2019-08-01-preview + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_peajy3nmofbn2nkgjmmv6weh3ichluohlreoozmvmuqin5av2gqfxrp4q/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-bxu2k64/privateEndpointConnections/cli-pe-rnvaskh2mxbxwkhjp?api-version=2019-08-01-preview + content-type: + - application/json + date: + - Thu, 16 Apr 2020 00:06:27 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-pe-000002/privateEndpointConnections/cli-pe-000005/operationResults/6da1403f-61b2-4542-b2fe-30857b0f7a79?api-version=2019-08-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb private-endpoint-connection delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6da1403f-61b2-4542-b2fe-30857b0f7a79?api-version=2019-08-01-preview + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '22' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/6da1403f-61b2-4542-b2fe-30857b0f7a79?api-version=2019-08-01-preview content-type: - application/json date: - - Fri, 10 Apr 2020 21:34:49 GMT + - Thu, 16 Apr 2020 00:06:58 GMT pragma: - no-cache server: diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml index fd97c8499d4..88817b9363a 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_link_resource.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cosmosdb_plr000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001","name":"cli_test_cosmosdb_plr000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-08T02:06:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001","name":"cli_test_cosmosdb_plr000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-04-15T22:38:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 08 Apr 2020 02:06:24 GMT + - Wed, 15 Apr 2020 22:38:53 GMT expires: - '-1' pragma: @@ -80,19 +80,19 @@ interactions: US","failoverPriority":0}],"cors":[],"capabilities":[]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 cache-control: - no-store, no-cache content-length: - '1547' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrrfqcz3j5lg3x3cqeg37iglbmjidcwwlq7457ei3iiaqxd47spei3ex/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-2yneba?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:06:27 GMT + - Wed, 15 Apr 2020 22:38:56 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002/operationResults/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_plr000001/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-000002/operationResults/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 pragma: - no-cache server: @@ -129,7 +129,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -139,11 +139,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:06:57 GMT + - Wed, 15 Apr 2020 22:39:26 GMT pragma: - no-cache server: @@ -178,7 +178,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -188,11 +188,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:07:27 GMT + - Wed, 15 Apr 2020 22:39:56 GMT pragma: - no-cache server: @@ -227,7 +227,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -237,11 +237,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:07:58 GMT + - Wed, 15 Apr 2020 22:40:26 GMT pragma: - no-cache server: @@ -276,7 +276,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -286,11 +286,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:08:28 GMT + - Wed, 15 Apr 2020 22:40:56 GMT pragma: - no-cache server: @@ -325,7 +325,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -335,11 +335,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:08:58 GMT + - Wed, 15 Apr 2020 22:41:27 GMT pragma: - no-cache server: @@ -374,7 +374,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -384,11 +384,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:09:28 GMT + - Wed, 15 Apr 2020 22:41:58 GMT pragma: - no-cache server: @@ -423,7 +423,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -433,11 +433,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:09:58 GMT + - Wed, 15 Apr 2020 22:42:28 GMT pragma: - no-cache server: @@ -472,7 +472,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -482,11 +482,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:10:29 GMT + - Wed, 15 Apr 2020 22:42:59 GMT pragma: - no-cache server: @@ -521,7 +521,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -531,11 +531,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:10:59 GMT + - Wed, 15 Apr 2020 22:43:29 GMT pragma: - no-cache server: @@ -570,7 +570,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -580,11 +580,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:11:33 GMT + - Wed, 15 Apr 2020 22:43:58 GMT pragma: - no-cache server: @@ -619,7 +619,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -629,11 +629,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:12:04 GMT + - Wed, 15 Apr 2020 22:44:28 GMT pragma: - no-cache server: @@ -668,7 +668,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -678,11 +678,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:12:34 GMT + - Wed, 15 Apr 2020 22:44:59 GMT pragma: - no-cache server: @@ -717,7 +717,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -727,11 +727,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:13:03 GMT + - Wed, 15 Apr 2020 22:45:29 GMT pragma: - no-cache server: @@ -766,7 +766,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -776,11 +776,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:13:33 GMT + - Wed, 15 Apr 2020 22:45:59 GMT pragma: - no-cache server: @@ -815,7 +815,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -825,11 +825,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:14:05 GMT + - Wed, 15 Apr 2020 22:46:29 GMT pragma: - no-cache server: @@ -864,7 +864,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -874,11 +874,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:14:34 GMT + - Wed, 15 Apr 2020 22:46:59 GMT pragma: - no-cache server: @@ -913,7 +913,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Dequeued"}' @@ -923,11 +923,11 @@ interactions: content-length: - '21' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:15:04 GMT + - Wed, 15 Apr 2020 22:47:30 GMT pragma: - no-cache server: @@ -962,7 +962,105 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 15 Apr 2020 22:48:00 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 + response: + body: + string: '{"status":"Dequeued"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '21' + content-location: + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 + content-type: + - application/json + date: + - Wed, 15 Apr 2020 22:48:31 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.10.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cosmosdb create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 + azure-mgmt-cosmosdb/0.12.0 Azure-SDK-For-Python AZURECLI/2.3.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 response: body: string: '{"status":"Succeeded"}' @@ -972,11 +1070,11 @@ interactions: content-length: - '22' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f7651a3d-0c7d-4cd4-b8e1-2ea7ac6641cd?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ff47ac55-4440-4169-bc4c-d9fa3c2d143a?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:15:34 GMT + - Wed, 15 Apr 2020 22:49:02 GMT pragma: - no-cache server: @@ -1026,11 +1124,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrrfqcz3j5lg3x3cqeg37iglbmjidcwwlq7457ei3iiaqxd47spei3ex/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-2yneba?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:15:34 GMT + - Wed, 15 Apr 2020 22:49:02 GMT pragma: - no-cache server: @@ -1082,11 +1180,11 @@ interactions: content-length: - '1904' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy?api-version=2019-12-12 + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrrfqcz3j5lg3x3cqeg37iglbmjidcwwlq7457ei3iiaqxd47spei3ex/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-2yneba?api-version=2019-12-12 content-type: - application/json date: - - Wed, 08 Apr 2020 02:15:35 GMT + - Wed, 15 Apr 2020 22:49:02 GMT pragma: - no-cache server: @@ -1112,7 +1210,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cosmosdb private-link-resource show + - cosmosdb private-link-resource list Connection: - keep-alive ParameterSetName: @@ -1133,11 +1231,11 @@ interactions: content-length: - '522' content-location: - - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrtzgzl3dhgbtvpu373onagqv57wgppskk4qmksz4ps7b7m64grbp4co/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-yacdxy/privateLinkResources?api-version=2019-08-01-preview + - https://management.documents.azure.com:450/subscriptions/15d08dec-240b-4ba6-b837-442a4efe11bc/resourceGroups/cli_test_cosmosdb_plrrfqcz3j5lg3x3cqeg37iglbmjidcwwlq7457ei3iiaqxd47spei3ex/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-2yneba/privateLinkResources?api-version=2019-08-01-preview content-type: - application/json date: - - Wed, 08 Apr 2020 02:15:35 GMT + - Wed, 15 Apr 2020 22:49:03 GMT pragma: - no-cache server: From 05f14c4c88c19b1838941a7bf3cface3102743bc Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Wed, 15 Apr 2020 17:20:03 -0700 Subject: [PATCH 06/10] fix example --- .../azure/cli/command_modules/cosmosdb/_help.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py index d9f9d7f5e8b..d679a13f4c9 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py @@ -497,7 +497,7 @@ short-summary: Approve the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Approve the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection approve --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup --description "Approved" + text: az cosmosdb private-endpoint-connection approve --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup --description "Approved" """ @@ -506,7 +506,7 @@ short-summary: Delete the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Delete the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection delete --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup + text: az cosmosdb private-endpoint-connection delete --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup """ @@ -515,7 +515,7 @@ short-summary: Reject the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Reject the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection reject --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup --description "Rejected" + text: az cosmosdb private-endpoint-connection reject --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup --description "Rejected" """ @@ -524,7 +524,7 @@ short-summary: Show details of a private endpoint connection associated with Azure Comsos DB. examples: - name: Show details of a private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection show --account-name MyAccount --connection-name MyPrivateEndpoint -resource-group MyResourceGroup + text: az cosmosdb private-endpoint-connection show --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup """ helps['cosmosdb private-link-resource'] = """ @@ -532,12 +532,12 @@ short-summary: Manage Azure Comsos DB private link resources. """ -helps['cosmosdb private-link-resource show'] = """ +helps['cosmosdb private-link-resource list'] = """ type: command -short-summary: Show the private link resources supported for Azure Comsos DB. +short-summary: List the private link resources supported for Azure Comsos DB. example: - - name: Show the private link resources supported for Azure Comsos DB. - text: cosmosdb private-link-resource show --account-name MyAccount --resource-group MyResourceGroup + - name: List the private link resources supported for Azure Comsos DB. + text: cosmosdb private-link-resource list --account-name MyAccount --resource-group MyResourceGroup """ From a08310040fe945178bdc3b0aa037345a38cca703 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Thu, 16 Apr 2020 13:23:29 -0700 Subject: [PATCH 07/10] fix CI --- src/azure-cli/HISTORY.rst | 4 +--- .../cli/command_modules/cosmosdb/_help.py | 8 +++---- .../cli/command_modules/cosmosdb/_params.py | 2 +- .../tests/latest/test_cosmosdb_commands.py | 21 +++++++++++-------- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 900956b0fbb..c038f80b351 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -73,9 +73,7 @@ Release History **Cosmos DB** -* Fix missing --type option for deprecation redirections -* Support az cosmosdb private-endpoint-connection show/delete/approve/reject -* Support az cosmosdb private-link-resource show +* Support az cosmosdb private-link-resource and private-endpoint-connection **Docker** diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py index d679a13f4c9..6bbde2a6310 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py @@ -497,7 +497,7 @@ short-summary: Approve the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Approve the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection approve --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup --description "Approved" + text: az cosmosdb private-endpoint-connection approve --account-name MyAccount --name MyPrivateEndpoint --resource-group MyResourceGroup --description "Approved" """ @@ -506,7 +506,7 @@ short-summary: Delete the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Delete the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection delete --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup + text: az cosmosdb private-endpoint-connection delete --account-name MyAccount --name MyPrivateEndpoint --resource-group MyResourceGroup """ @@ -515,7 +515,7 @@ short-summary: Reject the specified private endpoint connection associated with Azure Comsos DB. examples: - name: Reject the specified private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection reject --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup --description "Rejected" + text: az cosmosdb private-endpoint-connection reject --account-name MyAccount --name MyPrivateEndpoint --resource-group MyResourceGroup --description "Rejected" """ @@ -524,7 +524,7 @@ short-summary: Show details of a private endpoint connection associated with Azure Comsos DB. examples: - name: Show details of a private endpoint connection associated with Azure Comsos DB. - text: az cosmosdb private-endpoint-connection show --account-name MyAccount --connection-name MyPrivateEndpoint --resource-group MyResourceGroup + text: az cosmosdb private-endpoint-connection show --account-name MyAccount --name MyPrivateEndpoint --resource-group MyResourceGroup """ helps['cosmosdb private-link-resource'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py index 3f43febe04a..95dd9d084f4 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py @@ -119,7 +119,7 @@ def load_arguments(self, _): c.argument('description', options_list=['--description'], required=False, help='Comments for the {} operation.'.format(item)) with self.argument_context('cosmosdb private-link-resource') as c: - c.argument('account_name', account_name_type, required=True, help="Cosmosdb account name") + c.argument('account_name', account_name_type, required=True, help="Cosmosdb account name", id_part=None) # SQL database with self.argument_context('cosmosdb sql database') as c: diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py index 9ce2f001237..ad9d7c28cbf 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py @@ -310,8 +310,8 @@ def test_cosmosdb_private_link_resource(self, resource_group): self.cmd('az cosmosdb create -n {acc} -g {rg}') - plr = self.cmd('cosmosdb private-link-resource show --account-name {acc} --resource-group {rg}').get_output_in_json() - assert plr[0]['groupId'] == "Sql" + self.cmd('cosmosdb private-link-resource list --account-name {acc} --resource-group {rg}', + checks=[self.check('length(@)', 1), self.check('[0].groupId', 'Sql')]) @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_pe') def test_cosmosdb_private_endpoint(self, resource_group): @@ -343,11 +343,11 @@ def test_cosmosdb_private_endpoint(self, resource_group): # Show the connection at cosmos db side results = self.kwargs['pe_id'].split('/') self.kwargs['pec_id'] = '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.DocumentDB/databaseAccounts/{2}/privateEndpointConnections/{3}'.format(results[2], results[4], self.kwargs['acc'], results[-1]) - self.cmd('cosmosdb private-endpoint-connection show --connection-id {pec_id}', + self.cmd('cosmosdb private-endpoint-connection show --id {pec_id}', checks=self.check('id', '{pec_id}')) - self.cmd('cosmosdb private-endpoint-connection show --account-name {acc} --connection-name {pe_name} -g {rg}', + self.cmd('cosmosdb private-endpoint-connection show --account-name {acc} --name {pe_name} --resource-group {rg}', checks=self.check('name', '{pe_name}')) - self.cmd('cosmosdb private-endpoint-connection show --account-name {acc} -n {pe_name} -g {rg}', + self.cmd('cosmosdb private-endpoint-connection show -a {acc} -n {pe_name} -g {rg}', checks=self.check('name', '{pe_name}')) # Test approval/rejection @@ -355,17 +355,20 @@ def test_cosmosdb_private_endpoint(self, resource_group): 'approval_desc': 'You are approved!', 'rejection_desc': 'You are rejected!' }) - self.cmd('cosmosdb private-endpoint-connection approve --account-name {acc} -g {rg} --connection-name {pe_name} ' - '--approval-description "{approval_desc}"', checks=[ + self.cmd('cosmosdb private-endpoint-connection approve --account-name {acc} --resource-group {rg} --name {pe_name} ' + '--description "{approval_desc}"', checks=[ self.check('privateLinkServiceConnectionState.status', 'Approved'), self.check('privateLinkServiceConnectionState.description', '{approval_desc}') ]) - self.cmd('cosmosdb private-endpoint-connection reject --connection-id {pec_id} ' - '--rejection-description "{rejection_desc}"', checks=[ + self.cmd('cosmosdb private-endpoint-connection reject --id {pec_id} ' + '--description "{rejection_desc}"', checks=[ self.check('privateLinkServiceConnectionState.status', 'Rejected'), self.check('privateLinkServiceConnectionState.description', '{rejection_desc}') ]) + # Test delete + self.cmd('cosmosdb private-endpoint-connection delete --id {pec_id}') + @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_database') def test_cosmosdb_database(self, resource_group): From 687ccdcbfed70769f9df030275a46f1131f17b75 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Thu, 16 Apr 2020 13:55:21 -0700 Subject: [PATCH 08/10] fix ci --- .../test_cosmosdb_private_endpoint.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml index 5b328f0953b..b110a6410da 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/recordings/test_cosmosdb_private_endpoint.yaml @@ -1227,7 +1227,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n @@ -1250,7 +1250,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2020-03-01 cache-control: - no-cache content-length: @@ -1294,7 +1294,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/29be1171-29cc-4078-9777-9408feef7348?api-version=2020-03-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1344,7 +1344,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n @@ -1413,7 +1413,7 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n @@ -1478,7 +1478,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n @@ -1489,7 +1489,7 @@ interactions: \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2020-03-01 cache-control: - no-cache content-length: @@ -1537,7 +1537,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/75e20fb5-6606-4213-9421-0dbb86720c3b?api-version=2020-03-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1587,7 +1587,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n @@ -1653,7 +1653,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n @@ -1677,7 +1677,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2020-03-01 cache-control: - no-cache content-length: @@ -1722,7 +1722,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2020-03-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -1773,7 +1773,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/centraluseuap/operations/90bdbad2-0185-40f2-8f96-3e92b1a71208?api-version=2020-03-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1824,7 +1824,7 @@ interactions: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-network/10.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2020-03-01 response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cosmosdb_pe000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n From e0f562bdc9cff7fe4e709c2edfd2f4d16b4a91bc Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Thu, 16 Apr 2020 14:07:45 -0700 Subject: [PATCH 09/10] fix typo --- src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py index 95dd9d084f4..42917b97ed8 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py @@ -115,7 +115,7 @@ def load_arguments(self, _): with self.argument_context('cosmosdb private-endpoint-connection {}'.format(item)) as c: c.extra('connection_id', options_list=['--id'], required=False, help='The ID of the private endpoint connection associated with Azure Cosmos DB. ' - 'If specified --account-name --resource-group/-g and --connection-name/-n, this should be omitted.') + 'If specified --account-name --resource-group/-g and --name/-n, this should be omitted.') c.argument('description', options_list=['--description'], required=False, help='Comments for the {} operation.'.format(item)) with self.argument_context('cosmosdb private-link-resource') as c: From 1294590b4e3a8350d3f71c6b7af5cfb5c78032b3 Mon Sep 17 00:00:00 2001 From: Soyoung Eom Date: Thu, 16 Apr 2020 18:48:07 -0700 Subject: [PATCH 10/10] revert history --- src/azure-cli/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index c038f80b351..331af355e10 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -73,7 +73,7 @@ Release History **Cosmos DB** -* Support az cosmosdb private-link-resource and private-endpoint-connection +* Fix missing --type option for deprecation redirections **Docker**