diff --git a/src/command_modules/azure-cli-vm/tests/recordings/test_vmss_vms.yaml b/src/command_modules/azure-cli-vm/tests/recordings/test_vmss_vms.yaml index 52d9274868a..66196c552ee 100644 --- a/src/command_modules/azure-cli-vm/tests/recordings/test_vmss_vms.yaml +++ b/src/command_modules/azure-cli-vm/tests/recordings/test_vmss_vms.yaml @@ -6,69 +6,69 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [ce4eefac-fd3a-11e6-b1ae-64510658e3b3] + x-ms-client-request-id: [062e2430-0da3-11e7-9849-f4b7e2e85440] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"instanceId\": \"1\",\r\ + body: {string: "{\r\n \"value\": [\r\n {\r\n \"instanceId\": \"0\",\r\ \n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"\ - latestModelApplied\": true,\r\n \"vmId\": \"b0e1ac2d-a3b0-4d88-a6ce-0bb90b6849ab\"\ + latestModelApplied\": true,\r\n \"vmId\": \"5c94da1a-9d2f-4be5-9659-be1bce27b233\"\ ,\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n\ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ - ,\r\n \"sku\": \"14.04.4-LTS\",\r\n \"version\": \"\ - 14.04.201607140\"\r\n },\r\n \"osDisk\": {\r\n \ - \ \"osType\": \"Linux\",\r\n \"name\": \"vmss1_vmss1_1_OsDisk_1_7489f071b7784b64b362ab9c4aab2cfc\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"16.04.201703070\"\ + \r\n },\r\n \"osDisk\": {\r\n \"osType\": \"\ + Linux\",\r\n \"name\": \"vmss1_vmss1_0_OsDisk_1_a6cb1cb57e21456aa681cf71da5ce278\"\ ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\"\ - : \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\ - : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_1_OsDisk_1_7489f071b7784b64b362ab9c4aab2cfc\"\ + : \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\ + : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_0_OsDisk_1_a6cb1cb57e21456aa681cf71da5ce278\"\ \r\n }\r\n },\r\n \"dataDisks\": []\r\n \ - \ },\r\n \"osProfile\": {\r\n \"computerName\": \"vmss1006x000001\"\ + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"vmss10jpv000000\"\ ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\ \n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ - networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1006xNic\"\ + networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss10jpvNic\"\ }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"\ type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n\ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VMSS_VMS_6LOX_/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1\"\ - ,\r\n \"name\": \"vmss1_1\"\r\n },\r\n {\r\n \"instanceId\"\ - : \"2\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VMSS_VMS_KNM1_/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0\"\ + ,\r\n \"name\": \"vmss1_0\"\r\n },\r\n {\r\n \"instanceId\"\ + : \"1\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n\ \ \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n\ - \ \"latestModelApplied\": true,\r\n \"vmId\": \"7fbc5a6b-ff80-4629-9849-c3fe6946dbb4\"\ + \ \"latestModelApplied\": true,\r\n \"vmId\": \"76c988cf-d70f-4db9-8eb7-94ea8454f231\"\ ,\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n\ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ - ,\r\n \"sku\": \"14.04.4-LTS\",\r\n \"version\": \"\ - 14.04.201607140\"\r\n },\r\n \"osDisk\": {\r\n \ - \ \"osType\": \"Linux\",\r\n \"name\": \"vmss1_vmss1_2_OsDisk_1_06b67d4614e84cf4971a2d67c7939393\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"16.04.201703070\"\ + \r\n },\r\n \"osDisk\": {\r\n \"osType\": \"\ + Linux\",\r\n \"name\": \"vmss1_vmss1_1_OsDisk_1_39eee64c75814913883343f89901afcb\"\ ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\"\ - : \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\ - : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_2_OsDisk_1_06b67d4614e84cf4971a2d67c7939393\"\ + : \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\ + : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_1_OsDisk_1_39eee64c75814913883343f89901afcb\"\ \r\n }\r\n },\r\n \"dataDisks\": []\r\n \ - \ },\r\n \"osProfile\": {\r\n \"computerName\": \"vmss1006x000002\"\ + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"vmss10jpv000001\"\ ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\ \n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ - networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss1006xNic\"\ - }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \ - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\"\ - ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VMSS_VMS_6LOX_/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2\"\ - ,\r\n \"name\": \"vmss1_2\"\r\n }\r\n ]\r\n}"} + networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss10jpvNic\"\ + }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"\ + type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n\ + \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VMSS_VMS_KNM1_/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1\"\ + ,\r\n \"name\": \"vmss1_1\"\r\n }\r\n ]\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:19:28 GMT'] + Date: ['Mon, 20 Mar 2017 19:25:49 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['3889'] + content-length: ['3886'] status: {code: 200, message: OK} - request: body: null @@ -77,44 +77,44 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cedecf36-fd3a-11e6-a3e1-64510658e3b3] + x-ms-client-request-id: [06f07174-0da3-11e7-a39e-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/0?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"instanceId\": \"1\",\r\n \"sku\": {\r\n \"name\"\ + body: {string: "{\r\n \"instanceId\": \"0\",\r\n \"sku\": {\r\n \"name\"\ : \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\"\ - : {\r\n \"latestModelApplied\": true,\r\n \"vmId\": \"b0e1ac2d-a3b0-4d88-a6ce-0bb90b6849ab\"\ + : {\r\n \"latestModelApplied\": true,\r\n \"vmId\": \"5c94da1a-9d2f-4be5-9659-be1bce27b233\"\ ,\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"\ publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \ - \ \"sku\": \"14.04.4-LTS\",\r\n \"version\": \"14.04.201607140\"\ + \ \"sku\": \"16.04-LTS\",\r\n \"version\": \"16.04.201703070\"\ \r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\ - \ \"name\": \"vmss1_vmss1_1_OsDisk_1_7489f071b7784b64b362ab9c4aab2cfc\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadOnly\"\ + \ \"name\": \"vmss1_vmss1_0_OsDisk_1_a6cb1cb57e21456aa681cf71da5ce278\"\ + ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_1_OsDisk_1_7489f071b7784b64b362ab9c4aab2cfc\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/disks/vmss1_vmss1_0_OsDisk_1_a6cb1cb57e21456aa681cf71da5ce278\"\ \r\n }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\ - : {\r\n \"computerName\": \"vmss1006x000001\",\r\n \"adminUsername\"\ + : {\r\n \"computerName\": \"vmss10jpv000000\",\r\n \"adminUsername\"\ : \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\ - : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1006xNic\"\ + : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss10jpvNic\"\ }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"type\": \"\ Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n \"location\"\ - : \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1\"\ - ,\r\n \"name\": \"vmss1_1\"\r\n}"} + : \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0\"\ + ,\r\n \"name\": \"vmss1_0\"\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:19:30 GMT'] + Date: ['Mon, 20 Mar 2017 19:25:50 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['1750'] + content-length: ['1749'] status: {code: 200, message: OK} - request: body: null @@ -124,21 +124,21 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [07ad33ec-0da3-11e7-85f4-f4b7e2e85440] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/restart?api-version=2016-04-30-preview response: body: {string: ''} headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview'] + Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?api-version=2016-04-30-preview'] Cache-Control: [no-cache] Content-Length: ['0'] - Date: ['Mon, 27 Feb 2017 22:19:31 GMT'] + Date: ['Mon, 20 Mar 2017 19:25:52 GMT'] Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?monitor=true&api-version=2016-04-30-preview'] + Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?monitor=true&api-version=2016-04-30-preview'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] @@ -151,27 +151,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [07ad33ec-0da3-11e7-85f4-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"status\": \"InProgress\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:25:52.4633722+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:20:01 GMT'] + Date: ['Mon, 20 Mar 2017 19:26:22 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['133'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -180,27 +180,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [07ad33ec-0da3-11e7-85f4-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"status\": \"InProgress\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:25:52.4633722+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:20:31 GMT'] + Date: ['Mon, 20 Mar 2017 19:26:53 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['133'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -209,27 +209,134 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [07ad33ec-0da3-11e7-85f4-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"status\": \"InProgress\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:25:52.4633722+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:21:02 GMT'] + Date: ['Mon, 20 Mar 2017 19:27:22 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [07ad33ec-0da3-11e7-85f4-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:25:52.4633722+00:00\",\r\ + \n \"endTime\": \"2017-03-20T19:27:28.7749681+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"9361ac49-5b7c-4bb9-a5f1-bf1b57331fc2\"\r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:27:53 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['184'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [50caaa98-0da3-11e7-a457-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/0/instanceView?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.2\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n\ + \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ + 2017-03-20T19:27:23+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:27:22.3191597+00:00\"\r\n\ + \ },\r\n {\r\n \"code\": \"PowerState/starting\",\r\n \"level\"\ + : \"Info\",\r\n \"displayStatus\": \"VM starting\"\r\n }\r\n ]\r\n\ + }"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:27:54 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['776'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [516213dc-0da3-11e7-9e3a-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.2\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n\ + \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ + 2017-03-20T19:27:07+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:27:22.3191597+00:00\"\r\n\ + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \"level\"\ + : \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n\ + }"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:27:54 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['133'] + content-length: ['774'] status: {code: 200, message: OK} - request: body: null @@ -237,28 +344,56 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] + Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/poweroff?api-version=2016-04-30-preview + response: + body: {string: ''} + headers: + Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview'] + Cache-Control: [no-cache] + Content-Length: ['0'] + Date: ['Mon, 20 Mar 2017 19:27:56 GMT'] + Expires: ['-1'] + Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?monitor=true&api-version=2016-04-30-preview'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"status\": \"InProgress\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:21:32 GMT'] + Date: ['Mon, 20 Mar 2017 19:28:26 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['133'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -267,27 +402,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"status\": \"InProgress\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:02 GMT'] + Date: ['Mon, 20 Mar 2017 19:28:56 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['133'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -296,27 +431,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [cf6acb58-fd3a-11e6-8bf8-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9e616d8b-4a1d-4dea-95ec-716045850ac4?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:19:32.537174+00:00\",\r\n\ - \ \"endTime\": \"2017-02-27T22:22:09.9169088+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"9e616d8b-4a1d-4dea-95ec-716045850ac4\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:33 GMT'] + Date: ['Mon, 20 Mar 2017 19:29:27 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['183'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -325,37 +460,56 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3cca8e64-fd3b-11e6-b7fe-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:30+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:21:43.5420547+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:29:57 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:34 GMT'] + Date: ['Mon, 20 Mar 2017 19:30:28 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -364,37 +518,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3d3ce0f0-fd3b-11e6-a0ad-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/2/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:25+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:19:36.802791+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:35 GMT'] + Date: ['Mon, 20 Mar 2017 19:30:58 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['820'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -403,37 +547,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3daeb90c-fd3b-11e6-b391-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:30+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:21:43.5420547+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:35 GMT'] + Date: ['Mon, 20 Mar 2017 19:31:29 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -442,37 +576,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3e14f886-fd3b-11e6-bf29-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/2/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:25+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:19:36.802791+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:22:36 GMT'] + Date: ['Mon, 20 Mar 2017 19:31:59 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['820'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -480,28 +604,29 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3e79b67e-fd3b-11e6-811e-64510658e3b3] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/poweroff?api-version=2016-04-30-preview + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: ''} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/583a35ae-21dc-4e70-83e8-69e4d7d3bdc1?api-version=2016-04-30-preview'] Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Mon, 27 Feb 2017 22:22:36 GMT'] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:32:29 GMT'] Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/583a35ae-21dc-4e70-83e8-69e4d7d3bdc1?monitor=true&api-version=2016-04-30-preview'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} - request: body: null headers: @@ -509,27 +634,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [3e79b67e-fd3b-11e6-811e-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/583a35ae-21dc-4e70-83e8-69e4d7d3bdc1?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:22:38.7292865+00:00\",\r\ - \n \"endTime\": \"2017-02-27T22:23:08.057232+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"583a35ae-21dc-4e70-83e8-69e4d7d3bdc1\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:09 GMT'] + Date: ['Mon, 20 Mar 2017 19:32:59 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['183'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -538,37 +663,56 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [5302c092-fd3b-11e6-aeee-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:30+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:23:08.0259985+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/stopped\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM stopped\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:33:29 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:11 GMT'] + Date: ['Mon, 20 Mar 2017 19:34:00 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -577,37 +721,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [53524d38-fd3b-11e6-8bcf-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/2/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:50+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:22:59.0260523+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/stopped\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM stopped\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:11 GMT'] + Date: ['Mon, 20 Mar 2017 19:34:31 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['134'] status: {code: 200, message: OK} - request: body: null @@ -615,28 +749,203 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [53be0276-fd3b-11e6-b706-64510658e3b3] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/start?api-version=2016-04-30-preview + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: ''} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/5d3fd0d6-770c-4127-bd3d-5296983e67e0?api-version=2016-04-30-preview'] Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Mon, 27 Feb 2017 22:23:12 GMT'] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:35:01 GMT'] Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/5d3fd0d6-770c-4127-bd3d-5296983e67e0?monitor=true&api-version=2016-04-30-preview'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:35:32 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:36:03 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:36:34 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:37:04 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:37:34 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\ + \r\n}"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:38:05 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['134'] + status: {code: 200, message: OK} - request: body: null headers: @@ -644,20 +953,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [53be0276-fd3b-11e6-b706-64510658e3b3] + x-ms-client-request-id: [51fdf636-0da3-11e7-ba53-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5d3fd0d6-770c-4127-bd3d-5296983e67e0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/703d88ee-34ec-4623-bf49-ca0d8906656b?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:14.1822052+00:00\",\r\ - \n \"endTime\": \"2017-02-27T22:23:34.5102152+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"5d3fd0d6-770c-4127-bd3d-5296983e67e0\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:27:57.0836306+00:00\",\r\ + \n \"endTime\": \"2017-03-20T19:38:13.8998318+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"703d88ee-34ec-4623-bf49-ca0d8906656b\"\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:43 GMT'] + Date: ['Mon, 20 Mar 2017 19:38:36 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -673,37 +982,37 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6678cf02-fd3b-11e6-adb7-64510658e3b3] + x-ms-client-request-id: [d00b43ee-0da4-11e7-a62e-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/0/instanceView?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:30+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:23:34.4789535+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.2\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n\ + \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ + 2017-03-20T19:37:49+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:38:13.8685568+00:00\"\r\n\ + \ },\r\n {\r\n \"code\": \"PowerState/stopped\",\r\n \"level\"\ + : \"Info\",\r\n \"displayStatus\": \"VM stopped\"\r\n }\r\n ]\r\n\ + }"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:44 GMT'] + Date: ['Mon, 20 Mar 2017 19:38:37 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['774'] status: {code: 200, message: OK} - request: body: null @@ -712,37 +1021,36 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [66fd8fac-fd3b-11e6-971b-64510658e3b3] + x-ms-client-request-id: [d0a59d42-0da4-11e7-b8e6-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/2/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \ - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"WALinuxAgent-2.0.16\",\r\n \ - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ - ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ - ,\r\n \"message\": \"GuestAgent is running and accepting new configurations.\"\ - ,\r\n \"time\": \"2017-02-27T22:22:50+00:00\"\r\n }\r\n ],\r\ - \n \"extensionHandlers\": []\r\n },\r\n \"statuses\": [\r\n {\r\n\ - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\"\ - ,\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\"\ - : \"2017-02-27T22:23:34.4789535+00:00\"\r\n },\r\n {\r\n \"code\"\ - : \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"VM running\"\r\n }\r\n ]\r\n}"} + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n\ + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not Ready\"\ + ,\r\n \"message\": \"VM Agent is unresponsive.\",\r\n \"time\"\ + : \"2017-03-20T19:38:39+00:00\"\r\n }\r\n ]\r\n },\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\ + ,\r\n \"time\": \"2017-03-20T19:28:08.2942515+00:00\"\r\n },\r\n \ + \ {\r\n \"code\": \"PowerState/stopped\",\r\n \"level\": \"Info\"\ + ,\r\n \"displayStatus\": \"VM stopped\"\r\n }\r\n ]\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:23:45 GMT'] + Date: ['Mon, 20 Mar 2017 19:38:37 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['821'] + content-length: ['758'] status: {code: 200, message: OK} - request: body: null @@ -752,25 +1060,25 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [d1269b68-0da4-11e7-b089-f4b7e2e85440] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/deallocate?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/start?api-version=2016-04-30-preview response: body: {string: ''} headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview'] + Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/cd2769c2-83c1-474e-b000-5f1a4f43263c?api-version=2016-04-30-preview'] Cache-Control: [no-cache] Content-Length: ['0'] - Date: ['Mon, 27 Feb 2017 22:23:46 GMT'] + Date: ['Mon, 20 Mar 2017 19:38:38 GMT'] Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?monitor=true&api-version=2016-04-30-preview'] + Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/cd2769c2-83c1-474e-b000-5f1a4f43263c?monitor=true&api-version=2016-04-30-preview'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -779,27 +1087,105 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [d1269b68-0da4-11e7-b089-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cd2769c2-83c1-474e-b000-5f1a4f43263c?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:47.6820245+00:00\",\r\ - \n \"status\": \"InProgress\",\r\n \"name\": \"de22af17-19ce-4246-a48c-de0f9c7282c0\"\ - \r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:38:39.9876122+00:00\",\r\ + \n \"endTime\": \"2017-03-20T19:38:52.2109156+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"cd2769c2-83c1-474e-b000-5f1a4f43263c\"\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:24:17 GMT'] + Date: ['Mon, 20 Mar 2017 19:39:10 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['134'] + content-length: ['184'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [e4a1a876-0da4-11e7-9a5e-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/0/instanceView?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.2\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n\ + \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ + 2017-03-20T19:37:49+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:38:52.195273+00:00\"\r\n\ + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \"level\"\ + : \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n\ + }"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:39:11 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['773'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [e539ba12-0da4-11e7-939a-f4b7e2e85440] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + response: + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.2\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n\ + \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ + 2017-03-20T19:39:08+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:38:52.195273+00:00\"\r\n\ + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \"level\"\ + : \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n\ + }"} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Date: ['Mon, 20 Mar 2017 19:39:12 GMT'] + Expires: ['-1'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains] + Transfer-Encoding: [chunked] + Vary: [Accept-Encoding] + content-length: ['773'] status: {code: 200, message: OK} - request: body: null @@ -807,21 +1193,49 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] + Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [e5c9886c-0da4-11e7-a1bc-f4b7e2e85440] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A/deallocate?api-version=2016-04-30-preview + response: + body: {string: ''} + headers: + Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?api-version=2016-04-30-preview'] + Cache-Control: [no-cache] + Content-Length: ['0'] + Date: ['Mon, 20 Mar 2017 19:39:13 GMT'] + Expires: ['-1'] + Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?monitor=true&api-version=2016-04-30-preview'] + Pragma: [no-cache] + Server: [Microsoft-HTTPAPI/2.0, 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'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] + accept-language: [en-US] + x-ms-client-request-id: [e5c9886c-0da4-11e7-a1bc-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:47.6820245+00:00\",\r\ - \n \"status\": \"InProgress\",\r\n \"name\": \"de22af17-19ce-4246-a48c-de0f9c7282c0\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:39:14.6411283+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9c12a435-3f26-409e-8240-89bd08647a0c\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:24:47 GMT'] + Date: ['Mon, 20 Mar 2017 19:39:43 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -837,20 +1251,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [e5c9886c-0da4-11e7-a1bc-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:47.6820245+00:00\",\r\ - \n \"status\": \"InProgress\",\r\n \"name\": \"de22af17-19ce-4246-a48c-de0f9c7282c0\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:39:14.6411283+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9c12a435-3f26-409e-8240-89bd08647a0c\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:25:17 GMT'] + Date: ['Mon, 20 Mar 2017 19:40:14 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -866,20 +1280,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [e5c9886c-0da4-11e7-a1bc-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:47.6820245+00:00\",\r\ - \n \"status\": \"InProgress\",\r\n \"name\": \"de22af17-19ce-4246-a48c-de0f9c7282c0\"\ + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:39:14.6411283+00:00\",\r\ + \n \"status\": \"InProgress\",\r\n \"name\": \"9c12a435-3f26-409e-8240-89bd08647a0c\"\ \r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:25:47 GMT'] + Date: ['Mon, 20 Mar 2017 19:40:45 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -895,27 +1309,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [6786b74c-fd3b-11e6-92e5-64510658e3b3] + x-ms-client-request-id: [e5c9886c-0da4-11e7-a1bc-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/de22af17-19ce-4246-a48c-de0f9c7282c0?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9c12a435-3f26-409e-8240-89bd08647a0c?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:23:47.6820245+00:00\",\r\ - \n \"endTime\": \"2017-02-27T22:26:08.7161433+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"de22af17-19ce-4246-a48c-de0f9c7282c0\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:39:14.6411283+00:00\",\r\ + \n \"endTime\": \"2017-03-20T19:40:55.665846+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"9c12a435-3f26-409e-8240-89bd08647a0c\"\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:26:18 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:15 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] Strict-Transport-Security: [max-age=31536000; includeSubDomains] Transfer-Encoding: [chunked] Vary: [Accept-Encoding] - content-length: ['184'] + content-length: ['183'] status: {code: 200, message: OK} - request: body: null @@ -924,25 +1338,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [c30092a8-fd3b-11e6-b7ed-64510658e3b3] + x-ms-client-request-id: [2ee29528-0da5-11e7-8425-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/0/instanceView?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ - \ succeeded\",\r\n \"time\": \"2017-02-27T22:26:08.6848771+00:00\"\r\n\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:40:55.6345745+00:00\"\r\n\ \ },\r\n {\r\n \"code\": \"PowerState/deallocated\",\r\n \"\ level\": \"Info\",\r\n \"displayStatus\": \"VM deallocated\"\r\n }\r\ \n ]\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:26:19 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:16 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -958,25 +1372,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [c36a2f6e-fd3b-11e6-9365-64510658e3b3] + x-ms-client-request-id: [2f691c68-0da5-11e7-b56d-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/2/instanceView?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/1/instanceView?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"placementGroupId\": \"5e52441c-8f24-4869-b567-fe383f018aa4\"\ - ,\r\n \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \ + body: {string: "{\r\n \"placementGroupId\": \"f6cee656-1cfb-4905-af98-5fee8e7db1e0\"\ + ,\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\ - \ succeeded\",\r\n \"time\": \"2017-02-27T22:26:03.6224153+00:00\"\r\n\ + \ succeeded\",\r\n \"time\": \"2017-03-20T19:40:50.5546538+00:00\"\r\n\ \ },\r\n {\r\n \"code\": \"PowerState/deallocated\",\r\n \"\ level\": \"Info\",\r\n \"displayStatus\": \"VM deallocated\"\r\n }\r\ \n ]\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:26:19 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:16 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -993,25 +1407,25 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [c3ca289a-fd3b-11e6-8761-64510658e3b3] + x-ms-client-request-id: [2fe78c26-0da5-11e7-9ad9-f4b7e2e85440] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualmachines/%2A?api-version=2016-04-30-preview response: body: {string: ''} headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/ffec6ada-5cb5-44b8-8d40-7057775fb9b9?api-version=2016-04-30-preview'] + Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/11fbea2c-1e31-4e65-8059-c44f6666089a?api-version=2016-04-30-preview'] Cache-Control: [no-cache] Content-Length: ['0'] - Date: ['Mon, 27 Feb 2017 22:26:21 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:18 GMT'] Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/ffec6ada-5cb5-44b8-8d40-7057775fb9b9?monitor=true&api-version=2016-04-30-preview'] + Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/11fbea2c-1e31-4e65-8059-c44f6666089a?monitor=true&api-version=2016-04-30-preview'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] 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} - request: body: null @@ -1020,20 +1434,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [c3ca289a-fd3b-11e6-8761-64510658e3b3] + x-ms-client-request-id: [2fe78c26-0da5-11e7-9ad9-f4b7e2e85440] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/ffec6ada-5cb5-44b8-8d40-7057775fb9b9?api-version=2016-04-30-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/11fbea2c-1e31-4e65-8059-c44f6666089a?api-version=2016-04-30-preview response: - body: {string: "{\r\n \"startTime\": \"2017-02-27T22:26:22.6848354+00:00\",\r\ - \n \"endTime\": \"2017-02-27T22:26:38.1378675+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"ffec6ada-5cb5-44b8-8d40-7057775fb9b9\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2017-03-20T19:41:19.3305432+00:00\",\r\ + \n \"endTime\": \"2017-03-20T19:41:34.7110856+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"11fbea2c-1e31-4e65-8059-c44f6666089a\"\r\n}"} headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:26:51 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:48 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1049,10 +1463,10 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.4 msrest_azure/0.4.7 - computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] + User-Agent: [python/3.5.0 (Windows-10.0.10586) requests/2.9.1 msrest/0.4.6 msrest_azure/0.4.7 + computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/TEST/2.0.1+dev] accept-language: [en-US] - x-ms-client-request-id: [d71dd758-fd3b-11e6-8048-64510658e3b3] + x-ms-client-request-id: [42c83402-0da5-11e7-8805-f4b7e2e85440] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_vms/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines?api-version=2016-04-30-preview response: @@ -1060,7 +1474,7 @@ interactions: headers: Cache-Control: [no-cache] Content-Type: [application/json; charset=utf-8] - Date: ['Mon, 27 Feb 2017 22:26:53 GMT'] + Date: ['Mon, 20 Mar 2017 19:41:49 GMT'] Expires: ['-1'] Pragma: [no-cache] Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/src/command_modules/azure-cli-vm/tests/test_vm_commands.py b/src/command_modules/azure-cli-vm/tests/test_vm_commands.py index b46da95e899..86cf3b507ad 100644 --- a/src/command_modules/azure-cli-vm/tests/test_vm_commands.py +++ b/src/command_modules/azure-cli-vm/tests/test_vm_commands.py @@ -1656,10 +1656,10 @@ def set_up(self): def test_vmss_vms(self): self.execute() - def _check_vms_power_state(self, expected_power_state): + def _check_vms_power_state(self, *args): for iid in self.instance_ids: - self.cmd('vmss get-instance-view --resource-group {} --name {} --instance-id {}'.format(self.resource_group, self.ss_name, iid), - checks=JMESPathCheck('statuses[1].code', expected_power_state)) + result = self.cmd('vmss get-instance-view --resource-group {} --name {} --instance-id {}'.format(self.resource_group, self.ss_name, iid)) + self.assertTrue(result['statuses'][1]['code'] in args) def body(self): instance_list = self.cmd('vmss list-instances --resource-group {} --name {}'.format(self.resource_group, self.ss_name), checks=[ @@ -1675,12 +1675,11 @@ def body(self): JMESPathCheck('instanceId', str(self.instance_ids[0])) ]) self.cmd('vmss restart --resource-group {} --name {} --instance-ids *'.format(self.resource_group, self.ss_name)) - self._check_vms_power_state('PowerState/running') - self._check_vms_power_state('PowerState/running') + self._check_vms_power_state('PowerState/running', 'PowerState/starting') self.cmd('vmss stop --resource-group {} --name {} --instance-ids *'.format(self.resource_group, self.ss_name)) self._check_vms_power_state('PowerState/stopped') self.cmd('vmss start --resource-group {} --name {} --instance-ids *'.format(self.resource_group, self.ss_name)) - self._check_vms_power_state('PowerState/running') + self._check_vms_power_state('PowerState/running', 'PowerState/starting') self.cmd('vmss deallocate --resource-group {} --name {} --instance-ids *'.format(self.resource_group, self.ss_name)) self._check_vms_power_state('PowerState/deallocated') self.cmd('vmss delete-instances --resource-group {} --name {} --instance-ids *'.format(self.resource_group, self.ss_name))