From 69d6e0b85855c9f490b3c6d2277d07fa8b22ee91 Mon Sep 17 00:00:00 2001 From: emgu-ms <32528205+emgu-ms@users.noreply.github.com> Date: Wed, 21 Feb 2018 10:26:23 -0800 Subject: [PATCH] Added zone redundant parameter to CLI commands (#5560) * Add support for zone redundancy for databases and elastic pools --- src/command_modules/azure-cli-sql/HISTORY.rst | 3 + .../azure/cli/command_modules/sql/_help.py | 20 + .../azure/cli/command_modules/sql/_params.py | 16 +- .../azure/cli/command_modules/sql/custom.py | 11 +- .../latest/recordings/test_sql_db_mgmt.yaml | 483 +++-- .../test_sql_elastic_pools_mgmt.yaml | 820 +++++---- .../test_sql_zone_resilient_database.yaml | 1598 +++++++++++++++++ .../test_sql_zone_resilient_pool.yaml | 1404 +++++++++++++++ .../sql/tests/latest/test_sql_commands.py | 227 ++- src/command_modules/azure-cli-sql/setup.py | 2 +- 10 files changed, 4008 insertions(+), 576 deletions(-) create mode 100644 src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_database.yaml create mode 100644 src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_pool.yaml diff --git a/src/command_modules/azure-cli-sql/HISTORY.rst b/src/command_modules/azure-cli-sql/HISTORY.rst index 91c6032ceaa..e0ae6121c01 100644 --- a/src/command_modules/azure-cli-sql/HISTORY.rst +++ b/src/command_modules/azure-cli-sql/HISTORY.rst @@ -2,6 +2,9 @@ Release History =============== +2.0.22 +++++++ +* Added zone redundancy support for databases and elastic pools on creation and update. 2.0.21 ++++++ diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_help.py b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_help.py index 6dc886dca08..6c6f0b86fcc 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_help.py +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_help.py @@ -21,6 +21,11 @@ helps['sql db create'] = """ type: command short-summary: Create a database. + examples: + - name: Create database with zone redundancy enabled + text: az sql db create -g mygroup -s myserver -n mydb -z + - name: Create database with zone redundancy explicitly disabled + text: az sql db create -g mygroup -s myserver -n mydb -z false """ helps['sql db delete'] = """ type: command @@ -60,6 +65,11 @@ helps['sql db update'] = """ type: command short-summary: Update a database. + examples: + - name: Update database with zone redundancy enabled + text: az sql db update -g mygroup -s myserver -n mypool -z + - name: Update database with zone redundancy explicitly disabled + text: az sql db update -g mygroup -s myserver -n mypool -z false """ helps['sql db audit-policy'] = """ type: group @@ -245,6 +255,11 @@ helps['sql elastic-pool create'] = """ type: command short-summary: Create an elastic pool. + examples: + - name: Create elastic pool with zone redundancy enabled + text: az sql elastic-pool create -g mygroup -s myserver -n mypool -z + - name: Create elastic pool with zone redundancy explicitly disabled + text: az sql elastic-pool create -g mygroup -s myserver -n mypool -z false """ helps['sql elastic-pool list-editions'] = """ type: command @@ -266,6 +281,11 @@ helps['sql elastic-pool update'] = """ type: command short-summary: Update an elastic pool. + examples: + - name: Update elastic pool with zone redundancy enabled + text: az sql elastic-pool update -g mygroup -s myserver -n mypool -z + - name: Update elastic pool with zone redundancy explicitly disabled + text: az sql elastic-pool update -g mygroup -s myserver -n mypool -z false """ helps['sql server'] = """ type: group diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_params.py b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_params.py index 897a290e7d1..2c2412ce3b5 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_params.py +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/_params.py @@ -115,9 +115,6 @@ def _configure_db_create_params( create_mode: Valid CreateMode enum value (e.g. `default`, `copy`, etc) """ - # This line to be removed when zone redundancy is fully supported in production. - arg_ctx.ignore('zone_redundant') - # DW does not support all create modes. Check that engine and create_mode are consistent. if engine == Engine.dw and create_mode not in [ CreateMode.default, @@ -204,6 +201,11 @@ def load_arguments(self, _): options_list=['--edition'], help='The edition of the database.') + c.argument('zone_redundant', + options_list=['--zone-redundant', '-z'], + help='Specifies whether to enable zone redundancy for the database.', + arg_type=get_three_state_flag()) + with self.argument_context('sql db create') as c: _configure_db_create_params(c, Engine.db, CreateMode.default) @@ -529,9 +531,6 @@ def _configure_security_policy_storage_params(arg_ctx): # sql elastic-pool # ############################################### with self.argument_context('sql elastic-pool') as c: - # This line to be removed when zone redundancy is fully supported in production. - c.ignore('zone_redundant') - c.argument('server_name', arg_type=server_param_type, # Allow --ids command line argument. id_part=name is 1st name in uri @@ -560,6 +559,11 @@ def _configure_security_policy_storage_params(arg_ctx): help='The max storage size of the elastic pool. If no unit is specified, defaults' ' to megabytes (MB).') + c.argument('zone_redundant', + options_list=['--zone-redundant', '-z'], + help='Specifies whether to enable zone redundancy for the elastic pool.', + arg_type=get_three_state_flag()) + with self.argument_context('sql elastic-pool create') as c: c.expand('parameters', ElasticPool) # We have a wrapper function that determines server location so user doesn't need to specify diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/custom.py b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/custom.py index 574aca15693..705a5df2038 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/custom.py +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/custom.py @@ -52,11 +52,11 @@ def _get_server_location(cli_ctx, server_name, resource_group_name): _DEFAULT_SERVER_VERSION = "12.0" - ############################################### # sql db # ############################################### + # pylint: disable=too-few-public-methods class ClientType(Enum): ado_net = 'ado.net' @@ -588,7 +588,8 @@ def db_update( instance, elastic_pool_name=None, max_size_bytes=None, - requested_service_objective_name=None): + requested_service_objective_name=None, + zone_redundant=None): # Verify edition if instance.edition.lower() == DatabaseEdition.data_warehouse.value.lower(): @@ -629,6 +630,8 @@ def db_update( # Set other properties instance.max_size_bytes = max_size_bytes or instance.max_size_bytes + instance.zone_redundant = zone_redundant + return instance @@ -933,13 +936,15 @@ def elastic_pool_update( database_dtu_max=None, database_dtu_min=None, dtu=None, - storage_mb=None): + storage_mb=None, + zone_redundant=None): # Apply params to instance instance.database_dtu_max = database_dtu_max or instance.database_dtu_max instance.database_dtu_min = database_dtu_min or instance.database_dtu_min instance.dtu = dtu or instance.dtu instance.storage_mb = storage_mb or instance.storage_mb + instance.zone_redundant = zone_redundant return instance diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_db_mgmt.yaml b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_db_mgmt.yaml index cc882419cc9..fcb80438e66 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_db_mgmt.yaml +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_db_mgmt.yaml @@ -1,56 +1,57 @@ interactions: - request: - body: '{"tags": {"use": "az-test"}, "location": "westus"}' + body: '{"tags": {"use": "az-test"}, "location": "eastus2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [group create] Connection: [keep-alive] - Content-Length: ['50'] + Content-Length: ['51'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['328'] + content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:10 GMT'] + date: ['Tue, 20 Feb 2018 19:24:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"location": "westus", "properties": {"administratorLoginPassword": "SecretPassword123", - "administratorLogin": "admin123"}}' + body: '{"properties": {"administratorLoginPassword": "SecretPassword123", "administratorLogin": + "admin123"}, "location": "eastus2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql server create] Connection: [keep-alive] - Content-Length: ['123'] + Content-Length: ['124'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-02-20T19:24:04.497Z"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview'] cache-control: [no-cache] content-length: ['74'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:13 GMT'] + date: ['Tue, 20 Feb 2018 19:24:05 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverOperationResults/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverOperationResults/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -64,18 +65,47 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview + response: + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"InProgress","startTime":"2018-02-20T19:24:04.497Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:24:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview response: - body: {string: '{"name":"f3ab7337-1226-4673-984a-144c9fa5f192","status":"InProgress","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"InProgress","startTime":"2018-02-20T19:24:04.497Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:14 GMT'] + date: ['Tue, 20 Feb 2018 19:24:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -91,18 +121,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview response: - body: {string: '{"name":"f3ab7337-1226-4673-984a-144c9fa5f192","status":"InProgress","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"InProgress","startTime":"2018-02-20T19:24:04.497Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:15 GMT'] + date: ['Tue, 20 Feb 2018 19:24:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -118,18 +149,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview response: - body: {string: '{"name":"f3ab7337-1226-4673-984a-144c9fa5f192","status":"InProgress","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"InProgress","startTime":"2018-02-20T19:24:04.497Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:16 GMT'] + date: ['Tue, 20 Feb 2018 19:24:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -145,18 +177,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview response: - body: {string: '{"name":"f3ab7337-1226-4673-984a-144c9fa5f192","status":"InProgress","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"InProgress","startTime":"2018-02-20T19:24:04.497Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:37 GMT'] + date: ['Tue, 20 Feb 2018 19:24:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -172,18 +205,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/f3ab7337-1226-4673-984a-144c9fa5f192?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/07545e55-6dd8-43aa-a9fb-b37883e9df4b?api-version=2015-05-01-preview response: - body: {string: '{"name":"f3ab7337-1226-4673-984a-144c9fa5f192","status":"Succeeded","startTime":"2018-01-21T16:28:13.283Z"}'} + body: {string: '{"name":"07545e55-6dd8-43aa-a9fb-b37883e9df4b","status":"Succeeded","startTime":"2018-02-20T19:24:04.497Z"}'} headers: cache-control: [no-cache] content-length: ['107'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:57 GMT'] + date: ['Tue, 20 Feb 2018 19:24:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -199,18 +233,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['580'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:28:58 GMT'] + date: ['Tue, 20 Feb 2018 19:24:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -226,18 +261,19 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['580'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:29:00 GMT'] + date: ['Tue, 20 Feb 2018 19:24:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -246,29 +282,30 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: '{"location": "westus"}' + body: '{"location": "eastus2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db create] Connection: [keep-alive] - Content-Length: ['22'] + Content-Length: ['23'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1516552142021+0000)\/"}'} + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519154695858+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['80'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:29:02 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:24:55 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -283,20 +320,21 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"4b26f831-8709-451d-9e39-c8cc8f947911","status":"InProgress","error":null}'} + body: {string: '{"operationId":"fe7aeb55-1607-4ed5-87c2-5a7c163e74a5","status":"InProgress","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['89'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:29:32 GMT'] + date: ['Tue, 20 Feb 2018 19:25:27 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -311,20 +349,21 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"4b26f831-8709-451d-9e39-c8cc8f947911","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"fe7aeb55-1607-4ed5-87c2-5a7c163e74a5","status":"Succeeded","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/4b26f831-8709-451d-9e39-c8cc8f947911?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/fe7aeb55-1607-4ed5-87c2-5a7c163e74a5?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:02 GMT'] + date: ['Tue, 20 Feb 2018 19:25:57 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -339,21 +378,22 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1048'] + content-length: ['1055'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:03 GMT'] + date: ['Tue, 20 Feb 2018 19:25:56 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -368,23 +408,24 @@ interactions: CommandName: [sql db list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases?api-version=2014-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/master","name":"master","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,system","properties":{"databaseId":"5eae6745-6bf5-4109-ab74-ed796ccabc31","edition":"System","status":"Online","serviceLevelObjective":"System2","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"32212254720","creationDate":"2018-01-21T16:28:15.033Z","currentServiceObjectiveId":"620323bf-2879-4807-b30d-c2e6d7b3b3aa","requestedServiceObjectiveId":"620323bf-2879-4807-b30d-c2e6d7b3b3aa","requestedServiceObjectiveName":"System2","sampleName":null,"defaultSecondaryLocation":"East + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/master","name":"master","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,system","properties":{"databaseId":"7cdd372b-56d4-43fa-bb05-21b875b4c84a","edition":"System","status":"Online","serviceLevelObjective":"System2","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"32212254720","creationDate":"2018-02-20T19:24:05.95Z","currentServiceObjectiveId":"620323bf-2879-4807-b30d-c2e6d7b3b3aa","requestedServiceObjectiveId":"620323bf-2879-4807-b30d-c2e6d7b3b3aa","requestedServiceObjectiveName":"System2","sampleName":null,"defaultSecondaryLocation":"Central US","earliestRestoreDate":null,"elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}]}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['2076'] + content-length: ['2087'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:05 GMT'] + date: ['Tue, 20 Feb 2018 19:25:59 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -399,8 +440,9 @@ interactions: CommandName: [sql db list-usages] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/usages?api-version=2014-04-01 @@ -412,7 +454,7 @@ interactions: content-length: ['185'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:07 GMT'] + date: ['Tue, 20 Feb 2018 19:25:59 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -427,21 +469,22 @@ interactions: CommandName: [sql db show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1048'] + content-length: ['1055'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:07 GMT'] + date: ['Tue, 20 Feb 2018 19:26:00 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -456,21 +499,22 @@ interactions: CommandName: [sql db show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1048'] + content-length: ['1055'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:08 GMT'] + date: ['Tue, 20 Feb 2018 19:26:00 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -485,21 +529,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S0","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveId":"f1173c43-91bd-4aaa-973c-54e79e15235b","requestedServiceObjectiveName":"S0","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1048'] + content-length: ['1055'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:10 GMT'] + date: ['Tue, 20 Feb 2018 19:26:01 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -507,36 +552,37 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"tags": {"key1": "value1"}, "location": "West US", "properties": {"maxSizeBytes": - "10737418240", "zoneRedundant": false, "collation": "SQL_Latin1_General_CP1_CI_AS", - "readScale": "Disabled", "requestedServiceObjectiveName": "S1"}}' + body: '{"tags": {"key1": "value1"}, "properties": {"collation": "SQL_Latin1_General_CP1_CI_AS", + "readScale": "Disabled", "maxSizeBytes": "10737418240", "requestedServiceObjectiveName": + "S1"}, "location": "East US 2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db update] Connection: [keep-alive] - Content-Length: ['231'] + Content-Length: ['209'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1516552212587+0000)\/"}'} + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519154762138+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/5f0bc1af-3306-4549-9c69-165a673e66fc?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['81'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:13 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/5f0bc1af-3306-4549-9c69-165a673e66fc?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:26:02 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -546,20 +592,50 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/5f0bc1af-3306-4549-9c69-165a673e66fc?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"5f0bc1af-3306-4549-9c69-165a673e66fc","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8","status":"InProgress","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/5f0bc1af-3306-4549-9c69-165a673e66fc?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:26:32 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/9b5951aa-c9dd-4bd4-bd75-7b05fb5ed1c8?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:43 GMT'] + date: ['Tue, 20 Feb 2018 19:27:09 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -574,21 +650,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1072'] + content-length: ['1079'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:43 GMT'] + date: ['Tue, 20 Feb 2018 19:27:03 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -603,21 +680,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1072'] + content-length: ['1079'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:30:45 GMT'] + date: ['Tue, 20 Feb 2018 19:27:04 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -625,31 +703,32 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"tags": {"key2": "value2", "key1": "value1"}, "location": "West US", "properties": - {"maxSizeBytes": "10737418240", "zoneRedundant": false, "collation": "SQL_Latin1_General_CP1_CI_AS", - "readScale": "Disabled"}}' + body: '{"tags": {"key1": "value1", "key2": "value2"}, "properties": {"collation": + "SQL_Latin1_General_CP1_CI_AS", "readScale": "Disabled", "maxSizeBytes": "10737418240"}, + "location": "East US 2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db update] Connection: [keep-alive] - Content-Length: ['210'] + Content-Length: ['188'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1516552270399+0000)\/"}'} + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519154825449+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6fb3226c-1283-42b8-9ccd-6713b0471699?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6c54af5e-e367-472b-a317-86ce6862252c?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['81'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:31:08 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/6fb3226c-1283-42b8-9ccd-6713b0471699?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:27:06 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/operationResults/6c54af5e-e367-472b-a317-86ce6862252c?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -664,20 +743,21 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6fb3226c-1283-42b8-9ccd-6713b0471699?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6c54af5e-e367-472b-a317-86ce6862252c?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"6fb3226c-1283-42b8-9ccd-6713b0471699","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"6c54af5e-e367-472b-a317-86ce6862252c","status":"Succeeded","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6fb3226c-1283-42b8-9ccd-6713b0471699?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/azureAsyncOperation/6c54af5e-e367-472b-a317-86ce6862252c?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:31:39 GMT'] + date: ['Tue, 20 Feb 2018 19:27:37 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -692,21 +772,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01?api-version=2014-04-01 response: - body: {string: '{"tags":{"key2":"value2","key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"tags":{"key1":"value1","key2":"value2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01","name":"cliautomationdb01","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1088'] + content-length: ['1095'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:31:39 GMT'] + date: ['Tue, 20 Feb 2018 19:27:37 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -722,8 +803,9 @@ interactions: Connection: [keep-alive] Content-Length: ['276'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb01/move?api-version=2017-03-01-preview @@ -732,7 +814,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Sun, 21 Jan 2018 16:31:51 GMT'] + date: ['Tue, 20 Feb 2018 19:27:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -747,21 +829,22 @@ interactions: CommandName: [sql db rename] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"tags":{"key2":"value2","key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"tags":{"key1":"value1","key2":"value2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1088'] + content-length: ['1095'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:31:51 GMT'] + date: ['Tue, 20 Feb 2018 19:27:52 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -777,8 +860,9 @@ interactions: Connection: [keep-alive] Content-Length: ['276'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/move?api-version=2017-03-01-preview @@ -787,7 +871,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Sun, 21 Jan 2018 16:31:59 GMT'] + date: ['Tue, 20 Feb 2018 19:28:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -802,21 +886,22 @@ interactions: CommandName: [sql db rename] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb03?api-version=2014-04-01 response: - body: {string: '{"tags":{"key2":"value2","key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb03","name":"cliautomationdb03","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"0309dced-0912-4799-a44f-0cefab0f64da","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-01-21T16:29:02.27Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T16:59:37.28Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"tags":{"key1":"value1","key2":"value2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb03","name":"cliautomationdb03","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"354d22b9-87f1-4cf7-adbb-da8c3ee0b04d","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"10737418240","creationDate":"2018-02-20T19:24:56.047Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:55:41.407Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1088'] + content-length: ['1095'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:31:59 GMT'] + date: ['Tue, 20 Feb 2018 19:28:03 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -832,8 +917,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb03?api-version=2014-04-01 @@ -844,11 +930,11 @@ interactions: content-length: ['0'] content-type: [application/xml; charset=utf-8] dataserviceversion: [1.0;] - date: ['Sun, 21 Jan 2018 16:32:03 GMT'] + date: ['Tue, 20 Feb 2018 19:28:07 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -859,8 +945,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb03?api-version=2014-04-01 @@ -868,7 +955,7 @@ interactions: body: {string: ''} headers: cache-control: [no-cache] - date: ['Sun, 21 Jan 2018 16:32:04 GMT'] + date: ['Tue, 20 Feb 2018 19:28:08 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -883,9 +970,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 @@ -894,9 +981,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Sun, 21 Jan 2018 16:32:06 GMT'] + date: ['Tue, 20 Feb 2018 19:28:09 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdJTkVLQjdYNEM3UERYU09JNzNQWFRNTDRXRzJFMzZaUFNQT3w2QjdERjQ1NzgyMDUyOTg4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdFS0g1SllFWEFKRkQ3UjNBRlE2U082VEtIM1FTVkczT0VKM3w3M0E2OUU3MDVEMEVCOUZELUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1199'] diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_elastic_pools_mgmt.yaml b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_elastic_pools_mgmt.yaml index 055fd811621..8b26b19df87 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_elastic_pools_mgmt.yaml +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_elastic_pools_mgmt.yaml @@ -1,60 +1,61 @@ interactions: - request: - body: '{"tags": {"use": "az-test"}, "location": "westus"}' + body: '{"location": "eastus2", "tags": {"use": "az-test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [group create] Connection: [keep-alive] - Content-Length: ['50'] + Content-Length: ['51'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['328'] + content-length: ['329'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:42 GMT'] + date: ['Tue, 20 Feb 2018 19:31:16 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"properties": {"administratorLogin": "admin123", "administratorLoginPassword": - "SecretPassword123"}, "location": "westus"}' + body: '{"location": "eastus2", "properties": {"administratorLogin": "admin123", + "administratorLoginPassword": "SecretPassword123"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql server create] Connection: [keep-alive] - Content-Length: ['123'] + Content-Length: ['124'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-02-20T19:31:17.877Z"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview'] cache-control: [no-cache] content-length: ['74'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:43 GMT'] + date: ['Tue, 20 Feb 2018 19:31:17 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverOperationResults/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverOperationResults/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -64,18 +65,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"InProgress","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"name":"64c541ad-67e7-4cc8-bcb1-8173d9af34f9","status":"InProgress","startTime":"2018-02-20T19:31:17.877Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:45 GMT'] + date: ['Tue, 20 Feb 2018 19:31:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -91,18 +93,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"InProgress","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"name":"64c541ad-67e7-4cc8-bcb1-8173d9af34f9","status":"InProgress","startTime":"2018-02-20T19:31:17.877Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:46 GMT'] + date: ['Tue, 20 Feb 2018 19:31:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -118,18 +121,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"InProgress","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"name":"64c541ad-67e7-4cc8-bcb1-8173d9af34f9","status":"InProgress","startTime":"2018-02-20T19:31:17.877Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:47 GMT'] + date: ['Tue, 20 Feb 2018 19:31:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -145,18 +149,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"InProgress","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"name":"64c541ad-67e7-4cc8-bcb1-8173d9af34f9","status":"InProgress","startTime":"2018-02-20T19:31:17.877Z"}'} headers: cache-control: [no-cache] content-length: ['108'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:53:49 GMT'] + date: ['Tue, 20 Feb 2018 19:31:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -172,18 +177,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/64c541ad-67e7-4cc8-bcb1-8173d9af34f9?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"InProgress","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"name":"64c541ad-67e7-4cc8-bcb1-8173d9af34f9","status":"Succeeded","startTime":"2018-02-20T19:31:17.877Z"}'} headers: cache-control: [no-cache] - content-length: ['108'] + content-length: ['107'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:54:09 GMT'] + date: ['Tue, 20 Feb 2018 19:32:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -199,18 +205,19 @@ interactions: CommandName: [sql server create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/westus/serverAzureAsyncOperation/db3eabe5-54b4-4dfd-b722-f64992cee919?api-version=2015-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"name":"db3eabe5-54b4-4dfd-b722-f64992cee919","status":"Succeeded","startTime":"2018-01-21T16:53:44.763Z"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['107'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:54:29 GMT'] + date: ['Tue, 20 Feb 2018 19:32:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -223,21 +230,22 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sql server create] + CommandName: [sql elastic-pool create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['580'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:54:30 GMT'] + date: ['Tue, 20 Feb 2018 19:32:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -246,61 +254,62 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: null + body: '{"location": "eastus2", "properties": {"storageMB": 1228800, "databaseDtuMax": + 50, "dtu": 1200, "edition": "Standard", "databaseDtuMin": 10}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool create] Connection: [keep-alive] + Content-Length: ['141'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519155128671+0000)\/"}'} headers: - cache-control: [no-cache] - content-length: ['580'] - content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:54:31 GMT'] - expires: ['-1'] - pragma: [no-cache] + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:32:09 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/8674409c-d141-4246-898d-51f4bcab6cae?api-version=2014-04-01-Preview'] + preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} - request: - body: '{"properties": {"databaseDtuMax": 50, "dtu": 1200, "edition": "Standard", - "storageMB": 1228800, "databaseDtuMin": 10}, "location": "westus"}' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool create] Connection: [keep-alive] - Content-Length: ['140'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/8674409c-d141-4246-898d-51f4bcab6cae?api-version=2014-04-01-Preview response: - body: {string: '{"operation":"CREATE","startTime":"\/Date(1516553673787+0000)\/"}'} + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519155128657)\/"}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['65'] - content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + content-length: ['60'] + content-type: [application/json] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:54:32 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/e8fcccfc-3a2d-4147-8b73-4d10319a5575?api-version=2014-04-01-Preview'] - preference-applied: [return-content] + date: ['Tue, 20 Feb 2018 19:32:39 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/8674409c-d141-4246-898d-51f4bcab6cae?api-version=2014-04-01-Preview'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -310,20 +319,21 @@ interactions: CommandName: [sql elastic-pool create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/e8fcccfc-3a2d-4147-8b73-4d10319a5575?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/8674409c-d141-4246-898d-51f4bcab6cae?api-version=2014-04-01-Preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['572'] + content-length: ['574'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:02 GMT'] + date: ['Tue, 20 Feb 2018 19:33:10 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -336,20 +346,21 @@ interactions: CommandName: [sql elastic-pool show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['573'] + content-length: ['575'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:03 GMT'] + date: ['Tue, 20 Feb 2018 19:33:10 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -364,20 +375,21 @@ interactions: CommandName: [sql elastic-pool show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['573'] + content-length: ['575'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:04 GMT'] + date: ['Tue, 20 Feb 2018 19:33:11 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -392,20 +404,21 @@ interactions: CommandName: [sql elastic-pool list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools?api-version=2014-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}]}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['585'] + content-length: ['587'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:05 GMT'] + date: ['Tue, 20 Feb 2018 19:33:12 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -420,20 +433,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['573'] + content-length: ['575'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:05 GMT'] + date: ['Tue, 20 Feb 2018 19:33:12 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -441,30 +455,31 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"dtu": 50, "storageMB": 51200, "databaseDtuMax": 50, "zoneRedundant": - false, "edition": "Standard", "databaseDtuMin": 10}, "tags": {"key1": "value1"}, - "location": "West US"}' + body: '{"location": "East US 2", "tags": {"key1": "value1"}, "properties": {"storageMB": + 51200, "databaseDtuMax": 50, "dtu": 50, "edition": "Standard", "databaseDtuMin": + 10}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool update] Connection: [keep-alive] - Content-Length: ['189'] + Content-Length: ['167'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"operation":"UPDATE","startTime":"\/Date(1516553704554+0000)\/"}'} + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519155193192+0000)\/"}'} headers: cache-control: ['no-store, no-cache'] content-length: ['65'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:05 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/fccadfc7-d8ed-44bf-ab2c-5c0a4558a1b7?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:33:13 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/ced45da8-a279-41f4-b33a-ccfc2153a7a0?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -479,20 +494,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/fccadfc7-d8ed-44bf-ab2c-5c0a4558a1b7?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/ced45da8-a279-41f4-b33a-ccfc2153a7a0?api-version=2014-04-01-Preview response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":50,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":51200,"zoneRedundant":null}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":50,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":51200,"zoneRedundant":null}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['593'] + content-length: ['595'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:36 GMT'] + date: ['Tue, 20 Feb 2018 19:33:45 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -507,20 +523,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":50,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":51200,"zoneRedundant":false}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":50,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":51200,"zoneRedundant":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['594'] + content-length: ['596'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:37 GMT'] + date: ['Tue, 20 Feb 2018 19:33:44 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -528,35 +545,36 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"dtu": 1200, "storageMB": 1228800, "databaseDtuMax": 50, - "zoneRedundant": false, "edition": "Standard", "databaseDtuMin": 10}, "tags": - {"key1": "value1"}, "location": "West US"}' + body: '{"location": "East US 2", "tags": {"key1": "value1"}, "properties": {"storageMB": + 1228800, "databaseDtuMax": 50, "dtu": 1200, "edition": "Standard", "databaseDtuMin": + 10}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool update] Connection: [keep-alive] - Content-Length: ['193'] + Content-Length: ['171'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"operation":"UPDATE","startTime":"\/Date(1516553739033+0000)\/"}'} + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519155228734+0000)\/"}'} headers: cache-control: ['no-store, no-cache'] content-length: ['65'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:55:37 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/5ffe83e2-afe5-4b90-ba76-8c5792382386?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:33:46 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/4f916734-9e4a-4c86-ae81-dc9283b777d9?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -566,20 +584,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/5ffe83e2-afe5-4b90-ba76-8c5792382386?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/4f916734-9e4a-4c86-ae81-dc9283b777d9?api-version=2014-04-01-Preview response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['597'] + content-length: ['599'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:56:08 GMT'] + date: ['Tue, 20 Feb 2018 19:34:16 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -594,20 +613,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} + body: {string: '{"tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['598'] + content-length: ['600'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:56:09 GMT'] + date: ['Tue, 20 Feb 2018 19:34:23 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -615,35 +635,36 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"dtu": 1200, "storageMB": 1228800, "databaseDtuMax": 50, - "zoneRedundant": false, "edition": "Standard", "databaseDtuMin": 10}, "tags": - {}, "location": "West US"}' + body: '{"location": "East US 2", "tags": {}, "properties": {"storageMB": 1228800, + "databaseDtuMax": 50, "dtu": 1200, "edition": "Standard", "databaseDtuMin": + 10}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool update] Connection: [keep-alive] - Content-Length: ['177'] + Content-Length: ['155'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 response: - body: {string: '{"operation":"UPDATE","startTime":"\/Date(1516553770047+0000)\/"}'} + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519155258832+0000)\/"}'} headers: cache-control: ['no-store, no-cache'] content-length: ['65'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:56:10 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/23ccc99a-2e7f-4964-b096-ea35286cbb91?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:34:18 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/d65de768-c4f5-4bd6-83fb-1c3e48e1342b?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -653,20 +674,21 @@ interactions: CommandName: [sql elastic-pool update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/23ccc99a-2e7f-4964-b096-ea35286cbb91?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/operationResults/d65de768-c4f5-4bd6-83fb-1c3e48e1342b?api-version=2014-04-01-Preview response: - body: {string: '{"tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} + body: {string: '{"tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":null}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['582'] + content-length: ['584'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:56:41 GMT'] + date: ['Tue, 20 Feb 2018 19:34:49 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -681,18 +703,19 @@ interactions: CommandName: [sql elastic-pool create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['580'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:56:42 GMT'] + date: ['Tue, 20 Feb 2018 19:34:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -701,33 +724,34 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: '{"location": "westus"}' + body: '{"location": "eastus2"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql elastic-pool create] Connection: [keep-alive] - Content-Length: ['22'] + Content-Length: ['23'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02?api-version=2014-04-01 response: - body: {string: '{"operation":"CREATE","startTime":"\/Date(1516553804751+0000)\/"}'} + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519155294743+0000)\/"}'} headers: cache-control: ['no-store, no-cache'] content-length: ['65'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:56:42 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/994d3a31-ef14-4955-8fb2-fb43cb13cee9?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:34:51 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/7d965bd7-ddc9-4894-98f5-80eae69cf5fc?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -737,20 +761,48 @@ interactions: CommandName: [sql elastic-pool create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/994d3a31-ef14-4955-8fb2-fb43cb13cee9?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/7d965bd7-ddc9-4894-98f5-80eae69cf5fc?api-version=2014-04-01-Preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02","name":"cliautomationpool02","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:56:44.877Z","edition":"Standard","state":"Ready","dtu":100,"databaseDtuMin":0,"databaseDtuMax":100,"storageMB":102400,"zoneRedundant":null}}'} + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519155294727)\/"}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['570'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:35:21 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/7d965bd7-ddc9-4894-98f5-80eae69cf5fc?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02/operationResults/7d965bd7-ddc9-4894-98f5-80eae69cf5fc?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02","name":"cliautomationpool02","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:34:54.853Z","edition":"Standard","state":"Ready","dtu":100,"databaseDtuMin":0,"databaseDtuMax":100,"storageMB":102400,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['572'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:13 GMT'] + date: ['Tue, 20 Feb 2018 19:35:54 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -763,21 +815,22 @@ interactions: CommandName: [sql elastic-pool list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools?api-version=2014-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:54:33.913Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02","name":"cliautomationpool02","type":"Microsoft.Sql/servers/elasticPools","location":"West - US","kind":null,"properties":{"creationDate":"2018-01-21T16:56:44.877Z","edition":"Standard","state":"Ready","dtu":100,"databaseDtuMin":0,"databaseDtuMax":100,"storageMB":102400,"zoneRedundant":false}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01","name":"cliautomationpool01","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:32:08.813Z","edition":"Standard","state":"Ready","dtu":1200,"databaseDtuMin":10,"databaseDtuMax":50,"storageMB":1228800,"zoneRedundant":false}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool02","name":"cliautomationpool02","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:34:54.853Z","edition":"Standard","state":"Ready","dtu":100,"databaseDtuMin":0,"databaseDtuMax":100,"storageMB":102400,"zoneRedundant":false}}]}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1157'] + content-length: ['1161'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:15 GMT'] + date: ['Tue, 20 Feb 2018 19:35:53 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -792,18 +845,19 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview response: - body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} headers: cache-control: [no-cache] - content-length: ['580'] + content-length: ['581'] content-type: [application/json; charset=utf-8] - date: ['Sun, 21 Jan 2018 16:57:15 GMT'] + date: ['Tue, 20 Feb 2018 19:35:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -812,35 +866,35 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: '{"properties": {"elasticPoolName": "cliautomationpool01"}, "location": - "westus"}' + body: '{"location": "eastus2", "properties": {"elasticPoolName": "cliautomationpool01"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db create] Connection: [keep-alive] - Content-Length: ['80'] + Content-Length: ['81'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1516553837539+0000)\/"}'} + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519155356981+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/5c456cd2-6b36-4269-87ab-a4ce079a5f3b?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/a5fddb7e-7e28-4cb8-b7d2-1c279feddaeb?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['80'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:15 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/5c456cd2-6b36-4269-87ab-a4ce079a5f3b?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:35:56 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/a5fddb7e-7e28-4cb8-b7d2-1c279feddaeb?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -850,20 +904,21 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/5c456cd2-6b36-4269-87ab-a4ce079a5f3b?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/a5fddb7e-7e28-4cb8-b7d2-1c279feddaeb?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"5c456cd2-6b36-4269-87ab-a4ce079a5f3b","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"a5fddb7e-7e28-4cb8-b7d2-1c279feddaeb","status":"Succeeded","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/5c456cd2-6b36-4269-87ab-a4ce079a5f3b?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/a5fddb7e-7e28-4cb8-b7d2-1c279feddaeb?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:46 GMT'] + date: ['Tue, 20 Feb 2018 19:36:27 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -878,21 +933,22 @@ interactions: CommandName: [sql db create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1085'] + content-length: ['1089'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:46 GMT'] + date: ['Tue, 20 Feb 2018 19:36:28 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -907,21 +963,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1085'] + content-length: ['1089'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:47 GMT'] + date: ['Tue, 20 Feb 2018 19:36:29 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -929,37 +986,37 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"elasticPoolName": "cliautomationpool02", "maxSizeBytes": - "268435456000", "readScale": "Disabled", "zoneRedundant": false, "collation": - "SQL_Latin1_General_CP1_CI_AS", "requestedServiceObjectiveName": "ElasticPool"}, - "location": "West US"}' + body: '{"location": "East US 2", "properties": {"elasticPoolName": "cliautomationpool02", + "requestedServiceObjectiveName": "ElasticPool", "readScale": "Disabled", "maxSizeBytes": + "268435456000", "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db update] Connection: [keep-alive] - Content-Length: ['255'] + Content-Length: ['233'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1516553869021+0000)\/"}'} + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519155389777+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/ac925747-49c1-492b-97bf-30766a82533e?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/07624645-3f53-477e-a2ba-58b423cb7158?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['81'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:57:48 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/ac925747-49c1-492b-97bf-30766a82533e?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:36:28 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/07624645-3f53-477e-a2ba-58b423cb7158?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -969,20 +1026,21 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/ac925747-49c1-492b-97bf-30766a82533e?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/07624645-3f53-477e-a2ba-58b423cb7158?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"ac925747-49c1-492b-97bf-30766a82533e","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"07624645-3f53-477e-a2ba-58b423cb7158","status":"Succeeded","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/ac925747-49c1-492b-97bf-30766a82533e?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/07624645-3f53-477e-a2ba-58b423cb7158?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:19 GMT'] + date: ['Tue, 20 Feb 2018 19:37:00 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -997,21 +1055,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":"cliautomationpool02","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":"cliautomationpool02","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1085'] + content-length: ['1089'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:18 GMT'] + date: ['Tue, 20 Feb 2018 19:37:00 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1026,21 +1085,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":"cliautomationpool02","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":"cliautomationpool02","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1085'] + content-length: ['1089'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:19 GMT'] + date: ['Tue, 20 Feb 2018 19:37:00 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1048,36 +1108,37 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"readScale": "Disabled", "zoneRedundant": false, "collation": - "SQL_Latin1_General_CP1_CI_AS", "requestedServiceObjectiveName": "S1", "maxSizeBytes": - "268435456000"}, "location": "West US"}' + body: '{"location": "East US 2", "properties": {"requestedServiceObjectiveName": + "S1", "readScale": "Disabled", "maxSizeBytes": "268435456000", "collation": + "SQL_Latin1_General_CP1_CI_AS"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db update] Connection: [keep-alive] - Content-Length: ['204'] + Content-Length: ['182'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1516553902557+0000)\/"}'} + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519155422104+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/f2020b87-4258-4d08-946f-943c6826d6cb?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['81'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:21 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/f2020b87-4258-4d08-946f-943c6826d6cb?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:37:03 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -1087,20 +1148,50 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/f2020b87-4258-4d08-946f-943c6826d6cb?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"f2020b87-4258-4d08-946f-943c6826d6cb","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"052c524c-31f7-4e85-b385-8adf4ab9ac77","status":"InProgress","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/f2020b87-4258-4d08-946f-943c6826d6cb?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:37:33 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"052c524c-31f7-4e85-b385-8adf4ab9ac77","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/052c524c-31f7-4e85-b385-8adf4ab9ac77?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:51 GMT'] + date: ['Tue, 20 Feb 2018 19:38:03 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1115,21 +1206,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1050'] + content-length: ['1054'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:51 GMT'] + date: ['Tue, 20 Feb 2018 19:38:03 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1144,21 +1236,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"S1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveId":"1b1ebd4d-d903-4baa-97f9-4ea675f5e928","requestedServiceObjectiveName":"S1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1050'] + content-length: ['1054'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:52 GMT'] + date: ['Tue, 20 Feb 2018 19:38:05 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1166,37 +1259,37 @@ interactions: x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: - body: '{"properties": {"elasticPoolName": "cliautomationpool01", "maxSizeBytes": - "268435456000", "readScale": "Disabled", "zoneRedundant": false, "collation": - "SQL_Latin1_General_CP1_CI_AS", "requestedServiceObjectiveName": "ElasticPool"}, - "location": "West US"}' + body: '{"location": "East US 2", "properties": {"elasticPoolName": "cliautomationpool01", + "requestedServiceObjectiveName": "ElasticPool", "readScale": "Disabled", "maxSizeBytes": + "268435456000", "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [sql db update] Connection: [keep-alive] - Content-Length: ['255'] + Content-Length: ['233'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1516553932935+0000)\/"}'} + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519155485826+0000)\/"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/dbecb378-b0b8-40a6-8cdc-eefd16f077a1?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/d80e5e28-399b-465a-80bd-dcf5f5e04a78?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['81'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:58:53 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/dbecb378-b0b8-40a6-8cdc-eefd16f077a1?api-version=2014-04-01-Preview'] + date: ['Tue, 20 Feb 2018 19:38:06 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/operationResults/d80e5e28-399b-465a-80bd-dcf5f5e04a78?api-version=2014-04-01-Preview'] preference-applied: [return-content] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -1206,20 +1299,21 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/dbecb378-b0b8-40a6-8cdc-eefd16f077a1?api-version=2014-04-01-Preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/d80e5e28-399b-465a-80bd-dcf5f5e04a78?api-version=2014-04-01-Preview response: - body: {string: '{"operationId":"dbecb378-b0b8-40a6-8cdc-eefd16f077a1","status":"Succeeded","error":null}'} + body: {string: '{"operationId":"d80e5e28-399b-465a-80bd-dcf5f5e04a78","status":"Succeeded","error":null}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/dbecb378-b0b8-40a6-8cdc-eefd16f077a1?api-version=2014-04-01-Preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02/azureAsyncOperation/d80e5e28-399b-465a-80bd-dcf5f5e04a78?api-version=2014-04-01-Preview'] cache-control: ['no-store, no-cache'] content-length: ['88'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:59:24 GMT'] + date: ['Tue, 20 Feb 2018 19:38:36 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1234,21 +1328,22 @@ interactions: CommandName: [sql db update] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1085'] + content-length: ['1089'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:59:24 GMT'] + date: ['Tue, 20 Feb 2018 19:38:37 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1263,21 +1358,22 @@ interactions: CommandName: [sql elastic-pool list-dbs] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/databases?api-version=2014-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","createMode":null,"sampleName":null,"sourceDatabaseId":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","restorePointInTime":null,"sourceDatabaseDeletionDate":null,"blobUriAndSasKey":null,"recoveryServicesRecoveryPointResourceId":null,"elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","createMode":null,"sampleName":null,"sourceDatabaseId":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","restorePointInTime":null,"sourceDatabaseDeletionDate":null,"blobUriAndSasKey":null,"recoveryServicesRecoveryPointResourceId":null,"elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}]}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1270'] + content-length: ['1274'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:59:25 GMT'] + date: ['Tue, 20 Feb 2018 19:38:38 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1292,21 +1388,22 @@ interactions: CommandName: [sql db list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01/databases?api-version=2014-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"West - US","kind":"v12.0,user","properties":{"databaseId":"383a87cd-0490-4049-a8fd-0ff3884d6d30","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-01-21T16:57:17.773Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","createMode":null,"sampleName":null,"sourceDatabaseId":null,"defaultSecondaryLocation":"East - US","earliestRestoreDate":"2018-01-21T17:27:39.437Z","restorePointInTime":null,"sourceDatabaseDeletionDate":null,"blobUriAndSasKey":null,"recoveryServicesRecoveryPointResourceId":null,"elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02","name":"cliautomationdb02","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"7361ced0-0601-4c93-bd8c-7820c8d16bf0","edition":"Standard","status":"Online","serviceLevelObjective":"ElasticPool","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"268435456000","creationDate":"2018-02-20T19:35:57.34Z","currentServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveId":"d1737d22-a8ea-4de7-9bd0-33395d2a7419","requestedServiceObjectiveName":"ElasticPool","createMode":null,"sampleName":null,"sourceDatabaseId":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T20:06:12.883Z","restorePointInTime":null,"sourceDatabaseDeletionDate":null,"blobUriAndSasKey":null,"recoveryServicesRecoveryPointResourceId":null,"elasticPoolName":"cliautomationpool01","containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}]}'} headers: cache-control: ['no-store, no-cache'] - content-length: ['1270'] + content-length: ['1274'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Sun, 21 Jan 2018 16:59:25 GMT'] + date: ['Tue, 20 Feb 2018 19:38:39 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] @@ -1322,8 +1419,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/cliautomationdb02?api-version=2014-04-01 @@ -1334,11 +1432,11 @@ interactions: content-length: ['0'] content-type: [application/xml; charset=utf-8] dataserviceversion: [1.0;] - date: ['Sun, 21 Jan 2018 16:59:27 GMT'] + date: ['Tue, 20 Feb 2018 19:38:42 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -1349,8 +1447,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 @@ -1361,11 +1460,11 @@ interactions: content-length: ['0'] content-type: [application/xml; charset=utf-8] dataserviceversion: [1.0;] - date: ['Sun, 21 Jan 2018 16:59:28 GMT'] + date: ['Tue, 20 Feb 2018 19:38:45 GMT'] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -1376,8 +1475,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/cliautomationpool01?api-version=2014-04-01 @@ -1385,11 +1485,11 @@ interactions: body: {string: ''} headers: cache-control: [no-cache] - date: ['Sun, 21 Jan 2018 16:59:28 GMT'] + date: ['Tue, 20 Feb 2018 19:38:44 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 204, message: No Content} - request: body: null @@ -1400,9 +1500,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 @@ -1411,11 +1511,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Sun, 21 Jan 2018 16:59:29 GMT'] + date: ['Tue, 20 Feb 2018 19:38:47 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdRNjRUUzRJMlFZVk0yVUxIRU1XQUtXWUhHMk5XUVZPNFNONHxDNjQwNkMzQ0QyRjIwRDgyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSVEpCQktENjVVUkVFM1NQSTNMTlVWUVNDWlhKRlcySUJXVnxCRTNFNzc0QUQxQjIxNUMxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_database.yaml b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_database.yaml new file mode 100644 index 00000000000..f55fbfca40b --- /dev/null +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_database.yaml @@ -0,0 +1,1598 @@ +interactions: +- request: + body: '{"tags": {"use": "az-test"}, "location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:08:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"location": "eastus2", "properties": {"administratorLogin": "admin123", + "administratorLoginPassword": "SecretPassword123"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Length: ['124'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview'] + cache-control: [no-cache] + content-length: ['74'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:08:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverOperationResults/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"InProgress","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:08:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"InProgress","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:08:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"InProgress","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:08:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"InProgress","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:09:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"InProgress","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:09:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/5ef0edff-5cd1-43ad-859b-20eb794392f6?api-version=2015-05-01-preview + response: + body: {string: '{"name":"5ef0edff-5cd1-43ad-859b-20eb794392f6","status":"Succeeded","startTime":"2018-02-20T19:08:35.543Z"}'} + headers: + cache-control: [no-cache] + content-length: ['107'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:09:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:09:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:09:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"location": "eastus2", "properties": {"zoneRedundant": false, "edition": + "Premium"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Length: ['85'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519153784434+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/azureAsyncOperation/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['80'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:09:45 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/operationResults/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/azureAsyncOperation/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"eb4583ce-f924-448a-ae20-9b00b7fe2f77","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/azureAsyncOperation/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:10:15 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/azureAsyncOperation/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"eb4583ce-f924-448a-ae20-9b00b7fe2f77","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb/azureAsyncOperation/eb4583ce-f924-448a-ae20-9b00b7fe2f77?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:10:58 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb","name":"createUnzonedUpdateToZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"e694c7e2-af05-4f27-b46d-1330f6b60363","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:09:44.683Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:40:42.88Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1075'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:10:46 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb","name":"createUnzonedUpdateToZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"e694c7e2-af05-4f27-b46d-1330f6b60363","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:09:44.683Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:40:42.88Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1075'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:10:48 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "East US 2", "properties": {"zoneRedundant": true, "requestedServiceObjectiveName": + "P1", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000", + "readScale": "Disabled"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['205'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb?api-version=2014-04-01 + response: + body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not + receive a response from ''Microsoft.Sql'' within the specified time period."}}'} + headers: + cache-control: [no-cache] + connection: [close] + content-length: ['141'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:11:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-failure-cause: [service] + status: {code: 504, message: Gateway Timeout} +- request: + body: '{"location": "East US 2", "properties": {"zoneRedundant": true, "requestedServiceObjectiveName": + "P1", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000", + "readScale": "Disabled"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['205'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createUnzonedUpdateToZonedDb","name":"createUnzonedUpdateToZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"e694c7e2-af05-4f27-b46d-1330f6b60363","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:09:44.683Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:40:42.88Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1074'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:11:49 GMT'] + preference-applied: [return-content] + 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:11:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"location": "eastus2", "properties": {"zoneRedundant": true, "edition": + "Premium"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Length: ['84'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519153912663+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['80'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:11:52 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/operationResults/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"84531a8b-7d5f-4c10-ac69-62fea4a5c6c3","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:12:23 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"84531a8b-7d5f-4c10-ac69-62fea4a5c6c3","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:12:53 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"84531a8b-7d5f-4c10-ac69-62fea4a5c6c3","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb/azureAsyncOperation/84531a8b-7d5f-4c10-ac69-62fea4a5c6c3?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:13:24 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb","name":"createZonedUpdateToUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"57d4b6e6-e47e-4247-810f-76186af2096d","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:11:52.897Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:42:54.473Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1075'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:13:24 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb","name":"createZonedUpdateToUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"57d4b6e6-e47e-4247-810f-76186af2096d","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:11:52.897Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:42:54.473Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1075'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:13:25 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "East US 2", "properties": {"zoneRedundant": false, "requestedServiceObjectiveName": + "P1", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000", + "readScale": "Disabled"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['206'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not + receive a response from ''Microsoft.Sql'' within the specified time period."}}'} + headers: + cache-control: [no-cache] + connection: [close] + content-length: ['141'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:14:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-failure-cause: [service] + status: {code: 504, message: Gateway Timeout} +- request: + body: '{"location": "East US 2", "properties": {"zoneRedundant": false, "requestedServiceObjectiveName": + "P1", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000", + "readScale": "Disabled"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['206'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/createZonedUpdateToUnzonedDb","name":"createZonedUpdateToUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"57d4b6e6-e47e-4247-810f-76186af2096d","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:11:52.897Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:42:54.473Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1076'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:14:28 GMT'] + preference-applied: [return-content] + 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-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:14:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"location": "eastus2", "properties": {"edition": "Premium"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Length: ['61'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519154073180+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['80'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:14:30 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/operationResults/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"c1383920-c0d2-482a-b079-20115eafa12b","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:15:00 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"c1383920-c0d2-482a-b079-20115eafa12b","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:15:31 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"c1383920-c0d2-482a-b079-20115eafa12b","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/c1383920-c0d2-482a-b079-20115eafa12b?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:16:02 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb","name":"updateNoParamForUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"0ebf3ca2-7c94-4cd0-9fa5-0d417e4e7d04","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:14:33.447Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:45:41.003Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1070'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:16:00 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb","name":"updateNoParamForUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"0ebf3ca2-7c94-4cd0-9fa5-0d417e4e7d04","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:14:33.447Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:45:41.003Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1070'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:16:03 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "East US 2", "properties": {"readScale": "Disabled", "requestedServiceObjectiveName": + "P2", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['182'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519154165022+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['81'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:16:04 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/operationResults/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"cb3c5fc7-f46c-4ec5-a00e-94f50f301f39","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:16:35 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"cb3c5fc7-f46c-4ec5-a00e-94f50f301f39","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:17:04 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"cb3c5fc7-f46c-4ec5-a00e-94f50f301f39","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:17:48 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"cb3c5fc7-f46c-4ec5-a00e-94f50f301f39","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:18:07 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"cb3c5fc7-f46c-4ec5-a00e-94f50f301f39","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb/azureAsyncOperation/cb3c5fc7-f46c-4ec5-a00e-94f50f301f39?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:18:37 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForUnzonedDb","name":"updateNoParamForUnzonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"0ebf3ca2-7c94-4cd0-9fa5-0d417e4e7d04","edition":"Premium","status":"Online","serviceLevelObjective":"P2","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:14:33.447Z","currentServiceObjectiveId":"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0","requestedServiceObjectiveId":"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0","requestedServiceObjectiveName":"P2","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:45:41.003Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":false,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1070'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:18:38 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:18:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"location": "eastus2", "properties": {"zoneRedundant": true, "edition": + "Premium"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Length: ['84'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"CreateLogicalDatabase","startTime":"\/Date(1519154321810+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['80'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:18:40 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/operationResults/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"4cf36998-f356-42c3-9e67-2cc3a28dd795","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:19:11 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"4cf36998-f356-42c3-9e67-2cc3a28dd795","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:19:42 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"4cf36998-f356-42c3-9e67-2cc3a28dd795","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/4cf36998-f356-42c3-9e67-2cc3a28dd795?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:20:12 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb","name":"updateNoParamForZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"f0eed718-0a6e-49d0-9ad8-b6dfb545b33a","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:18:42.077Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:49:49.6Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1063'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:20:13 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb","name":"updateNoParamForZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"f0eed718-0a6e-49d0-9ad8-b6dfb545b33a","edition":"Premium","status":"Online","serviceLevelObjective":"P1","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:18:42.077Z","currentServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveId":"7203483a-c4fb-4304-9e9f-17c71c904f5d","requestedServiceObjectiveName":"P1","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:49:49.6Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1063'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:20:12 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"location": "East US 2", "properties": {"readScale": "Disabled", "requestedServiceObjectiveName": + "P2", "collation": "SQL_Latin1_General_CP1_CI_AS", "maxSizeBytes": "536870912000"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Length: ['182'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb?api-version=2014-04-01 + response: + body: {string: '{"operation":"AlterDatabaseOperation","startTime":"\/Date(1519154414808+0000)\/"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['81'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:20:14 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/operationResults/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"3f0da5ea-df58-4759-95c5-dd0378005a61","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:20:45 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"3f0da5ea-df58-4759-95c5-dd0378005a61","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:21:16 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"3f0da5ea-df58-4759-95c5-dd0378005a61","status":"InProgress","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['89'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:21:46 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview + response: + body: {string: '{"operationId":"3f0da5ea-df58-4759-95c5-dd0378005a61","status":"Succeeded","error":null}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb/azureAsyncOperation/3f0da5ea-df58-4759-95c5-dd0378005a61?api-version=2014-04-01-Preview'] + cache-control: ['no-store, no-cache'] + content-length: ['88'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:22:15 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql db update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/databases/updateNoParamForZonedDb","name":"updateNoParamForZonedDb","type":"Microsoft.Sql/servers/databases","location":"East + US 2","kind":"v12.0,user","properties":{"databaseId":"f0eed718-0a6e-49d0-9ad8-b6dfb545b33a","edition":"Premium","status":"Online","serviceLevelObjective":"P2","collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":"536870912000","creationDate":"2018-02-20T19:18:42.077Z","currentServiceObjectiveId":"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0","requestedServiceObjectiveId":"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0","requestedServiceObjectiveName":"P2","sampleName":null,"defaultSecondaryLocation":"Central + US","earliestRestoreDate":"2018-02-20T19:49:49.6Z","elasticPoolName":null,"containmentState":2,"readScale":"Disabled","failoverGroupId":null,"zoneRedundant":true,"isUpgradeRequested":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['1063'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:22:16 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 20 Feb 2018 19:22:19 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkczRlBWSDVJQkpIVkwzUTMyUklVQ0g0WFA2QUQyQzNKQ1hRM3xDRDM4MzZFMjVBOTQwOTg5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_pool.yaml b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_pool.yaml new file mode 100644 index 00000000000..71c3fba0d1e --- /dev/null +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_zone_resilient_pool.yaml @@ -0,0 +1,1404 @@ +interactions: +- request: + body: '{"tags": {"use": "az-test"}, "location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['329'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: '{"properties": {"administratorLogin": "admin123", "administratorLoginPassword": + "SecretPassword123"}, "location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Length: ['124'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"operation":"UpsertLogicalServer","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview'] + cache-control: [no-cache] + content-length: ['74'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverOperationResults/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview + response: + body: {string: '{"name":"2d5f2a24-9052-4359-acce-d84e4ad72e14","status":"InProgress","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview + response: + body: {string: '{"name":"2d5f2a24-9052-4359-acce-d84e4ad72e14","status":"InProgress","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview + response: + body: {string: '{"name":"2d5f2a24-9052-4359-acce-d84e4ad72e14","status":"InProgress","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview + response: + body: {string: '{"name":"2d5f2a24-9052-4359-acce-d84e4ad72e14","status":"InProgress","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + cache-control: [no-cache] + content-length: ['108'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:58:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/locations/eastus2/serverAzureAsyncOperation/2d5f2a24-9052-4359-acce-d84e4ad72e14?api-version=2015-05-01-preview + response: + body: {string: '{"name":"2d5f2a24-9052-4359-acce-d84e4ad72e14","status":"Succeeded","startTime":"2018-02-20T18:58:31.113Z"}'} + headers: + cache-control: [no-cache] + content-length: ['107'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:59:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql server create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:59:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 18:59:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"edition": "Premium", "zoneRedundant": false}, "location": + "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Length: ['85'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153162165+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 18:59:22 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/0cb08441-f3b2-4e02-8434-9ba0accf5664?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/0cb08441-f3b2-4e02-8434-9ba0accf5664?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153162133)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 18:59:53 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/0cb08441-f3b2-4e02-8434-9ba0accf5664?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/0cb08441-f3b2-4e02-8434-9ba0accf5664?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool","name":"createUnzonedUpdateToZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T18:59:22.32Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['592'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:00:23 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool","name":"createUnzonedUpdateToZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T18:59:22.32Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:00:22 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool","name":"createUnzonedUpdateToZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T18:59:22.32Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:00:25 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"storageMB": 256000, "zoneRedundant": true, "databaseDtuMin": + 0, "dtu": 125, "databaseDtuMax": 125, "edition": "Premium"}, "location": "East + US 2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Length: ['163'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153226056+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:00:26 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/f7035a3d-7afe-4293-9c80-683a27ffd504?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/f7035a3d-7afe-4293-9c80-683a27ffd504?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153226010)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:00:57 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/f7035a3d-7afe-4293-9c80-683a27ffd504?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool/operationResults/f7035a3d-7afe-4293-9c80-683a27ffd504?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool","name":"createUnzonedUpdateToZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T18:59:22.32Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['592'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:01:27 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createUnzonedUpdateToZonedPool","name":"createUnzonedUpdateToZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T18:59:22.32Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['592'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:01:27 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:01:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"edition": "Premium", "zoneRedundant": true}, "location": + "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Length: ['84'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153289388+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:01:30 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/b14595f9-1f05-4335-b966-c9074f2241a2?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/b14595f9-1f05-4335-b966-c9074f2241a2?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153289390)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:02:00 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/b14595f9-1f05-4335-b966-c9074f2241a2?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/b14595f9-1f05-4335-b966-c9074f2241a2?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool","name":"createZonedUpdateToUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:01:29.497Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:02:31 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool","name":"createZonedUpdateToUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:01:29.497Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:02:29 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool","name":"createZonedUpdateToUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:01:29.497Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:02:32 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"storageMB": 256000, "zoneRedundant": false, "databaseDtuMin": + 0, "dtu": 125, "databaseDtuMax": 125, "edition": "Premium"}, "location": "East + US 2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Length: ['164'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153354696+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:02:34 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/fd5a7294-8557-4458-b84e-068bc5c95bbe?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/fd5a7294-8557-4458-b84e-068bc5c95bbe?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153354650)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:03:05 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/fd5a7294-8557-4458-b84e-068bc5c95bbe?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool/operationResults/fd5a7294-8557-4458-b84e-068bc5c95bbe?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool","name":"createZonedUpdateToUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:01:29.497Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['593'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:03:35 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/createZonedUpdateToUnzonedPool","name":"createZonedUpdateToUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:01:29.497Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['594'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:03:37 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:03:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"edition": "Premium"}, "location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Length: ['61'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153419217+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:03:40 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/70079320-6875-46ba-9626-0c91cf1b6056?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/70079320-6875-46ba-9626-0c91cf1b6056?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153419203)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:04:10 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/70079320-6875-46ba-9626-0c91cf1b6056?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/70079320-6875-46ba-9626-0c91cf1b6056?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool","name":"updateNoParamForUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:03:39.327Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['587'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:04:40 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool","name":"updateNoParamForUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:03:39.327Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['588'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:04:39 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool","name":"updateNoParamForUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:03:39.327Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['588'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:04:42 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"storageMB": 256000, "edition": "Premium", "databaseDtuMin": + 0, "dtu": 250, "databaseDtuMax": 125}, "location": "East US 2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Length: ['140'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153485804+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:04:43 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/15c3be9d-e495-4fdb-bb3e-0bf6612a5e50?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/15c3be9d-e495-4fdb-bb3e-0bf6612a5e50?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153485773)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:05:13 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/15c3be9d-e495-4fdb-bb3e-0bf6612a5e50?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool/operationResults/15c3be9d-e495-4fdb-bb3e-0bf6612a5e50?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool","name":"updateNoParamForUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:03:39.327Z","edition":"Premium","state":"Ready","dtu":250,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['587'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:05:44 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForUnzonedPool","name":"updateNoParamForUnzonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:03:39.327Z","edition":"Premium","state":"Ready","dtu":250,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":false}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['588'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:05:44 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002?api-version=2015-05-01-preview + response: + body: {string: '{"kind":"v12.0","properties":{"administratorLogin":"admin123","version":"12.0","state":"Ready","fullyQualifiedDomainName":"clitestserver000002.database.windows.net"},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002","name":"clitestserver000002","type":"Microsoft.Sql/servers"}'} + headers: + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 20 Feb 2018 19:05:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"edition": "Premium", "zoneRedundant": true}, "location": + "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Length: ['84'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153547730+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:05:45 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/22d78305-dab4-45ab-b96e-53db8b4146f2?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/22d78305-dab4-45ab-b96e-53db8b4146f2?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"CREATE","startTime":"\/Date(1519153547713)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:06:19 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/22d78305-dab4-45ab-b96e-53db8b4146f2?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/22d78305-dab4-45ab-b96e-53db8b4146f2?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool","name":"updateNoParamForZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:05:47.87Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['582'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:06:49 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool","name":"updateNoParamForZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:05:47.87Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['582'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:06:51 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool","name":"updateNoParamForZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:05:47.87Z","edition":"Premium","state":"Ready","dtu":125,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['582'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:06:48 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"storageMB": 256000, "edition": "Premium", "databaseDtuMin": + 0, "dtu": 250, "databaseDtuMax": 125}, "location": "East US 2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Length: ['140'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool?api-version=2014-04-01 + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153611720+0000)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['65'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:06:52 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/ba54ffb7-e4e7-445c-b015-be05593b7d20?api-version=2014-04-01-Preview'] + preference-applied: [return-content] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/ba54ffb7-e4e7-445c-b015-be05593b7d20?api-version=2014-04-01-Preview + response: + body: {string: '{"operation":"UPDATE","startTime":"\/Date(1519153611703)\/"}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['60'] + content-type: [application/json] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:07:22 GMT'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/ba54ffb7-e4e7-445c-b015-be05593b7d20?api-version=2014-04-01-Preview'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool update] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool/operationResults/ba54ffb7-e4e7-445c-b015-be05593b7d20?api-version=2014-04-01-Preview + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool","name":"updateNoParamForZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:05:47.87Z","edition":"Premium","state":"Ready","dtu":250,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":null}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['582'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:07:53 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sql elastic-pool show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 azure-mgmt-sql/0.8.5 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool?api-version=2014-04-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Sql/servers/clitestserver000002/elasticPools/updateNoParamForZonedPool","name":"updateNoParamForZonedPool","type":"Microsoft.Sql/servers/elasticPools","location":"East + US 2","kind":null,"properties":{"creationDate":"2018-02-20T19:05:47.87Z","edition":"Premium","state":"Ready","dtu":250,"databaseDtuMin":0,"databaseDtuMax":125,"storageMB":256000,"zoneRedundant":true}}'} + headers: + cache-control: ['no-store, no-cache'] + content-length: ['582'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 20 Feb 2018 19:07:54 GMT'] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-2012ServerR2-6.3.9600-SP0) requests/2.18.4 + msrest/0.4.26 msrest_azure/0.4.21 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.28] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 20 Feb 2018 19:07:56 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdCSFg1V1EyS1NWVkVHNlc2T1pXNkQ0NUszSFlRRkVJUzVIQ3xBOUEwNkM5RDhCNzgxMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index f88664b44d5..b187b8007c5 100644 --- a/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/command_modules/azure-cli-sql/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -268,8 +268,8 @@ def test_sql_firewall_mgmt(self, resource_group, resource_group_location, server class SqlServerDbMgmtScenarioTest(ScenarioTest): - @ResourceGroupPreparer() - @SqlServerPreparer() + @ResourceGroupPreparer(location='eastus2') + @SqlServerPreparer(location='eastus2') def test_sql_db_mgmt(self, resource_group, resource_group_location, server): database_name = "cliautomationdb01" database_name_2 = "cliautomationdb02" @@ -279,7 +279,7 @@ def test_sql_db_mgmt(self, resource_group, resource_group_location, server): update_storage_bytes = str(10 * 1024 * 1024 * 1024) rg = resource_group - loc_display = 'West US' + loc_display = 'East US 2' # test sql db commands db1 = self.cmd('sql db create -g {} --server {} --name {}' @@ -289,7 +289,8 @@ def test_sql_db_mgmt(self, resource_group, resource_group_location, server): JMESPathCheck('name', database_name), JMESPathCheck('location', loc_display), JMESPathCheck('elasticPoolName', None), - JMESPathCheck('status', 'Online')]).get_output_in_json() + JMESPathCheck('status', 'Online'), + JMESPathCheck('zoneRedundant', False)]).get_output_in_json() self.cmd('sql db list -g {} --server {}' .format(rg, server), @@ -1161,8 +1162,8 @@ def verify_activities(self, activities, resource_group, server): .format(activity['currentElasticPoolName'], self.pool_name)) return True - @ResourceGroupPreparer() - @SqlServerPreparer() + @ResourceGroupPreparer(location='eastus2') + @SqlServerPreparer(location='eastus2') def test_sql_elastic_pools_mgmt(self, resource_group, resource_group_location, server): database_name = "cliautomationdb02" pool_name2 = "cliautomationpool02" @@ -1183,7 +1184,7 @@ def test_sql_elastic_pools_mgmt(self, resource_group, resource_group_location, s db_service_objective = 'S1' rg = resource_group - loc_display = 'West US' + loc_display = 'East US 2' # test sql elastic-pool commands elastic_pool_1 = self.cmd('sql elastic-pool create -g {} --server {} --name {} ' @@ -1211,7 +1212,8 @@ def test_sql_elastic_pools_mgmt(self, resource_group, resource_group_location, s JMESPathCheck('databaseDtuMin', db_dtu_min), JMESPathCheck('databaseDtuMax', db_dtu_max), JMESPathCheck('edition', edition), - JMESPathCheck('storageMb', storage_mb)]) + JMESPathCheck('storageMb', storage_mb), + JMESPathCheck('zoneRedundant', False)]) self.cmd('sql elastic-pool show --id {}' .format(elastic_pool_1['id']), @@ -1939,3 +1941,212 @@ def test_sql_subscription_usages(self): checks=[ JMESPathCheck('name', 'SubscriptionFreeDatabaseDaysLeft'), JMESPathCheckGreaterThan('limit', 0)]) + + +class SqlZoneResilienceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(location='eastus2') + @SqlServerPreparer(location='eastus2') + def test_sql_zone_resilient_database(self, resource_group, resource_group_location, server): + database_name = "createUnzonedUpdateToZonedDb" + database_name_2 = "createZonedUpdateToUnzonedDb" + database_name_3 = "updateNoParamForUnzonedDb" + database_name_4 = "updateNoParamForZonedDb" + + rg = resource_group + loc_display = "East US 2" + + # Test creating database with zone resilience set to false. Expect regular database created. + self.cmd('sql db create -g {} --server {} --name {} --edition {} --zone-redundant {}' + .format(rg, server, database_name, "Premium", False), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name), + JMESPathCheck('location', loc_display), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', False)]) + + # Test running update on regular database with zone resilience set to true. Expect zone resilience to update to true. + self.cmd('sql db update -g {} -s {} -n {} --service-objective {} --zone-redundant' + .format(rg, server, database_name, 'P1'), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('status', 'Online'), + JMESPathCheck('requestedServiceObjectiveName', 'P1'), + JMESPathCheck('zoneRedundant', True)]) + + # Test creating database with zone resilience set to true. Expect zone resilient database created. + self.cmd('sql db create -g {} --server {} --name {} --edition {} --z' + .format(rg, server, database_name_2, "Premium"), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_2), + JMESPathCheck('location', loc_display), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', True)]) + + # Test running update on zoned database with zone resilience set to false. Expect zone resilience to update to false + self.cmd('sql db update -g {} -s {} -n {} --service-objective {} --z {}' + .format(rg, server, database_name_2, 'P1', False), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_2), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('status', 'Online'), + JMESPathCheck('requestedServiceObjectiveName', 'P1'), + JMESPathCheck('zoneRedundant', False)]) + + # Create database with no zone resilience set. Expect regular database created. + self.cmd('sql db create -g {} --server {} --name {} --edition {}' + .format(rg, server, database_name_3, "Premium"), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_3), + JMESPathCheck('location', loc_display), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', False)]) + + # Test running update on regular database with no zone resilience set. Expect zone resilience to stay false. + self.cmd('sql db update -g {} -s {} -n {} --service-objective {}' + .format(rg, server, database_name_3, 'P2'), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_3), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('status', 'Online'), + JMESPathCheck('requestedServiceObjectiveName', 'P2'), + JMESPathCheck('zoneRedundant', False)]) + + # Create database with zone resilience set. Expect zone resilient database created. + self.cmd('sql db create -g {} --server {} --name {} --edition {} --zone-redundant' + .format(rg, server, database_name_4, "Premium"), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_4), + JMESPathCheck('location', loc_display), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', True)]) + + # Test running update on zoned database with no zone resilience set. Expect zone resilience to stay true. + self.cmd('sql db update -g {} -s {} -n {} --service-objective {}' + .format(rg, server, database_name_4, 'P2'), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', database_name_4), + JMESPathCheck('elasticPoolName', None), + JMESPathCheck('status', 'Online'), + JMESPathCheck('requestedServiceObjectiveName', 'P2'), + JMESPathCheck('zoneRedundant', True)]) + + @ResourceGroupPreparer(location='eastus2') + @SqlServerPreparer(location='eastus2') + def test_sql_zone_resilient_pool(self, resource_group, resource_group_location, server): + pool_name = "createUnzonedUpdateToZonedPool" + pool_name_2 = "createZonedUpdateToUnzonedPool" + pool_name_3 = "updateNoParamForUnzonedPool" + pool_name_4 = "updateNoParamForZonedPool" + + rg = resource_group + + # Test creating pool with zone resilience set to false. Expect regular pool created. + self.cmd('sql elastic-pool create -g {} --server {} --name {} --edition {} --z {}' + .format(rg, server, pool_name, "Premium", False)) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name), + JMESPathCheck('state', 'Ready'), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', False)]) + + # Test running update on regular pool with zone resilience set to true. Expect zone resilience to update to true + self.cmd('sql elastic-pool update -g {} -s {} -n {} --z' + .format(rg, server, pool_name)) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name), + JMESPathCheck('zoneRedundant', True)]) + + # Test creating pool with zone resilience set to true. Expect zone resilient pool created. + self.cmd('sql elastic-pool create -g {} --server {} --name {} --edition {} --zone-redundant' + .format(rg, server, pool_name_2, "Premium")) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_2), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_2), + JMESPathCheck('state', 'Ready'), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', True)]) + + # Test running update on zoned pool with zone resilience set to false. Expect zone resilience to update to false + self.cmd('sql elastic-pool update -g {} -s {} -n {} --zone-redundant {}' + .format(rg, server, pool_name_2, False)) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_2), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_2), + JMESPathCheck('zoneRedundant', False)]) + + # Create pool with no zone resilience set. Expect regular pool created. + self.cmd('sql elastic-pool create -g {} --server {} --name {} --edition {}' + .format(rg, server, pool_name_3, "Premium")) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_3), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_3), + JMESPathCheck('state', 'Ready'), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', False)]) + + # Test running update on regular pool with no zone resilience set. Expect zone resilience to stay false + self.cmd('sql elastic-pool update -g {} -s {} -n {} --dtu {}' + .format(rg, server, pool_name_3, 250)) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_3), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_3), + JMESPathCheck('dtu', 250), + JMESPathCheck('zoneRedundant', False)]) + + # Create pool with zone resilience set. Expect zone resilient pool created. + self.cmd('sql elastic-pool create -g {} --server {} --name {} --edition {} --zone-redundant' + .format(rg, server, pool_name_4, "Premium")) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_4), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_4), + JMESPathCheck('state', 'Ready'), + JMESPathCheck('edition', 'Premium'), + JMESPathCheck('zoneRedundant', True)]) + + # Test running update on zoned pool with no zone resilience set. Expect zone resilience to stay true + self.cmd('sql elastic-pool update -g {} -s {} -n {} --dtu {}' + .format(rg, server, pool_name_4, 250, True)) + + self.cmd('sql elastic-pool show -g {} --server {} --name {}' + .format(rg, server, pool_name_4), + checks=[ + JMESPathCheck('resourceGroup', rg), + JMESPathCheck('name', pool_name_4), + JMESPathCheck('dtu', 250), + JMESPathCheck('zoneRedundant', True)]) diff --git a/src/command_modules/azure-cli-sql/setup.py b/src/command_modules/azure-cli-sql/setup.py index 3c98ba97c7c..009c8cb2a98 100644 --- a/src/command_modules/azure-cli-sql/setup.py +++ b/src/command_modules/azure-cli-sql/setup.py @@ -12,7 +12,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "2.0.21" +VERSION = "2.0.22" CLASSIFIERS = [ 'Development Status :: 4 - Beta',