diff --git a/src/command_modules/azure-cli-vm/HISTORY.rst b/src/command_modules/azure-cli-vm/HISTORY.rst index 742320cbad1..6f0a098297e 100644 --- a/src/command_modules/azure-cli-vm/HISTORY.rst +++ b/src/command_modules/azure-cli-vm/HISTORY.rst @@ -4,6 +4,7 @@ Release History =============== 2.0.24 ++++++ +* vm/vmss: use right term of "userAssignedIdentity" for EMSI * vm: (PREVIEW) support os disk swap * vm: support use image from other subscriptions diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index c617805c43c..a7537059bd6 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py @@ -71,13 +71,12 @@ def _construct_identity_info(identity_scope, identity_role, port, external_identities): - info = { - 'scope': identity_scope or '', - 'role': str(identity_role), # could be DefaultStr, so convert to string - 'port': port - } + info = {'port': port} + if identity_scope: + info['scope'] = identity_scope + info['role'] = str(identity_role) # could be DefaultStr, so convert to string if external_identities: - info['externalIdentities'] = external_identities + info['userAssignedIdentities'] = external_identities return info diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vm_explicit_msi.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vm_explicit_msi.yaml index 83aec83ea2e..51fc8f4cc46 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vm_explicit_msi.yaml +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_vm_explicit_msi.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode '{"location": "westcentralus", "tags": {"use": "az-test"}}' + body: '{"location": "westcentralus", "tags": {"use": "az-test"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -8,19 +8,19 @@ interactions: Connection: [keep-alive] Content-Length: ['57'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['225'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:34:18 GMT'] + date: ['Sat, 16 Dec 2017 00:57:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -34,26 +34,26 @@ interactions: CommandName: [identity create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['225'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:34:21 GMT'] + date: ['Sat, 16 Dec 2017 00:57:14 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"location": "westcentralus"}' + body: '{"location": "westcentralus"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -61,25 +61,24 @@ interactions: Connection: [keep-alive] Content-Length: ['29'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 azure-mgmt-msi/0.1.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 azure-mgmt-msi/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2015-08-31-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westcentralus","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"b26e0da7-765e-45ce-8554-0e6d5528d653","clientId":"b2986d5c-e63d-4bca-a924-9f440a346d8f","clientSecretUrl":"https://control-westcentralus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1/credentials?tid=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a&oid=b26e0da7-765e-45ce-8554-0e6d5528d653&aid=b2986d5c-e63d-4bca-a924-9f440a346d8f"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westcentralus","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"00fc8402-9894-4ee6-a6f0-5660a47f60d7","clientId":"91813dd1-3a6f-43f2-a984-2b75ed90a4a2","clientSecretUrl":"https://control-westcentralus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1/credentials?tid=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a&oid=00fc8402-9894-4ee6-a6f0-5660a47f60d7&aid=91813dd1-3a6f-43f2-a984-2b75ed90a4a2"}}'} headers: cache-control: [no-cache] content-length: ['789'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:34:27 GMT'] + date: ['Sat, 16 Dec 2017 00:57:18 GMT'] expires: ['-1'] location: [/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1188'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -89,26 +88,26 @@ interactions: CommandName: [identity create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['225'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:34:29 GMT'] + date: ['Sat, 16 Dec 2017 00:57:17 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"location": "westcentralus"}' + body: '{"location": "westcentralus"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -116,19 +115,18 @@ interactions: Connection: [keep-alive] Content-Length: ['29'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 azure-mgmt-msi/0.1.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 azure-mgmt-msi/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2015-08-31-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westcentralus","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"258e10b6-fc9d-4673-b4e3-0bcc53fac48a","clientId":"376b001d-9a39-4e8f-9ff4-2c0ccd19cb98","clientSecretUrl":"https://control-westcentralus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2/credentials?tid=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a&oid=258e10b6-fc9d-4673-b4e3-0bcc53fac48a&aid=376b001d-9a39-4e8f-9ff4-2c0ccd19cb98"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westcentralus","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"4c0fc009-f501-4eab-962e-f2dbbe2c836c","clientId":"d4b0926b-ad79-4dee-8f9d-1efa27cdd543","clientSecretUrl":"https://control-westcentralus.identity.azure.net/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2/credentials?tid=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a&oid=4c0fc009-f501-4eab-962e-f2dbbe2c836c&aid=d4b0926b-ad79-4dee-8f9d-1efa27cdd543"}}'} headers: cache-control: [no-cache] content-length: ['789'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:34:51 GMT'] + date: ['Sat, 16 Dec 2017 00:57:20 GMT'] expires: ['-1'] location: [/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2] pragma: [no-cache] @@ -144,19 +142,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['225'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:02 GMT'] + date: ['Sat, 16 Dec 2017 00:57:21 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -167,11 +165,11 @@ interactions: headers: Connection: [close] Host: [raw.githubusercontent.com] - User-Agent: [Python-urllib/2.7] + User-Agent: [Python-urllib/3.5] method: GET uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json response: - body: {string: !!python/unicode "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ + body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ @@ -214,9 +212,9 @@ interactions: content-length: ['2235'] content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] content-type: [text/plain; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:06 GMT'] + date: ['Sat, 16 Dec 2017 00:57:22 GMT'] etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] - expires: ['Fri, 22 Dec 2017 15:40:06 GMT'] + expires: ['Sat, 16 Dec 2017 01:02:22 GMT'] source-age: ['0'] strict-transport-security: [max-age=31536000] vary: ['Authorization,Accept-Encoding'] @@ -224,12 +222,12 @@ interactions: x-cache: [MISS] x-cache-hits: ['0'] x-content-type-options: [nosniff] - x-fastly-request-id: [a004c24dc4c2caf09a4bc3ffe04c91ca6d52ff35] + x-fastly-request-id: [637e3a7b155d808c185eeb1662e1f18fb60965bb] x-frame-options: [deny] x-geo-block-list: [''] - x-github-request-id: ['83AE:5F84:73872D:7B18E4:5A3D262A'] - x-served-by: [cache-sea1034-SEA] - x-timer: ['S1513956907.911989,VS0,VE28'] + x-github-request-id: ['C3E6:2BF8F:1E5AE4:20AE32:5A346F72'] + x-served-by: [cache-sea1041-SEA] + x-timer: ['S1513385843.827829,VS0,VE37'] x-xss-protection: [1; mode=block] status: {code: 200, message: OK} - request: @@ -240,22 +238,412 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 response: - body: {string: !!python/unicode '{"value":[]}'} + body: {string: '{"value":[]}'} headers: cache-control: [no-cache] content-length: ['12'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:11 GMT'] + date: ['Sat, 16 Dec 2017 00:57:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"parameters": {}, "mode": "Incremental", "template": + {"variables": {}, "resources": [{"name": "vm2VNET", "location": "westcentralus", + "dependsOn": [], "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, + "subnets": [{"name": "vm2Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}, + "tags": {}, "type": "Microsoft.Network/virtualNetworks", "apiVersion": "2015-06-15"}, + {"name": "vm2NSG", "location": "westcentralus", "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"direction": + "Inbound", "priority": 1000, "sourceAddressPrefix": "*", "sourcePortRange": + "*", "destinationPortRange": "22", "access": "Allow", "protocol": "Tcp", "destinationAddressPrefix": + "*"}}]}, "tags": {}, "type": "Microsoft.Network/networkSecurityGroups", "apiVersion": + "2015-06-15"}, {"name": "vm2PublicIP", "location": "westcentralus", "dependsOn": + [], "properties": {"publicIPAllocationMethod": "dynamic"}, "tags": {}, "apiVersion": + "2017-11-01", "type": "Microsoft.Network/publicIPAddresses"}, {"name": "vm2VMNic", + "location": "westcentralus", "dependsOn": ["Microsoft.Network/virtualNetworks/vm2VNET", + "Microsoft.Network/networkSecurityGroups/vm2NSG", "Microsoft.Network/publicIpAddresses/vm2PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm2", "properties": {"subnet": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET/subnets/vm2Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"}, + "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"}}, + "tags": {}, "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces"}, + {"name": "vm2/ManagedIdentityExtensionForLinux", "location": "westcentralus", + "dependsOn": ["Microsoft.Compute/virtualMachines/vm2"], "properties": {"autoUpgradeMinorVersion": + true, "settings": {"port": 50342}, "publisher": "Microsoft.ManagedIdentity", + "typeHandlerVersion": "1.0", "type": "ManagedIdentityExtensionForLinux"}, "type": + "Microsoft.Compute/virtualMachines/extensions", "apiVersion": "2017-12-01"}, + {"name": "vm2", "location": "westcentralus", "dependsOn": ["Microsoft.Network/networkInterfaces/vm2VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "osProfile": + {"computerName": "vm2", "adminUsername": "yugangw", "linuxConfiguration": {"ssh": + {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH + yugangw@YUGANGW1\\n", "path": "/home/yugangw/.ssh/authorized_keys"}]}, "disablePasswordAuthentication": + true}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]}, + "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": + null, "managedDisk": {"storageAccountType": null}}, "imageReference": {"sku": + "16.04-LTS", "version": "latest", "publisher": "Canonical", "offer": "UbuntuServer"}}}, + "tags": {}, "apiVersion": "2017-12-01", "identity": {"identityIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"], + "type": "UserAssigned"}, "type": "Microsoft.Compute/virtualMachines"}], "$schema": + "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "outputs": {}, "parameters": {}, "contentVersion": "1.0.0.0"}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Length: ['4108'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_S4Gz9jIzj5xwuNnclWfxoBnzbus6BGYJ","name":"vm_deploy_S4Gz9jIzj5xwuNnclWfxoBnzbus6BGYJ","properties":{"templateHash":"10053343261138304156","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-12-16T00:57:25.6947452Z","duration":"PT0.7231342S","correlationId":"b96829a8-e9e2-4385-b410-5a1724147072","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westcentralus"]},{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm2VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm2/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_S4Gz9jIzj5xwuNnclWfxoBnzbus6BGYJ/operationStatuses/08586882210405060290?api-version=2017-05-10'] + cache-control: [no-cache] + content-length: ['2964'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:57:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:57:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:58:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:58:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:59:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 00:59:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882210405060290?api-version=2017-05-10 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_S4Gz9jIzj5xwuNnclWfxoBnzbus6BGYJ","name":"vm_deploy_S4Gz9jIzj5xwuNnclWfxoBnzbus6BGYJ","properties":{"templateHash":"10053343261138304156","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-12-16T01:00:26.0482711Z","duration":"PT3M1.0766601S","correlationId":"b96829a8-e9e2-4385-b410-5a1724147072","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westcentralus"]},{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm2VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm2/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3944'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-12-01&$expand=instanceView + response: + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a555e5be-7b58-4e88-b4da-0f410e864fbb\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm2_OsDisk_1_d1344c2f467445f0bd659e856b3c80ce\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_d1344c2f467445f0bd659e856b3c80ce\"\ + \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ + : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ + : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ + : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\ + }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\ + : {\r\n \"computerName\": \"vm2\",\r\n \"osName\": \"ubuntu\",\r\ + \n \"osVersion\": \"16.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\"\ + : \"2.2.19\",\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-12-16T01:00:08+00:00\"\ + \r\n }\r\n ],\r\n \"extensionHandlers\": [\r\n \ + \ {\r\n \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ + ,\r\n \"typeHandlerVersion\": \"1.0.0.8\",\r\n \"status\"\ + : {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ + ,\r\n \"message\": \"Plugin enabled\"\r\n }\r\n \ + \ }\r\n ]\r\n },\r\n \"disks\": [\r\n {\r\n\ + \ \"name\": \"vm2_OsDisk_1_d1344c2f467445f0bd659e856b3c80ce\",\r\n\ + \ \"statuses\": [\r\n {\r\n \"code\": \"\ + ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \ + \ \"displayStatus\": \"Provisioning succeeded\",\r\n \ + \ \"time\": \"2017-12-16T00:57:44.8860123+00:00\"\r\n }\r\n\ + \ ]\r\n }\r\n ],\r\n \"extensions\": [\r\n \ + \ {\r\n \"name\": \"ManagedIdentityExtensionForLinux\",\r\n \ + \ \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ + ,\r\n \"typeHandlerVersion\": \"1.0.0.8\",\r\n \"statuses\"\ + : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ + ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ + : \"Provisioning succeeded\",\r\n \"message\": \"Successfully\ + \ started managed identity extension service. 2017-12-16 01:00:07.836559703\ + \ +0000 UTC.\"\r\n }\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-12-16T01:00:14.8895899+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 }\r\n },\r\n \"resources\": [\r\n {\r\ + \n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ + ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"\ + typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\ + \n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\ + : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\ + ,\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux\"\ + ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ + \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ + westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ + \ \"UserAssigned\",\r\n \"identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ + \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\ + ,\r\n \"name\": \"vm2\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['5280'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4793,Microsoft.Compute/LowCostGet30Min;38393'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic?api-version=2017-11-01 + response: + body: {string: "{\r\n \"name\": \"vm2VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\ + ,\r\n \"etag\": \"W/\\\"f90f67dc-fbe4-4cd7-ac20-174ca14308c9\\\"\",\r\n \ + \ \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":\ + \ \"673920c8-4002-4ddc-a4f6-9bed8f39a96e\",\r\n \"ipConfigurations\": [\r\ + \n {\r\n \"name\": \"ipconfigvm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\ + ,\r\n \"etag\": \"W/\\\"f90f67dc-fbe4-4cd7-ac20-174ca14308c9\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\ + \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET/subnets/vm2Subnet\"\ + \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"4maimh2e4tpefecdtfdqsjwauc.yx.internal.cloudapp.net\"\ + \r\n },\r\n \"macAddress\": \"00-0D-3A-F8-2E-89\",\r\n \"enableAcceleratedNetworking\"\ + : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG\"\ + \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\ + \r\n },\r\n \"virtualNetworkTapProvisioningState\": \"NotProvisioned\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2233'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:36 GMT'] + etag: [W/"f90f67dc-fbe4-4cd7-ac20-174ca14308c9"] 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] status: {code: 200, message: OK} - request: @@ -266,20 +654,198 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 authorizationmanagementclient/0.30.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP?api-version=2017-11-01 + response: + body: {string: "{\r\n \"name\": \"vm2PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\ + ,\r\n \"etag\": \"W/\\\"3745bf80-1d9c-4fca-99c8-d0d1f5cf1665\\\"\",\r\n \ + \ \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":\ + \ \"a0d2d008-ffb8-4dba-861b-7c68c5b032af\",\r\n \"ipAddress\": \"52.161.90.2\"\ + ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\ + \n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\ + \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\ + \n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['892'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:37 GMT'] + etag: [W/"3745bf80-1d9c-4fca-99c8-d0d1f5cf1665"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['225'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Connection: [close] + Host: [raw.githubusercontent.com] + User-Agent: [Python-urllib/3.5] + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ + ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\ + :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\ + type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\ + CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\ + :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\ + \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\ + ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \ + \ \"version\":\"latest\"\n },\n \"Debian\":{\n\ + \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\ + ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \ + \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\ + ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\ + ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\ + \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\ + \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \ + \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \ + \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \ + \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \ + \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\ + ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\ + \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\ + \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \ + \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\ + :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\ + offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \ + \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\ + }\n"} + headers: + accept-ranges: [bytes] + access-control-allow-origin: ['*'] + cache-control: [max-age=300] + connection: [close] + content-length: ['2235'] + content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox] + content-type: [text/plain; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:38 GMT'] + etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"'] + expires: ['Sat, 16 Dec 2017 01:05:38 GMT'] + source-age: ['289'] + strict-transport-security: [max-age=31536000] + vary: ['Authorization,Accept-Encoding'] + via: [1.1 varnish] + x-cache: [HIT] + x-cache-hits: ['1'] + x-content-type-options: [nosniff] + x-fastly-request-id: [5dec774bde80ff9b5cb52ec6bd213dc629ff2034] + x-frame-options: [deny] + x-geo-block-list: [''] + x-github-request-id: ['FA56:23CD:984E0:A4D97:5A346F15'] + x-served-by: [cache-mdw17334-MDW] + x-timer: ['S1513386038.216909,VS0,VE1'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm2VNET\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET\"\ + ,\r\n \"etag\": \"W/\\\"6b033e74-6339-46b8-9a7e-e4b051187327\\\"\",\r\ + \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\ + : \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\"\ + : \"1f8600f3-f484-42de-9043-99470926c0a2\",\r\n \"addressSpace\": {\r\ + \n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n \ + \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \ + \ \"name\": \"vm2Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET/subnets/vm2Subnet\"\ + ,\r\n \"etag\": \"W/\\\"6b033e74-6339-46b8-9a7e-e4b051187327\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\ + \ \"ipConfigurations\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\ + \ ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1526'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:00:38 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 authorizationmanagementclient/0.30.0 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleDefinitions?api-version=2015-07-01&$filter=roleName%20eq%20%27reader%27 response: - body: {string: !!python/unicode '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets + body: {string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets you view everything, but not make any changes.","assignableScopes":["/"],"permissions":[{"actions":["*/read"],"notActions":[]}],"createdOn":"0001-01-01T08:00:00.0000000Z","updatedOn":"2016-08-19T00:03:56.0652623Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","type":"Microsoft.Authorization/roleDefinitions","name":"acdd72a7-3385-48ef-bd42-f606fba81ae7"}]}'} headers: cache-control: [no-cache] content-length: ['578'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:15 GMT'] + date: ['Sat, 16 Dec 2017 01:00:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-IIS/8.5] @@ -292,75 +858,69 @@ interactions: x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"properties": {"mode": "Incremental", "parameters": {}, - "template": {"parameters": {}, "outputs": {}, "variables": {}, "contentVersion": - "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "resources": [{"name": "vm1VNET", "tags": {}, "apiVersion": "2015-06-15", "location": - "westcentralus", "dependsOn": [], "type": "Microsoft.Network/virtualNetworks", - "properties": {"subnets": [{"name": "vm1Subnet", "properties": {"addressPrefix": - "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}}, {"name": - "vm1NSG", "tags": {}, "apiVersion": "2015-06-15", "location": "westcentralus", - "dependsOn": [], "type": "Microsoft.Network/networkSecurityGroups", "properties": - {"securityRules": [{"name": "default-allow-ssh", "properties": {"access": "Allow", - "direction": "Inbound", "protocol": "Tcp", "priority": 1000, "destinationPortRange": - "22", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "sourcePortRange": - "*"}}]}}, {"name": "vm1PublicIP", "tags": {}, "apiVersion": "2017-11-01", "location": - "westcentralus", "dependsOn": [], "type": "Microsoft.Network/publicIPAddresses", - "properties": {"publicIPAllocationMethod": "dynamic"}}, {"name": "vm1VMNic", - "tags": {}, "apiVersion": "2015-06-15", "location": "westcentralus", "dependsOn": - ["Microsoft.Network/virtualNetworks/vm1VNET", "Microsoft.Network/networkSecurityGroups/vm1NSG", - "Microsoft.Network/publicIpAddresses/vm1PublicIP"], "type": "Microsoft.Network/networkInterfaces", - "properties": {"networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}, - "ipConfigurations": [{"name": "ipconfigvm1", "properties": {"subnet": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, - "privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}}}]}}, - {"name": "93429cde-f25b-4f14-acdc-1265f404609e", "type": "Microsoft.Authorization/roleAssignments", - "properties": {"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", - "roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "[reference(''/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default'', - ''2015-08-31-PREVIEW'').principalId]"}, "apiVersion": "2015-07-01", "dependsOn": - ["Microsoft.Compute/virtualMachines/vm1"]}, {"name": "vm1/ManagedIdentityExtensionForLinux", - "apiVersion": "2017-12-01", "location": "westcentralus", "dependsOn": ["93429cde-f25b-4f14-acdc-1265f404609e"], - "type": "Microsoft.Compute/virtualMachines/extensions", "properties": {"publisher": - "Microsoft.ManagedIdentity", "typeHandlerVersion": "1.0", "settings": {"port": - 50342}, "type": "ManagedIdentityExtensionForLinux", "autoUpgradeMinorVersion": - true}}, {"name": "vm1", "tags": {}, "apiVersion": "2017-12-01", "location": - "westcentralus", "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"], - "type": "Microsoft.Compute/virtualMachines", "properties": {"hardwareProfile": - {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"imageReference": {"sku": - "16.04-LTS", "publisher": "Canonical", "version": "latest", "offer": "UbuntuServer"}, - "osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, - "name": null, "createOption": "fromImage"}}, "osProfile": {"adminUsername": - "travisprescott", "computerName": "vm1", "linuxConfiguration": {"ssh": {"publicKeys": - [{"path": "/home/travisprescott/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ== - trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}}, - "identity": {"type": "SystemAssigned,UserAssigned", "identityIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"]}}]}}}' + body: 'b''{"properties": {"parameters": {}, "mode": "Incremental", "template": + {"variables": {}, "resources": [{"name": "vm1NSG", "location": "westcentralus", + "dependsOn": [], "properties": {"securityRules": [{"name": "default-allow-ssh", + "properties": {"direction": "Inbound", "priority": 1000, "sourceAddressPrefix": + "*", "sourcePortRange": "*", "destinationPortRange": "22", "access": "Allow", + "protocol": "Tcp", "destinationAddressPrefix": "*"}}]}, "tags": {}, "type": + "Microsoft.Network/networkSecurityGroups", "apiVersion": "2015-06-15"}, {"name": + "vm1PublicIP", "location": "westcentralus", "dependsOn": [], "properties": {"publicIPAllocationMethod": + "dynamic"}, "tags": {}, "apiVersion": "2017-11-01", "type": "Microsoft.Network/publicIPAddresses"}, + {"name": "vm1VMNic", "location": "westcentralus", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm1NSG", + "Microsoft.Network/publicIpAddresses/vm1PublicIP"], "properties": {"ipConfigurations": + [{"name": "ipconfigvm1", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET/subnets/vm2Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}, + "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}, + "tags": {}, "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces"}, + {"name": "95bafa2c-b44a-464b-8ced-7992bb582e29", "dependsOn": ["Microsoft.Compute/virtualMachines/vm1"], + "apiVersion": "2015-07-01", "properties": {"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", + "principalId": "[reference(\''/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default\'', + \''2015-08-31-PREVIEW\'').principalId]", "roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7"}, + "type": "Microsoft.Authorization/roleAssignments"}, {"name": "vm1/ManagedIdentityExtensionForLinux", + "location": "westcentralus", "dependsOn": ["95bafa2c-b44a-464b-8ced-7992bb582e29"], + "properties": {"autoUpgradeMinorVersion": true, "settings": {"port": 50342}, + "publisher": "Microsoft.ManagedIdentity", "typeHandlerVersion": "1.0", "type": + "ManagedIdentityExtensionForLinux"}, "type": "Microsoft.Compute/virtualMachines/extensions", + "apiVersion": "2017-12-01"}, {"name": "vm1", "location": "westcentralus", "dependsOn": + ["Microsoft.Network/networkInterfaces/vm1VMNic"], "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "osProfile": {"computerName": "vm1", "adminUsername": + "yugangw", "linuxConfiguration": {"ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH + yugangw@YUGANGW1\\n", "path": "/home/yugangw/.ssh/authorized_keys"}]}, "disablePasswordAuthentication": + true}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": + null, "managedDisk": {"storageAccountType": null}}, "imageReference": {"sku": + "16.04-LTS", "version": "latest", "publisher": "Canonical", "offer": "UbuntuServer"}}}, + "tags": {}, "apiVersion": "2017-12-01", "identity": {"identityIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"], + "type": "SystemAssigned,UserAssigned"}, "type": "Microsoft.Compute/virtualMachines"}], + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "outputs": {}, "parameters": {}, "contentVersion": "1.0.0.0"}}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [vm create] Connection: [keep-alive] - Content-Length: ['5214'] + Content-Length: ['4492'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ttx8kPvGxhS6eaO9CM5QcYUgTGctyW04","name":"vm_deploy_ttx8kPvGxhS6eaO9CM5QcYUgTGctyW04","properties":{"templateHash":"17483172322013039240","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-12-22T15:35:22.8292609Z","duration":"PT0.7928072S","correlationId":"f5c76c99-7d91-400d-aa48-d9b20e9cc14c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westcentralus"]},{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[null]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default","resourceType":"Microsoft.Compute/virtualMachines/providers/Identities","resourceName":"vm1/Microsoft.ManagedIdentity/default","apiVersion":"2015-08-31-PREVIEW"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/93429cde-f25b-4f14-acdc-1265f404609e","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"93429cde-f25b-4f14-acdc-1265f404609e"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/93429cde-f25b-4f14-acdc-1265f404609e","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"93429cde-f25b-4f14-acdc-1265f404609e"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_GLgSgnANheQYrkjNz7gJGQNfJwFcNXXH","name":"vm_deploy_GLgSgnANheQYrkjNz7gJGQNfJwFcNXXH","properties":{"templateHash":"283660350181101690","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-12-16T01:00:41.5210155Z","duration":"PT1.1173999S","correlationId":"3f6e9481-0622-4692-a295-30d55070a144","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[null]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default","resourceType":"Microsoft.Compute/virtualMachines/providers/Identities","resourceName":"vm1/Microsoft.ManagedIdentity/default","apiVersion":"2015-08-31-PREVIEW"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/95bafa2c-b44a-464b-8ced-7992bb582e29","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"95bafa2c-b44a-464b-8ced-7992bb582e29"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/95bafa2c-b44a-464b-8ced-7992bb582e29","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"95bafa2c-b44a-464b-8ced-7992bb582e29"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ttx8kPvGxhS6eaO9CM5QcYUgTGctyW04/operationStatuses/08586876499634411980?api-version=2017-05-10'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_GLgSgnANheQYrkjNz7gJGQNfJwFcNXXH/operationStatuses/08586882208450740257?api-version=2017-05-10'] cache-control: [no-cache] - content-length: ['4041'] + content-length: ['3749'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:22 GMT'] + date: ['Sat, 16 Dec 2017 01:00:41 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1184'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -370,19 +930,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586876499634411980?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"status":"Running"}'} + body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:35:57 GMT'] + date: ['Sat, 16 Dec 2017 01:01:12 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -396,19 +956,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586876499634411980?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"status":"Running"}'} + body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:36:37 GMT'] + date: ['Sat, 16 Dec 2017 01:01:42 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -422,19 +982,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586876499634411980?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"status":"Running"}'} + body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:37:14 GMT'] + date: ['Sat, 16 Dec 2017 01:02:12 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -448,19 +1008,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586876499634411980?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"status":"Running"}'} + body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:38:04 GMT'] + date: ['Sat, 16 Dec 2017 01:02:43 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -474,19 +1034,123 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586876499634411980?api-version=2017-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:03:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:03:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:04:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Dec 2017 01:04:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [vm create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586882208450740257?api-version=2017-05-10 + response: + body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:38:47 GMT'] + date: ['Sat, 16 Dec 2017 01:05:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -500,19 +1164,19 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ttx8kPvGxhS6eaO9CM5QcYUgTGctyW04","name":"vm_deploy_ttx8kPvGxhS6eaO9CM5QcYUgTGctyW04","properties":{"templateHash":"17483172322013039240","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-12-22T15:38:32.644871Z","duration":"PT3M10.6084173S","correlationId":"f5c76c99-7d91-400d-aa48-d9b20e9cc14c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westcentralus"]},{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[null]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default","resourceType":"Microsoft.Compute/virtualMachines/providers/Identities","resourceName":"vm1/Microsoft.ManagedIdentity/default","apiVersion":"2015-08-31-PREVIEW"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/93429cde-f25b-4f14-acdc-1265f404609e","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"93429cde-f25b-4f14-acdc-1265f404609e"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/93429cde-f25b-4f14-acdc-1265f404609e","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"93429cde-f25b-4f14-acdc-1265f404609e"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/93429cde-f25b-4f14-acdc-1265f404609e"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_GLgSgnANheQYrkjNz7gJGQNfJwFcNXXH","name":"vm_deploy_GLgSgnANheQYrkjNz7gJGQNfJwFcNXXH","properties":{"templateHash":"283660350181101690","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-12-16T01:04:51.8551809Z","duration":"PT4M11.4515653S","correlationId":"3f6e9481-0622-4692-a295-30d55070a144","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westcentralus"]},{"resourceType":"publicIPAddresses","locations":["westcentralus"]},{"resourceType":"networkInterfaces","locations":["westcentralus"]}]},{"namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[null]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westcentralus"]},{"resourceType":"virtualMachines","locations":["westcentralus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.ManagedIdentity/Identities/default","resourceType":"Microsoft.Compute/virtualMachines/providers/Identities","resourceName":"vm1/Microsoft.ManagedIdentity/default","apiVersion":"2015-08-31-PREVIEW"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/95bafa2c-b44a-464b-8ced-7992bb582e29","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"95bafa2c-b44a-464b-8ced-7992bb582e29"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/95bafa2c-b44a-464b-8ced-7992bb582e29","resourceType":"Microsoft.Authorization/roleAssignments","resourceName":"95bafa2c-b44a-464b-8ced-7992bb582e29"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Authorization/roleAssignments/95bafa2c-b44a-464b-8ced-7992bb582e29"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}]}}'} headers: cache-control: [no-cache] - content-length: ['5205'] + content-length: ['4765'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:38:52 GMT'] + date: ['Sat, 16 Dec 2017 01:05:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -526,32 +1190,32 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01&$expand=instanceView response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\ : {\r\n \"computerName\": \"vm1\",\r\n \"osName\": \"ubuntu\",\r\ @@ -559,7 +1223,7 @@ interactions: : \"2.2.19\",\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-12-22T15:38:53+00:00\"\ + : \"Guest Agent is running\",\r\n \"time\": \"2017-12-16T01:05:18+00:00\"\ \r\n }\r\n ],\r\n \"extensionHandlers\": [\r\n \ \ {\r\n \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ ,\r\n \"typeHandlerVersion\": \"1.0.0.8\",\r\n \"status\"\ @@ -567,11 +1231,11 @@ interactions: \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ ,\r\n \"message\": \"Plugin enabled\"\r\n }\r\n \ \ }\r\n ]\r\n },\r\n \"disks\": [\r\n {\r\n\ - \ \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\",\r\n\ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n\ \ \"statuses\": [\r\n {\r\n \"code\": \"\ ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \ \ \"displayStatus\": \"Provisioning succeeded\",\r\n \ - \ \"time\": \"2017-12-22T15:35:57.3389512+00:00\"\r\n }\r\n\ + \ \"time\": \"2017-12-16T01:01:00.5458738+00:00\"\r\n }\r\n\ \ ]\r\n }\r\n ],\r\n \"extensions\": [\r\n \ \ {\r\n \"name\": \"ManagedIdentityExtensionForLinux\",\r\n \ \ \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ @@ -579,11 +1243,11 @@ interactions: : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ : \"Provisioning succeeded\",\r\n \"message\": \"Successfully\ - \ started managed identity extension service. 2017-12-22 15:38:21.940297133\ + \ started managed identity extension service. 2017-12-16 01:04:38.872634516\ \ +0000 UTC.\"\r\n }\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-12-22T15:38:24.7930266+00:00\"\ + \ succeeded\",\r\n \"time\": \"2017-12-16T01:04:38.6262739+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 }\r\n },\r\n \"resources\": [\r\n {\r\ @@ -596,23 +1260,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['5777'] + content-length: ['5413'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:38:55 GMT'] + date: ['Sat, 16 Dec 2017 01:05:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4792,Microsoft.Compute/LowCostGet30Min;38372'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4794,Microsoft.Compute/LowCostGet30Min;38386'] status: {code: 200, message: OK} - request: body: null @@ -622,31 +1286,29 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-11-01 response: - body: {string: !!python/unicode "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ - ,\r\n \"etag\": \"W/\\\"b8cfdf08-1661-4ca9-a7ca-a24b9421f861\\\"\",\r\n \ + body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ + ,\r\n \"etag\": \"W/\\\"05cf395e-3013-4cef-a985-f98fabd855cb\\\"\",\r\n \ \ \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":\ - \ \"f3f97330-d9aa-41a9-a007-6a33ab1da2cf\",\r\n \"ipConfigurations\": [\r\ + \ \"8936eae4-8018-4353-8da1-9654fa7269bb\",\r\n \"ipConfigurations\": [\r\ \n {\r\n \"name\": \"ipconfigvm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\ - ,\r\n \"etag\": \"W/\\\"b8cfdf08-1661-4ca9-a7ca-a24b9421f861\\\"\"\ + ,\r\n \"etag\": \"W/\\\"05cf395e-3013-4cef-a985-f98fabd855cb\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ + ,\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\"\ : \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\ - \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\ + \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm2VNET/subnets/vm2Subnet\"\ \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ - internalDomainNameSuffix\": \"zscroogc3xqunn2dutxmwxf0dh.yx.internal.cloudapp.net\"\ - \r\n },\r\n \"macAddress\": \"00-0D-3A-F8-AC-29\",\r\n \"enableAcceleratedNetworking\"\ + internalDomainNameSuffix\": \"4maimh2e4tpefecdtfdqsjwauc.yx.internal.cloudapp.net\"\ + \r\n },\r\n \"macAddress\": \"00-0D-3A-F8-78-0C\",\r\n \"enableAcceleratedNetworking\"\ : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\ \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \ @@ -657,8 +1319,8 @@ interactions: cache-control: [no-cache] content-length: ['2233'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:38:58 GMT'] - etag: [W/"b8cfdf08-1661-4ca9-a7ca-a24b9421f861"] + date: ['Sat, 16 Dec 2017 01:05:20 GMT'] + etag: [W/"05cf395e-3013-4cef-a985-f98fabd855cb"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -674,19 +1336,17 @@ interactions: CommandName: [vm create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 networkmanagementclient/1.7.0 Azure-SDK-For-Python AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-11-01 response: - body: {string: !!python/unicode "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\ - ,\r\n \"etag\": \"W/\\\"edae06c9-1717-4f33-b4ff-e3fadcbc5f2f\\\"\",\r\n \ + body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\ + ,\r\n \"etag\": \"W/\\\"fb3407d3-f65a-4ec1-8491-271f21a9f869\\\"\",\r\n \ \ \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":\ - \ \"b437403d-891b-460d-8005-ff40eb791426\",\r\n \"ipAddress\": \"52.161.102.131\"\ + \ \"4c2ac2b4-62dd-45f1-84ae-f63227f2fd55\",\r\n \"ipAddress\": \"52.161.101.81\"\ ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ : \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\ \n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\ @@ -694,10 +1354,10 @@ interactions: \n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['895'] + content-length: ['894'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:39:06 GMT'] - etag: [W/"edae06c9-1717-4f33-b4ff-e3fadcbc5f2f"] + date: ['Sat, 16 Dec 2017 01:05:21 GMT'] + etag: [W/"fb3407d3-f65a-4ec1-8491-271f21a9f869"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -713,32 +1373,32 @@ interactions: CommandName: [vm show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -750,23 +1410,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3570'] + content-length: ['3206'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:39:23 GMT'] + date: ['Sat, 16 Dec 2017 01:05: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] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4791,Microsoft.Compute/LowCostGet30Min;38371'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4793,Microsoft.Compute/LowCostGet30Min;38385'] status: {code: 200, message: OK} - request: body: null @@ -776,32 +1436,32 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -813,72 +1473,73 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3570'] + content-length: ['3206'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:39:35 GMT'] + date: ['Sat, 16 Dec 2017 01:05:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4790,Microsoft.Compute/LowCostGet30Min;38370'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4795,Microsoft.Compute/LowCostGet30Min;38384'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"location": "westcentralus", "properties": {"storageProfile": - {"imageReference": {"sku": "16.04-LTS", "publisher": "Canonical", "version": - "latest", "offer": "UbuntuServer"}, "osDisk": {"diskSizeGB": 30, "createOption": - "FromImage", "name": "vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347", "caching": - "ReadWrite", "managedDisk": {"storageAccountType": "Premium_LRS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347"}, - "osType": "Linux"}, "dataDisks": []}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, - "osProfile": {"secrets": [], "adminUsername": "travisprescott", "computerName": - "vm1", "linuxConfiguration": {"ssh": {"publicKeys": [{"path": "/home/travisprescott/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ== - trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}}, - "identity": {"type": "SystemAssigned, UserAssigned", "identityIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"]}, - "tags": {}}' + body: 'b''{"location": "westcentralus", "tags": {}, "properties": {"storageProfile": + {"dataDisks": [], "osDisk": {"name": "vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e", + "osType": "Linux", "managedDisk": {"storageAccountType": "Premium_LRS", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e"}, + "createOption": "FromImage", "diskSizeGB": 30, "caching": "ReadWrite"}, "imageReference": + {"sku": "16.04-LTS", "version": "latest", "publisher": "Canonical", "offer": + "UbuntuServer"}}, "osProfile": {"secrets": [], "computerName": "vm1", "adminUsername": + "yugangw", "linuxConfiguration": {"ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH + yugangw@YUGANGW1\\n", "path": "/home/yugangw/.ssh/authorized_keys"}]}, "disablePasswordAuthentication": + true}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "hardwareProfile": {"vmSize": "Standard_DS1_v2"}}, "identity": {"identityIds": + ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"], + "type": "SystemAssigned, UserAssigned"}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [vm assign-identity] Connection: [keep-alive] - Content-Length: ['2217'] + Content-Length: ['1853'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -890,26 +1551,26 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2\"\ ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/bc2f4bef-09b3-4ae0-9aad-47f5cfc74680?api-version=2017-12-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/6448ced4-a0ff-4f5f-9c38-1b656d448597?api-version=2017-12-01'] cache-control: [no-cache] - content-length: ['3730'] + content-length: ['3366'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:39:53 GMT'] + date: ['Sat, 16 Dec 2017 01:05:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1196'] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -919,29 +1580,28 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/bc2f4bef-09b3-4ae0-9aad-47f5cfc74680?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/6448ced4-a0ff-4f5f-9c38-1b656d448597?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"startTime\": \"2017-12-22T15:39:53.8252397+00:00\"\ - ,\r\n \"endTime\": \"2017-12-22T15:40:05.0597218+00:00\",\r\n \"status\"\ - : \"Succeeded\",\r\n \"name\": \"bc2f4bef-09b3-4ae0-9aad-47f5cfc74680\"\r\ - \n}"} + body: {string: "{\r\n \"startTime\": \"2017-12-16T01:05:45.1768071+00:00\",\r\ + \n \"endTime\": \"2017-12-16T01:05:55.4893945+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"6448ced4-a0ff-4f5f-9c38-1b656d448597\"\r\n}"} headers: cache-control: [no-cache] content-length: ['184'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:40:28 GMT'] + date: ['Sat, 16 Dec 2017 01:06:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11982,Microsoft.Compute/GetOperation30Min;23915'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11988,Microsoft.Compute/GetOperation30Min;23952'] status: {code: 200, message: OK} - request: body: null @@ -951,32 +1611,32 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -988,7 +1648,7 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2\"\ ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ @@ -996,16 +1656,16 @@ interactions: ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3731'] + content-length: ['3367'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:40:33 GMT'] + date: ['Sat, 16 Dec 2017 01:06:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4792,Microsoft.Compute/LowCostGet30Min;38367'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4792,Microsoft.Compute/LowCostGet30Min;38381'] status: {code: 200, message: OK} - request: body: null @@ -1015,32 +1675,32 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01&$expand=instanceView response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\ : {\r\n \"computerName\": \"vm1\",\r\n \"osName\": \"ubuntu\",\r\ @@ -1048,7 +1708,7 @@ interactions: : \"2.2.19\",\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-12-22T15:40:42+00:00\"\ + : \"Guest Agent is running\",\r\n \"time\": \"2017-12-16T01:06:24+00:00\"\ \r\n }\r\n ],\r\n \"extensionHandlers\": [\r\n \ \ {\r\n \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ ,\r\n \"typeHandlerVersion\": \"1.0.0.8\",\r\n \"status\"\ @@ -1056,11 +1716,11 @@ interactions: \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\ ,\r\n \"message\": \"Plugin enabled\"\r\n }\r\n \ \ }\r\n ]\r\n },\r\n \"disks\": [\r\n {\r\n\ - \ \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\",\r\n\ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n\ \ \"statuses\": [\r\n {\r\n \"code\": \"\ ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \ \ \"displayStatus\": \"Provisioning succeeded\",\r\n \ - \ \"time\": \"2017-12-22T15:39:55.4346193+00:00\"\r\n }\r\n\ + \ \"time\": \"2017-12-16T01:05:46.301833+00:00\"\r\n }\r\n\ \ ]\r\n }\r\n ],\r\n \"extensions\": [\r\n \ \ {\r\n \"name\": \"ManagedIdentityExtensionForLinux\",\r\n \ \ \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\ @@ -1068,11 +1728,11 @@ interactions: : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ : \"Provisioning succeeded\",\r\n \"message\": \"Successfully\ - \ started managed identity extension service. 2017-12-22 15:40:01.2909108\ + \ started managed identity extension service. 2017-12-16 01:05:52.583402197\ \ +0000 UTC.\"\r\n }\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-12-22T15:40:05.0441181+00:00\"\ + \ succeeded\",\r\n \"time\": \"2017-12-16T01:05:55.4737766+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 }\r\n },\r\n \"resources\": [\r\n {\r\ @@ -1085,7 +1745,7 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2\"\ ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ @@ -1093,21 +1753,21 @@ interactions: ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['5936'] + content-length: ['5573'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:40:45 GMT'] + date: ['Sat, 16 Dec 2017 01:06: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] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4791,Microsoft.Compute/LowCostGet30Min;38366'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4791,Microsoft.Compute/LowCostGet30Min;38380'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"properties": {"autoUpgradeMinorVersion": true, "typeHandlerVersion": - "1.0", "settings": {"port": 50342}, "type": "ManagedIdentityExtensionForLinux", - "publisher": "Microsoft.ManagedIdentity"}, "location": "westcentralus"}' + body: '{"location": "westcentralus", "properties": {"publisher": "Microsoft.ManagedIdentity", + "settings": {"port": 50342}, "autoUpgradeMinorVersion": true, "typeHandlerVersion": + "1.0", "type": "ManagedIdentityExtensionForLinux"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -1115,33 +1775,33 @@ interactions: Connection: [keep-alive] Content-Length: ['222'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"publisher\"\ - : \"Microsoft.ManagedIdentity\",\r\n \"type\": \"ManagedIdentityExtensionForLinux\"\ - ,\r\n \"typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\"\ - : true,\r\n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\ - : \"Updating\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\ - ,\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\ + body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ + ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"typeHandlerVersion\"\ + : \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":\ + \ {\"port\":50342},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\"\ + : \"westcentralus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\ ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/d160d8ca-0097-459a-9039-041bdd7eae90?api-version=2017-12-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/1f68765d-b587-4ad0-9f8b-7db4579528e8?api-version=2017-12-01'] cache-control: [no-cache] content-length: ['596'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:40:50 GMT'] + date: ['Sat, 16 Dec 2017 01:06:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1196'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1197'] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -1152,29 +1812,28 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/d160d8ca-0097-459a-9039-041bdd7eae90?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/1f68765d-b587-4ad0-9f8b-7db4579528e8?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"startTime\": \"2017-12-22T15:40:51.4665573+00:00\"\ - ,\r\n \"endTime\": \"2017-12-22T15:40:51.5603311+00:00\",\r\n \"status\"\ - : \"Succeeded\",\r\n \"name\": \"d160d8ca-0097-459a-9039-041bdd7eae90\"\r\ - \n}"} + body: {string: "{\r\n \"startTime\": \"2017-12-16T01:06:38.0678135+00:00\",\r\ + \n \"endTime\": \"2017-12-16T01:06:38.1459297+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"1f68765d-b587-4ad0-9f8b-7db4579528e8\"\r\n}"} headers: cache-control: [no-cache] content-length: ['184'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:41:24 GMT'] + date: ['Sat, 16 Dec 2017 01:07:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11982,Microsoft.Compute/GetOperation30Min;23912'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11994,Microsoft.Compute/GetOperation30Min;23951'] status: {code: 200, message: OK} - request: body: null @@ -1184,32 +1843,32 @@ interactions: CommandName: [vm assign-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"publisher\"\ - : \"Microsoft.ManagedIdentity\",\r\n \"type\": \"ManagedIdentityExtensionForLinux\"\ - ,\r\n \"typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\"\ - : true,\r\n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\ - : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\ - ,\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\ + body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ + ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"typeHandlerVersion\"\ + : \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":\ + \ {\"port\":50342},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\"\ + : \"westcentralus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\ ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n}"} headers: cache-control: [no-cache] content-length: ['597'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:41:30 GMT'] + date: ['Sat, 16 Dec 2017 01:07:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4793,Microsoft.Compute/LowCostGet30Min;38365'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4789,Microsoft.Compute/LowCostGet30Min;38378'] status: {code: 200, message: OK} - request: body: null @@ -1219,32 +1878,32 @@ interactions: CommandName: [vm show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1256,7 +1915,7 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2\"\ ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ @@ -1264,16 +1923,16 @@ interactions: ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3731'] + content-length: ['3367'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:41:35 GMT'] + date: ['Sat, 16 Dec 2017 01:07:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4792,Microsoft.Compute/LowCostGet30Min;38364'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4788,Microsoft.Compute/LowCostGet30Min;38377'] status: {code: 200, message: OK} - request: body: null @@ -1283,32 +1942,32 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1320,7 +1979,7 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2\"\ ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1\"\ @@ -1328,64 +1987,65 @@ interactions: ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3731'] + content-length: ['3367'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:41:47 GMT'] + date: ['Sat, 16 Dec 2017 01:07:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4790,Microsoft.Compute/LowCostGet30Min;38362'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4787,Microsoft.Compute/LowCostGet30Min;38376'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"location": "westcentralus", "properties": {"storageProfile": - {"imageReference": {"sku": "16.04-LTS", "publisher": "Canonical", "version": - "latest", "offer": "UbuntuServer"}, "osDisk": {"diskSizeGB": 30, "createOption": - "FromImage", "name": "vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347", "caching": - "ReadWrite", "managedDisk": {"storageAccountType": "Premium_LRS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347"}, - "osType": "Linux"}, "dataDisks": []}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, - "osProfile": {"secrets": [], "adminUsername": "travisprescott", "computerName": - "vm1", "linuxConfiguration": {"ssh": {"publicKeys": [{"path": "/home/travisprescott/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ== - trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}}, - "identity": {"type": "SystemAssigned, UserAssigned", "identityIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2"]}, - "tags": {}}' + body: 'b''{"location": "westcentralus", "tags": {}, "properties": {"storageProfile": + {"dataDisks": [], "osDisk": {"name": "vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e", + "osType": "Linux", "managedDisk": {"storageAccountType": "Premium_LRS", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e"}, + "createOption": "FromImage", "diskSizeGB": 30, "caching": "ReadWrite"}, "imageReference": + {"sku": "16.04-LTS", "version": "latest", "publisher": "Canonical", "offer": + "UbuntuServer"}}, "osProfile": {"secrets": [], "computerName": "vm1", "adminUsername": + "yugangw", "linuxConfiguration": {"ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH + yugangw@YUGANGW1\\n", "path": "/home/yugangw/.ssh/authorized_keys"}]}, "disablePasswordAuthentication": + true}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "hardwareProfile": {"vmSize": "Standard_DS1_v2"}}, "identity": {"identityIds": + ["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2"], + "type": "SystemAssigned, UserAssigned"}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [vm remove-identity] Connection: [keep-alive] - Content-Length: ['2063'] + Content-Length: ['1699'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1397,24 +2057,24 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/ac9833b7-3b02-4d1c-9747-a9a4893dbbb0?api-version=2017-12-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/26f742cd-03af-4c98-8441-cfcebbbbdc6a?api-version=2017-12-01'] cache-control: [no-cache] - content-length: ['3569'] + content-length: ['3205'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:42:00 GMT'] + date: ['Sat, 16 Dec 2017 01:07:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1195'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1196'] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -1425,29 +2085,28 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/ac9833b7-3b02-4d1c-9747-a9a4893dbbb0?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/26f742cd-03af-4c98-8441-cfcebbbbdc6a?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"startTime\": \"2017-12-22T15:42:00.7801584+00:00\"\ - ,\r\n \"endTime\": \"2017-12-22T15:42:10.780346+00:00\",\r\n \"status\"\ - : \"Succeeded\",\r\n \"name\": \"ac9833b7-3b02-4d1c-9747-a9a4893dbbb0\"\r\ - \n}"} + body: {string: "{\r\n \"startTime\": \"2017-12-16T01:07:22.3962037+00:00\",\r\ + \n \"endTime\": \"2017-12-16T01:07:31.7556306+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"26f742cd-03af-4c98-8441-cfcebbbbdc6a\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['183'] + content-length: ['184'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:42:35 GMT'] + date: ['Sat, 16 Dec 2017 01:07: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] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11986,Microsoft.Compute/GetOperation30Min;23907'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11995,Microsoft.Compute/GetOperation30Min;23949'] status: {code: 200, message: OK} - request: body: null @@ -1457,32 +2116,32 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1494,23 +2153,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3570'] + content-length: ['3206'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:42:42 GMT'] + date: ['Sat, 16 Dec 2017 01:08:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4789,Microsoft.Compute/LowCostGet30Min;38359'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4784,Microsoft.Compute/LowCostGet30Min;38371'] status: {code: 200, message: OK} - request: body: null @@ -1520,32 +2179,32 @@ interactions: CommandName: [vm show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1557,23 +2216,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3570'] + content-length: ['3206'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:42:54 GMT'] + date: ['Sat, 16 Dec 2017 01:08:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4788,Microsoft.Compute/LowCostGet30Min;38358'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4785,Microsoft.Compute/LowCostGet30Min;38370'] status: {code: 200, message: OK} - request: body: null @@ -1583,32 +2242,32 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1620,70 +2279,70 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned, UserAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3570'] + content-length: ['3206'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:43:05 GMT'] + date: ['Sat, 16 Dec 2017 01:08:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4789,Microsoft.Compute/LowCostGet30Min;38357'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4783,Microsoft.Compute/LowCostGet30Min;38368'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"location": "westcentralus", "properties": {"storageProfile": - {"imageReference": {"sku": "16.04-LTS", "publisher": "Canonical", "version": - "latest", "offer": "UbuntuServer"}, "osDisk": {"diskSizeGB": 30, "createOption": - "FromImage", "name": "vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347", "caching": - "ReadWrite", "managedDisk": {"storageAccountType": "Premium_LRS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347"}, - "osType": "Linux"}, "dataDisks": []}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, - "osProfile": {"secrets": [], "adminUsername": "travisprescott", "computerName": - "vm1", "linuxConfiguration": {"ssh": {"publicKeys": [{"path": "/home/travisprescott/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ== - trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}}, - "identity": {"type": "SystemAssigned"}, "tags": {}}' + body: 'b''{"location": "westcentralus", "tags": {}, "properties": {"storageProfile": + {"dataDisks": [], "osDisk": {"name": "vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e", + "osType": "Linux", "managedDisk": {"storageAccountType": "Premium_LRS", "id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e"}, + "createOption": "FromImage", "diskSizeGB": 30, "caching": "ReadWrite"}, "imageReference": + {"sku": "16.04-LTS", "version": "latest", "publisher": "Canonical", "offer": + "UbuntuServer"}}, "osProfile": {"secrets": [], "computerName": "vm1", "adminUsername": + "yugangw", "linuxConfiguration": {"ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH + yugangw@YUGANGW1\\n", "path": "/home/yugangw/.ssh/authorized_keys"}]}, "disablePasswordAuthentication": + true}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "hardwareProfile": {"vmSize": "Standard_DS1_v2"}}, "identity": {"type": "SystemAssigned"}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] CommandName: [vm remove-identity] Connection: [keep-alive] - Content-Length: ['1878'] + Content-Length: ['1514'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1695,25 +2354,25 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/5f153960-fb51-4151-864b-a0ac7f1bc65e?api-version=2017-12-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/9f930e74-eeba-4436-b6e2-c7730869243a?api-version=2017-12-01'] cache-control: [no-cache] - content-length: ['3555'] + content-length: ['3191'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:43:15 GMT'] + date: ['Sat, 16 Dec 2017 01:08: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] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1194'] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -1723,29 +2382,28 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/5f153960-fb51-4151-864b-a0ac7f1bc65e?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/operations/9f930e74-eeba-4436-b6e2-c7730869243a?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"startTime\": \"2017-12-22T15:43:16.3753704+00:00\"\ - ,\r\n \"endTime\": \"2017-12-22T15:43:26.3286635+00:00\",\r\n \"status\"\ - : \"Succeeded\",\r\n \"name\": \"5f153960-fb51-4151-864b-a0ac7f1bc65e\"\r\ - \n}"} + body: {string: "{\r\n \"startTime\": \"2017-12-16T01:08:27.1778771+00:00\",\r\ + \n \"endTime\": \"2017-12-16T01:08:37.0998395+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"9f930e74-eeba-4436-b6e2-c7730869243a\"\r\n}"} headers: cache-control: [no-cache] content-length: ['184'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:43:53 GMT'] + date: ['Sat, 16 Dec 2017 01:08: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] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11990,Microsoft.Compute/GetOperation30Min;23903'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;11993,Microsoft.Compute/GetOperation30Min;23947'] status: {code: 200, message: OK} - request: body: null @@ -1755,32 +2413,32 @@ interactions: CommandName: [vm remove-identity] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1792,23 +2450,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3556'] + content-length: ['3192'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:44:03 GMT'] + date: ['Sat, 16 Dec 2017 01:09:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4787,Microsoft.Compute/LowCostGet30Min;38353'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4784,Microsoft.Compute/LowCostGet30Min;38364'] status: {code: 200, message: OK} - request: body: null @@ -1818,32 +2476,32 @@ interactions: CommandName: [vm show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 computemanagementclient/3.1.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-12-01 response: - body: {string: !!python/unicode "{\r\n \"properties\": {\r\n \"vmId\": \"\ - 28e57983-2ea1-4448-942e-8211cf0e2bad\",\r\n \"hardwareProfile\": {\r\n\ - \ \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\"\ - : {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\"\ - ,\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\"\ - ,\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": {\r\n\ - \ \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ - ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ + body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"e610d6c4-7755-4651-aeec-e8e0b0bde36c\"\ + ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\ + \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \ + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\ + ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\ + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \ + \ \"name\": \"vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\",\r\n \ + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\ ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_838646f93a8443a1b9f979c003df8347\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_de3913c130e443f2aa6ae6cd5edb0c4e\"\ \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\ : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\ - ,\r\n \"adminUsername\": \"travisprescott\",\r\n \"linuxConfiguration\"\ + ,\r\n \"adminUsername\": \"yugangw\",\r\n \"linuxConfiguration\"\ : {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\"\ : {\r\n \"publicKeys\": [\r\n {\r\n \"path\"\ - : \"/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\ - : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\ - \ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n }\r\ - \n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ + : \"/home/yugangw/.ssh/authorized_keys\",\r\n \"keyData\": \"\ + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaQ1KLeMgSuB7YfE9J8CIFBgyXuaUTjh2mcJL8F8PKS+ad3czClma99lDBSmXaIrdPcdyn/A5RfauijgTKPNbC64FgnbtNjTWjyb4NSJyXKP9BlbGqvz8xxO+CPOTvNe7GOPi9l0pZZLq8uXB1D4G6h54BBaEqpLIWGNDusllfRyy2Z9zIOCSuVmpss+zq1nWmiB3mrDTm36DO1jQFnOaytYYBrluulJ6fAn6vHI3vW/mDugwCb5KzT0hcKT2UeuM75odM/OS8I4YneDxdCz0Gu456o4izTHchGXWZURxJlSUD1znIMMJDJmxHbD+bhnfcZ8Xu5KxNDPhUCTYeN/oH\ + \ yugangw@YUGANGW1\\n\"\r\n }\r\n ]\r\n }\r\n \ + \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\ networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\ @@ -1855,23 +2513,23 @@ interactions: ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\ \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\ westcentralus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\":\ - \ \"SystemAssigned\",\r\n \"principalId\": \"7ae57425-8f63-43e4-9025-0331d4da1633\"\ + \ \"SystemAssigned\",\r\n \"principalId\": \"21ae84ed-1f60-4c80-ba11-21c841690a29\"\ ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"\ identityIds\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/microsoft.managedidentity/userassignedidentities/id2\"\ \r\n ]\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ ,\r\n \"name\": \"vm1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['3556'] + content-length: ['3192'] content-type: [application/json; charset=utf-8] - date: ['Fri, 22 Dec 2017 15:44:15 GMT'] + date: ['Sat, 16 Dec 2017 01:09:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4786,Microsoft.Compute/LowCostGet30Min;38352'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4781,Microsoft.Compute/LowCostGet30Min;38361'] status: {code: 200, message: OK} - request: body: null @@ -1882,22 +2540,22 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.12 (Darwin-17.2.0-x86_64-i386-64bit) requests/2.18.4 - msrest/0.4.22 msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.24] + User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 + msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.23] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: !!python/unicode ''} + body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Fri, 22 Dec 2017 15:44:20 GMT'] + date: ['Sat, 16 Dec 2017 01:09:19 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdZRUhQRTc2NDdCLVdFU1RDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Indlc3RjZW50cmFsdXMifQ?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdJWDZYN0YyS0FILVdFU1RDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Indlc3RjZW50cmFsdXMifQ?api-version=2017-05-10'] pragma: [no-cache] 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} version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py index 3237a563eaf..54c0a9060aa 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py @@ -1897,7 +1897,8 @@ def test_msi_no_scope(self, resource_group): # create a linux vm with identity but w/o a role assignment (--scope "") self.cmd('vm create -g {rg} -n {vm1} --image debian --assign-identity --admin-username admin123 --admin-password PasswordPassword1!', checks=[ - self.check('identity.scope', ''), + self.check('identity.scope', None), + self.check('identity.role', None), self.check('identity.port', 50342) ]) # the extension should still get provisioned @@ -1908,7 +1909,7 @@ def test_msi_no_scope(self, resource_group): # create a vmss with identity but w/o a role assignment (--scope "") self.cmd('vmss create -g {rg} -n {vmss1} --image debian --assign-identity --admin-username admin123 --admin-password PasswordPassword1!', checks=[ - self.check('vmss.identity.scope', ''), + self.check('vmss.identity.scope', None), self.check('vmss.identity.port', 50342) ]) @@ -1922,7 +1923,7 @@ def test_msi_no_scope(self, resource_group): self.cmd('vm create -g {rg} -n {vm2} --image debian --admin-username admin123 --admin-password PasswordPassword1!') # assign identity but w/o a role assignment self.cmd('vm assign-identity -g {rg} -n {vm2}', checks=[ - self.check('scope', ''), + self.check('scope', None), self.check('port', 50342) ]) # the extension should still get provisioned @@ -1935,7 +1936,7 @@ def test_msi_no_scope(self, resource_group): # skip playing back till the test issue gets addressed https://github.com/Azure/azure-cli/issues/4016 if self.is_live: self.cmd('vmss assign-identity -g {rg} -n {vmss2}', checks=[ - self.check('scope', ''), + self.check('scope', None), self.check('port', 50342) ]) @@ -1960,9 +1961,17 @@ def test_vm_explicit_msi(self, resource_group): checks=self.check('name', '{emsi}')).get_output_in_json() emsi2_result = self.cmd('identity create -g {rg} -n {emsi2}').get_output_in_json() + # create a vm with only user assigned identity + result = self.cmd('vm create -g {rg} -n vm2 --image ubuntults --assign-identity {emsi} --generate-ssh-keys', checks=[ + self.check('identity.role', None), + self.check('identity.scope', None), + self.check('length(identity.userAssignedIdentities)', 1) + ]).get_output_in_json() + self.assertEqual(result['identity']['userAssignedIdentities'][0].lower(), emsi_result['id'].lower()) + # create a vm with system + user assigned identities result = self.cmd('vm create -g {rg} -n {vm} --image ubuntults --assign-identity {emsi} [system] --role reader --scope {scope} --generate-ssh-keys --admin-username ubuntuadmin').get_output_in_json() - self.assertEqual(result['identity']['externalIdentities'][0].lower(), emsi_result['id'].lower()) + self.assertEqual(result['identity']['userAssignedIdentities'][0].lower(), emsi_result['id'].lower()) result = self.cmd('vm show -g {rg} -n {vm}', checks=[ self.check('length(identity.identityIds)', 1), self.check('identity.type', 'SystemAssigned, UserAssigned') @@ -2004,7 +2013,7 @@ def test_vmss_explicit_msi(self, resource_group): # create a vmss with system + user assigned identities result = self.cmd('vmss create -g {rg} -n {vmss} --image ubuntults --assign-identity {emsi} [system] --role reader --scope {scope} --instance-count 1 --generate-ssh-keys --admin-username ubuntuadmin').get_output_in_json() - self.assertEqual(result['vmss']['identity']['externalIdentities'][0].lower(), emsi_result['id'].lower()) + self.assertEqual(result['vmss']['identity']['userAssignedIdentities'][0].lower(), emsi_result['id'].lower()) result = self.cmd('vmss show -g {rg} -n {vmss}', checks=[ self.check('length(identity.identityIds)', 1),