From c8de85954f91280e1bb36dc704b1d611a5029eae Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 6 Jan 2020 19:49:06 +0800 Subject: [PATCH 01/19] Add test for latest profile --- .../recordings/test_defer_only_commands.yaml | 432 ++ .../test_image_build_managed_image.yaml | 2475 ++++++++++ .../test_image_build_shared_image.yaml | 3985 +++++++++++++++++ .../test_image_builder_customizers.yaml | 589 +++ .../recordings/test_image_template_basic.yaml | 1018 +++++ .../test_image_template_basic_sig.yaml | 896 ++++ .../test_image_template_outputs.yaml | 845 ++++ .../latest/test_image_builder_commands.py | 447 ++ 8 files changed, 10687 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic_sig.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml new file mode 100644 index 00000000000..7d09701c8ad --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml @@ -0,0 +1,432 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:03 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:12:04 GMT + duration: + - '2571136' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - xvWJHMWAHzosjXNMZ9eWLFLy/hDOFxHPaxgG2NiJKnA= + ocp-aad-session-key: + - YFsQklvp272uib8HRUo1bB_XX6XQdM1Iey7u_Qd_WBhKHfHo10TVao1LdX6YR8HjU0kirgLdvnV3nhJnOc_WmlAY2uotaAzXrqNXRasAvZgvZQKXaf7iEgeaBENA-ioi.sw_EOIjAMZYa6qUng9U8e3iJhkk-KoBMZmfPQjWpUmo + pragma: + - no-cache + request-id: + - 0e30921a-f35e-4331-8e61-b086164deff3 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/62f3efe1-6838-42ae-9caa-6b5e72b9ae87?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:12:04.8536603Z","updatedOn":"2020-01-06T09:12:04.8536603Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/62f3efe1-6838-42ae-9caa-6b5e72b9ae87","type":"Microsoft.Authorization/roleAssignments","name":"62f3efe1-6838-42ae-9caa-6b5e72b9ae87"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:09 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '5' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:11:57Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --is-vhd --output-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --is-vhd --output-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:11:57Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml new file mode 100644 index 00000000000..bdbbac5ae31 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml @@ -0,0 +1,2475 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:25 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:12:26 GMT + duration: + - '2397628' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - f7NL0FmTJ8JNWIfqHCIrTaLlqNjkXErDM8C/2jqzM2c= + ocp-aad-session-key: + - SMVFNKCuT9pcDamH0HSA9gbKT7U4PHBh-601wIYKLHOktpzgFkD27tig26NnsFZRPBQv_OThKuKge0uIBg82BsZ6ROQjfk_QnXo673jwWLoFKmKXPE3se41qh9uCZFvg.F70aWu7IaEfVODS10uQKOZyuvQhwovf15HjJnHkLLvY + pragma: + - no-cache + request-id: + - 443d9157-1bca-4152-8b8b-af31af0d37ea + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/e246d8dd-e2d6-4742-967b-33ac4d540510?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","createdOn":"2020-01-06T09:12:28.0026252Z","updatedOn":"2020-01-06T09:12:28.0026252Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/e246d8dd-e2d6-4742-967b-33ac4d540510","type":"Microsoft.Authorization/roleAssignments","name":"e246d8dd-e2d6-4742-967b-33ac4d540510"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:30 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '4' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:12:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "img_1", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '666' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/fa23bb4d-f758-4636-b361-317a94b3ee53?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1141' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:12:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/fa23bb4d-f758-4636-b361-317a94b3ee53?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"FA23BB4D-F758-4636-B361-317A94B3EE53\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:12:40.7180949Z\",\n \"endTime\": + \"2020-01-06T09:13:12.0171348Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:13:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1232' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:13:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/run?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Jan 2020 09:13:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:13:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:14:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:14:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:15:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:15:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:16:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:17:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:17:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:18:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:18:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:19:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:19:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:20:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\",\n \"endTime\": + \"2020-01-06T09:20:25.7860675Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:20:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template show-runs + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/img_1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/img_1\",\n + \"name\": \"img_1\",\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '585' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:20:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:20:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"img_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n + \ \"diskSizeGB\": 30,\r\n \"blobUri\": \"https://w2qwfhn3o54w6qmwz8fhgqom.blob.core.windows.net/vhds/4df4290d-cdfa-4134-9bf0-27e132b2d860.vhd\",\r\n + \ \"caching\": \"None\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n + \ },\r\n \"dataDisks\": []\r\n },\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '734' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:20:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetImages3Min;357,Microsoft.Compute/GetImages30Min;1797 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:20:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "testvmVNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "testvmSubnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "testvmNSG", "apiVersion": + "2015-06-15", "location": "westus", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "testvmPublicIP", "location": "westus", "tags": {}, "dependsOn": [], + "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", + "type": "Microsoft.Network/networkInterfaces", "name": "testvmVMNic", "location": + "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/testvmVNET", + "Microsoft.Network/networkSecurityGroups/testvmNSG", "Microsoft.Network/publicIpAddresses/testvmPublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigtestvm", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET/subnets/testvmSubnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG"}}}, + {"apiVersion": "2019-07-01", "type": "Microsoft.Compute/virtualMachines", "name": + "testvm", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/testvmVMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic"}]}, + "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": + "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1"}}, + "osProfile": {"computerName": "testvm", "adminUsername": "fey", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n", "path": "/home/fey/.ssh/authorized_keys"}]}}}}}], "outputs": + {}}, "parameters": {}, "mode": "Incremental"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3821' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","name":"vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17294233630906372647","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-06T09:20:55.9097481Z","duration":"PT2.9870938S","correlationId":"a1d3b811-a612-443c-bd1f-e435efddaf48","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd/operationStatuses/08586233044325549815?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '2779' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:20:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:21:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:21:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:22:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:22:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:23:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:24:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:24:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","name":"vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17294233630906372647","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-06T09:24:39.4120963Z","duration":"PT3M46.489442S","correlationId":"a1d3b811-a612-443c-bd1f-e435efddaf48","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3860' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?$expand=instanceView&api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5759e2b-5a52-4043-9254-376ce9db24b2\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/disks/testvm_disk1_c2de58728ce94cab91f36e927feee6ae\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testvm\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n + \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not + Ready\",\r\n \"message\": \"VM status blob is found but not yet + populated.\",\r\n \"time\": \"2020-01-06T09:25:03+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2020-01-06T09:23:33.1047031+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2020-01-06T09:24:34.5265978+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}" + headers: + cache-control: + - no-cache + content-length: + - '3719' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31983 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"testvmVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\",\r\n + \ \"etag\": \"W/\\\"d278db0d-a01d-4b68-a2c9-47e306ecf0eb\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"1bfbc55f-0291-42b5-8131-22c346650ea2\",\r\n + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigtestvm\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic/ipConfigurations/ipconfigtestvm\",\r\n + \ \"etag\": \"W/\\\"d278db0d-a01d-4b68-a2c9-47e306ecf0eb\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\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/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET/subnets/testvmSubnet\"\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\": + \"yanvvofq4dju1mcg1mf0ckr3jg.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-30-20-BD\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2598' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:04 GMT + etag: + - W/"d278db0d-a01d-4b68-a2c9-47e306ecf0eb" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - bc154d03-459c-47ac-b3c9-93aa3c954dd9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"testvmPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP\",\r\n + \ \"etag\": \"W/\\\"de02a926-ef0a-4d26-bbb6-33a2441aa694\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"e81c2d0e-ee3e-4bca-84db-f4af552623bd\",\r\n + \ \"ipAddress\": \"40.118.135.58\",\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/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic/ipConfigurations/ipconfigtestvm\"\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: + - '1009' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:04 GMT + etag: + - W/"de02a926-ef0a-4d26-bbb6-33a2441aa694" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 17575cd2-b9cd-47de-a3c1-6f319955c9c2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5759e2b-5a52-4043-9254-376ce9db24b2\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/disks/testvm_disk1_c2de58728ce94cab91f36e927feee6ae\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testvm\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n + \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2513' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31982 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:25:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "ManagedImage", "imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1"}, + "customize": [{"name": "customizeScript.sh", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "img_2", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_2", + "location": "westus"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '762' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"type\": \"ManagedImage\"\n },\n \"customize\": [\n {\n \"name\": + \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/6129333d-c6ce-4897-9c71-11d6212ba500?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1228' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:25:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/6129333d-c6ce-4897-9c71-11d6212ba500?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"6129333D-C6CE-4897-9C71-11D6212BA500\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:25:13.8916933Z\",\n \"endTime\": + \"2020-01-06T09:25:42.6220093Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:25:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"type\": \"ManagedImage\"\n },\n \"customize\": [\n {\n \"name\": + \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1319' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:25:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml new file mode 100644 index 00000000000..87c8dc585d1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml @@ -0,0 +1,3985 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:03 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:26:03 GMT + duration: + - '2896528' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - NiyJ2AIExjQhY4Rx03EhVIBXgVFVY7HmDtQ+BOMQ6gc= + ocp-aad-session-key: + - _DZz39VPI9Au9ycSPhNn24m0RO9_N8GFT2fCkhOR0wrjFbjTx4tKBbb4nKxcsrIMpU-3IGydJHHX0Aw2XvuLxWqoYzoMzGD895ovTfKnRSwtuVb0dh8I9K7qKRgQgSDc.QNuRCzzsK48RG1bB90HUt-z4AD5EIHkr8WLsU3xdnwQ + pragma: + - no-cache + request-id: + - 06c6993f-799b-4a59-8f10-0ac976688f8d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/090c44a7-7905-452c-9313-ae968c522b9d?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","createdOn":"2020-01-06T09:26:04.8569900Z","updatedOn":"2020-01-06T09:26:04.8569900Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/090c44a7-7905-452c-9313-ae968c522b9d","type":"Microsoft.Authorization/roleAssignments","name":"090c44a7-7905-452c-9313-ae968c522b9d"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:09 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-ms-request-charge: + - '5' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"ib_sig000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGGEOK\"\r\n },\r\n \"provisioningState\": + \"Creating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/bd3951ad-1771-46a6-a1cb-49e7dd34ad7b?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '476' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/bd3951ad-1771-46a6-a1cb-49e7dd34ad7b?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-06T09:26:15.8485102+00:00\",\r\n \"endTime\": + \"2020-01-06T09:26:16.1453685+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"bd3951ad-1771-46a6-a1cb-49e7dd34ad7b\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"ib_sig000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGGEOK\"\r\n },\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '477' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"osType": "Linux", "osState": + "Generalized", "hyperVGeneration": "V1", "identifier": {"publisher": "publisher1", + "offer": "offer1", "sku": "sku1"}, "disallowed": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + Content-Length: + - '216' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/b3d68fb9-1771-49b6-9a0b-53171c733454?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '589' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:26:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/b3d68fb9-1771-49b6-9a0b-53171c733454?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-06T09:26:54.2080586+00:00\",\r\n \"endTime\": + \"2020-01-06T09:26:54.3330555+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b3d68fb9-1771-49b6-9a0b-53171c733454\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:27:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:27: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-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:27:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:27:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --gallery-name --gallery-image-definition --gallery-replication-regions + --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:27:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "image1", "artifactTags": {}, "type": "SharedImage", + "galleryImageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1", + "replicationRegions": ["westus"]}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + Content-Length: + - '727' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": + \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/c99b8b0f-c28a-445c-baa5-70fcb8d09537?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1193' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:27:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/c99b8b0f-c28a-445c-baa5-70fcb8d09537?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"C99B8B0F-C28A-445C-BAA5-70FCB8D09537\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:27:37.9230535Z\",\n \"endTime\": + \"2020-01-06T09:28:06.7152805Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:28:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": + \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1284' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:28:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/run?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Jan 2020 09:28:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:28:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:29:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:29:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:30:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:30:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:31:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:31:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:32:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:33:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:33:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:34:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:34:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:35:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:35:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:36:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:36:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:37:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:37:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:38:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:38:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:39:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:39:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:40:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:40:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:41:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:42:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:42:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:43:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:43:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:44:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\",\n \"endTime\": + \"2020-01-06T09:44:16.403633Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:44:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template show-runs + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/image1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/image1\",\n + \"name\": \"image1\",\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n + \ \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '632' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:44:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:44:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:44:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"0.24082.65419\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images/versions\",\r\n \"location\": + \"westus\",\r\n \"tags\": {\r\n \"correlationId\": \"078ac434-d413-475c-a9a6-5a1a64fdb53e\"\r\n + \ },\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"targetRegions\": + [\r\n {\r\n \"name\": \"West US\",\r\n \"regionalReplicaCount\": + 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n + \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n + \ \"publishedDate\": \"2020-01-06T09:36:12.8361451+00:00\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"source\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_img_tmpl_sigmo7muoyhpaquyu3ykees7nzngmht_5cd58ef8-2214-419f-85dc-860848c6d713/providers/Microsoft.Compute/images/IntermediateSnapImg_078ac434-d413-475c-a9a6-5a1a64fdb53e_0\"\r\n + \ },\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 30,\r\n \"hostCaching\": + \"None\",\r\n \"source\": {}\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1307' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:44:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:44:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "custom-vmVNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "custom-vmSubnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "custom-vmNSG", "apiVersion": + "2015-06-15", "location": "westus", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "custom-vmPublicIP", "location": "westus", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", + "type": "Microsoft.Network/networkInterfaces", "name": "custom-vmVMNic", "location": + "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/custom-vmVNET", + "Microsoft.Network/networkSecurityGroups/custom-vmNSG", "Microsoft.Network/publicIpAddresses/custom-vmPublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigcustom-vm", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET/subnets/custom-vmSubnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG"}}}, + {"apiVersion": "2019-07-01", "type": "Microsoft.Compute/virtualMachines", "name": + "custom-vm", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/custom-vmVMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic"}]}, + "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": + "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419"}}, + "osProfile": {"computerName": "custom-vm", "adminUsername": "fey", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n", "path": "/home/fey/.ssh/authorized_keys"}]}}}}}], "outputs": + {}}, "parameters": {}, "mode": "Incremental"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3917' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","name":"vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4904822750056016211","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-06T09:44:51.8199382Z","duration":"PT2.9047712S","correlationId":"9ed9463c-ef74-471e-b1d0-bd6e85a31cf0","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE/operationStatuses/08586233029965625359?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '2814' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:44:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:45:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:45:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:46:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:46:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:47:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:47:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:48:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:48:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:49:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:49:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","name":"vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4904822750056016211","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-06T09:50:01.8062433Z","duration":"PT5M12.8910763S","correlationId":"9ed9463c-ef74-471e-b1d0-bd6e85a31cf0","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3911' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm?$expand=instanceView&api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"custom-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"53e0fbdb-e8fa-47a8-9824-df28d7f7ee26\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n + \ \"exactVersion\": \"0.24082.65419\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\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/img_tmpl_sig000001/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"custom-vm\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n + \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not + Ready\",\r\n \"message\": \"VM status blob is found but not yet + populated.\",\r\n \"time\": \"2020-01-06T09:50:31+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2020-01-06T09:48:49.5429947+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2020-01-06T09:49:56.886873+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}" + headers: + cache-control: + - no-cache + content-length: + - '3834' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31975 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"custom-vmVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\",\r\n + \ \"etag\": \"W/\\\"704603ee-9708-4a0f-986d-70ae0ade14da\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"3235380e-51e2-4a0f-b5a2-8d278934ed46\",\r\n + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigcustom-vm\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic/ipConfigurations/ipconfigcustom-vm\",\r\n + \ \"etag\": \"W/\\\"704603ee-9708-4a0f-986d-70ae0ade14da\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\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/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET/subnets/custom-vmSubnet\"\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\": + \"zpqbvuzpcjoetnxtd5woksu5aa.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-31-F9-08\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2628' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:31 GMT + etag: + - W/"704603ee-9708-4a0f-986d-70ae0ade14da" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ef792247-4379-495d-a2fa-731f0a931946 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"custom-vmPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP\",\r\n + \ \"etag\": \"W/\\\"5f95f8ee-ffba-4898-8d61-55025b35d8c2\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"b422af3e-9251-4c40-b701-72e9b622334d\",\r\n + \ \"ipAddress\": \"40.112.173.86\",\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/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic/ipConfigurations/ipconfigcustom-vm\"\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: + - '1021' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:32 GMT + etag: + - W/"5f95f8ee-ffba-4898-8d61-55025b35d8c2" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d0a507c2-4149-48c9-90be-968249747eaa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"custom-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"53e0fbdb-e8fa-47a8-9824-df28d7f7ee26\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n + \ \"exactVersion\": \"0.24082.65419\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\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/img_tmpl_sig000001/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"custom-vm\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n + \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2623' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31974 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --shared-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --shared-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:50:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "SharedImageVersion", "imageVersionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419"}, + "customize": [{"name": "customizeScript.sh", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "image1", "type": "SharedImage", "galleryImageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1", + "replicationRegions": ["westus"]}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '861' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --image-source --shared-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n + \ \"type\": \"SharedImageVersion\"\n },\n \"customize\": [\n {\n \"name\": + \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": + \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5543c21b-a20a-44bf-bd57-77fa402a2291?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1338' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:50:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --shared-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5543c21b-a20a-44bf-bd57-77fa402a2291?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"5543C21B-A20A-44BF-BD57-77FA402A2291\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:50:42.5827562Z\",\n \"endTime\": + \"2020-01-06T09:51:12.4617081Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:51:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --shared-image-destinations --scripts + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n + \ \"type\": \"SharedImageVersion\"\n },\n \"customize\": [\n {\n \"name\": + \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": + \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1429' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:51:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml new file mode 100644 index 00000000000..4255d59d18c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml @@ -0,0 +1,589 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:51:31 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:51:33 GMT + duration: + - '2725981' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - T9MjLYk/r1HARLMG+d54CI3Gtan9uayK6YjXZ2wP3Gg= + ocp-aad-session-key: + - OQQXZjsn7qKsfPaCupU7s6K1FBGe8ipeTjuS7tnj_MPPmzhT5A9cND36UeQSOLkeBxtOuv0AxvLtwiIpUt4mCoOUCR6zftnl1hWU4q14xt7zZFYEMXjbKC-UhHNmsmY7.zSXad_VSdWvGkq1Mswq8yNTzNUno6iNGYi9sh0lx-d4 + pragma: + - no-cache + request-id: + - 0fdc1540-7f36-4955-9d54-724fa22544ee + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/fa1835d3-d5e6-4bc3-b531-61ead271dbd6?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:51:33.8398412Z","updatedOn":"2020-01-06T09:51:33.8398412Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/fa1835d3-d5e6-4bc3-b531-61ead271dbd6","type":"Microsoft.Authorization/roleAssignments","name":"fa1835d3-d5e6-4bc3-b531-61ead271dbd6"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:51:36 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '3' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --managed-image-destinations --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:51:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:51:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --managed-image-destinations --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:51:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", + "sku": "2019-Datacenter", "version": "2019.0.20190214"}, "customize": [{"name": + "testPsScript.ps1", "type": "PowerShell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1"}, + {"name": "powershell_script", "type": "PowerShell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1", + "validExitCodes": [0, 1, 2]}, {"name": "powershell_script_inline", "type": "PowerShell", + "inline": ["mkdir c:\\\\buildActions", "echo Azure-Image-Builder-Was-Here > + c:\\\\buildActions\\\\buildActionsOutput.txt"], "validExitCodes": [12, 14, 16]}, + {"name": "windows_restart_name", "type": "WindowsRestart", "restartCheckCommand": + "echo Azure-Image-Builder-Restarted-the-VM > c:\\\\buildArtifacts\\\\azureImageBuilderRestart.txt", + "restartTimeout": "5m"}, {"name": "file_customizer_name", "type": "File", "sourceUri": + "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination": "c:\\\\buildArtifacts\\\\index.html"}], "distribute": [{"runOutputName": + "img_1", "type": "ManagedImage", "imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + Content-Length: + - '1523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": + \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 0,\n 1,\n + \ 2\n ]\n },\n {\n \"inline\": [\n \"mkdir c:\\\\buildActions\",\n + \ \"echo Azure-Image-Builder-Was-Here \\u003e c:\\\\buildActions\\\\buildActionsOutput.txt\"\n + \ ],\n \"name\": \"powershell_script_inline\",\n \"runElevated\": + false,\n \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 12,\n + \ 14,\n 16\n ]\n },\n {\n \"name\": \"windows_restart_name\",\n + \ \"restartCheckCommand\": \"echo Azure-Image-Builder-Restarted-the-VM \\u003e + c:\\\\buildArtifacts\\\\azureImageBuilderRestart.txt\",\n \"restartCommand\": + \"\",\n \"restartTimeout\": \"5m\",\n \"type\": \"WindowsRestart\"\n + \ },\n {\n \"destination\": \"c:\\\\buildArtifacts\\\\index.html\",\n + \ \"name\": \"file_customizer_name\",\n \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/4a293058-3015-4478-95bd-ac1e8c160f14?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '2266' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:51:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/4a293058-3015-4478-95bd-ac1e8c160f14?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"4A293058-3015-4478-95BD-AC1E8C160F14\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:51:49.3642723Z\",\n \"endTime\": + \"2020-01-06T09:52:23.1358942Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:52:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": + \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n + \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n + \ \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 0,\n 1,\n + \ 2\n ]\n },\n {\n \"inline\": [\n \"mkdir c:\\\\buildActions\",\n + \ \"echo Azure-Image-Builder-Was-Here \\u003e c:\\\\buildActions\\\\buildActionsOutput.txt\"\n + \ ],\n \"name\": \"powershell_script_inline\",\n \"runElevated\": + false,\n \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 12,\n + \ 14,\n 16\n ]\n },\n {\n \"name\": \"windows_restart_name\",\n + \ \"restartCheckCommand\": \"echo Azure-Image-Builder-Restarted-the-VM \\u003e + c:\\\\buildArtifacts\\\\azureImageBuilderRestart.txt\",\n \"restartCommand\": + \"\",\n \"restartTimeout\": \"5m\",\n \"type\": \"WindowsRestart\"\n + \ },\n {\n \"destination\": \"c:\\\\buildArtifacts\\\\index.html\",\n + \ \"name\": \"file_customizer_name\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '2537' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:52:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template customizer clear + Connection: + - keep-alive + ParameterSetName: + - -n -g --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": + \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n + \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n + \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n + \ \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 0,\n 1,\n + \ 2\n ]\n },\n {\n \"inline\": [\n \"mkdir c:\\\\buildActions\",\n + \ \"echo Azure-Image-Builder-Was-Here \\u003e c:\\\\buildActions\\\\buildActionsOutput.txt\"\n + \ ],\n \"name\": \"powershell_script_inline\",\n \"runElevated\": + false,\n \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 12,\n + \ 14,\n 16\n ]\n },\n {\n \"name\": \"windows_restart_name\",\n + \ \"restartCheckCommand\": \"echo Azure-Image-Builder-Restarted-the-VM \\u003e + c:\\\\buildArtifacts\\\\azureImageBuilderRestart.txt\",\n \"restartCommand\": + \"\",\n \"restartTimeout\": \"5m\",\n \"type\": \"WindowsRestart\"\n + \ },\n {\n \"destination\": \"c:\\\\buildArtifacts\\\\index.html\",\n + \ \"name\": \"file_customizer_name\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '2537' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:52:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic.yaml new file mode 100644 index 00000000000..64d0e492b28 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic.yaml @@ -0,0 +1,1018 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:39 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:52:40 GMT + duration: + - '2424647' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - wL7zcXvhIXIAGeynkORCtbz/3bweluE/NT+Ij6AZJG0= + ocp-aad-session-key: + - vblB2W0rC08sof-COVbwCYl84LN5voSjubxT31vXlK1VrbUL-rJSshy2jW1bYlle6b10eKlmrHHsK96egH2y9ZNZ4CTaDzu5pT7ELJf0qRDjCGcJDHaR4t_DyC7SUyUH.4Omn7Fmb1s-0bgP272o9xYot7GVkK1dFO5mSuVBvt2k + pragma: + - no-cache + request-id: + - cf152251-54f9-424e-b8ad-897ffb0bbe9e + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleAssignments/c33dc3b0-6f99-447f-9bfe-84dfff84bfaa?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","createdOn":"2020-01-06T09:52:41.6218518Z","updatedOn":"2020-01-06T09:52:41.6218518Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleAssignments/c33dc3b0-6f99-447f-9bfe-84dfff84bfaa","type":"Microsoft.Authorization/roleAssignments","name":"c33dc3b0-6f99-447f-9bfe-84dfff84bfaa"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:43 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-ms-request-charge: + - '3' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:52:34Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --managed-image --managed-image-location --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --is-vhd --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --is-vhd --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:52:34Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:52:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "customizeScript.sh", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "new_img", "artifactTags": {}, "type": "ManagedImage", + "imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img", + "location": "southcentralus"}, {"runOutputName": "my_vhd_output", "artifactTags": + {}, "type": "VHD"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + Content-Length: + - '944' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img\",\n + \ \"location\": \"southcentralus\",\n \"runOutputName\": \"new_img\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"runOutputName\": + \"my_vhd_output\",\n \"type\": \"VHD\"\n }\n ],\n \"provisioningState\": + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/71cedcc7-7d33-4c7c-83ac-0450097c6fa4?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1439' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:52:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/71cedcc7-7d33-4c7c-83ac-0450097c6fa4?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"71CEDCC7-7D33-4C7C-83AC-0450097C6FA4\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:52:57.5677057Z\",\n \"endTime\": + \"2020-01-06T09:53:28.3352506Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:53:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img\",\n + \ \"location\": \"southcentralus\",\n \"runOutputName\": \"new_img\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"runOutputName\": + \"my_vhd_output\",\n \"type\": \"VHD\"\n }\n ],\n \"provisioningState\": + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": + \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1620' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:53:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:52:34Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:53:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:53:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "img_1", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}, {"runOutputName": "img_2", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2", + "location": "centralus"}], "buildTimeoutInMinutes": 22}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '970' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"imageId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"centralus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 22\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d94238cc-e5fb-4849-8cc4-5996b1471d86?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1465' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:53:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d94238cc-e5fb-4849-8cc4-5996b1471d86?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"D94238CC-E5FB-4849-8CC4-5996B1471D86\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:53:42.6146224Z\",\n \"endTime\": + \"2020-01-06T09:54:12.0939285Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:54:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"imageId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"centralus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 22\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1556' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:54:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic_sig.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic_sig.yaml new file mode 100644 index 00000000000..d47acec9a7d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_basic_sig.yaml @@ -0,0 +1,896 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:54:32 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:54:33 GMT + duration: + - '2423248' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - 1lVR5teXsZbdZmPF11gm59KMWRaNjPR269e9leNdeAg= + ocp-aad-session-key: + - iv7AhluhU5zy4lE_EDjXkIX4ud0rwavjJGegiimX_MNl0CcTeNssuFwo8DiKOh7sRVo6uiTa8DaccS81wzkAHZqqkLN6SiXCzNpaaBpOCaQRqDT9FFhPFKf4oO7bhzEZ.2FSvdbxsJlJdW8Lja4Oyfc5cgq_hey0WpG7jXevwlps + pragma: + - no-cache + request-id: + - 4e2e67f2-848b-44bf-b3a6-e936264f03fb + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleAssignments/5fbdecd4-d932-459c-b680-26b5ee3e1ef3?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","createdOn":"2020-01-06T09:54:34.2306815Z","updatedOn":"2020-01-06T09:54:34.2306815Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleAssignments/5fbdecd4-d932-459c-b680-26b5ee3e1ef3","type":"Microsoft.Authorization/roleAssignments","name":"5fbdecd4-d932-459c-b680-26b5ee3e1ef3"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:54:35 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-ms-request-charge: + - '3' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:54:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:54:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"sig1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG1YV253N\"\r\n },\r\n \"provisioningState\": + \"Creating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/2182d6fb-a951-416c-9512-54c863464e00?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '477' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:54:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/2182d6fb-a951-416c-9512-54c863464e00?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-06T09:54:43.7659089+00:00\",\r\n \"endTime\": + \"2020-01-06T09:54:44.0940548+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"2182d6fb-a951-416c-9512-54c863464e00\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"sig1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG1YV253N\"\r\n },\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '478' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:54:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {}, "properties": {"osType": "Linux", "osState": + "Generalized", "hyperVGeneration": "V1", "identifier": {"publisher": "publisher1", + "offer": "offer1", "sku": "sku1"}, "disallowed": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + Content-Length: + - '217' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/d61c9d94-aa0b-49a8-8d1d-fd42fa7a5e6f?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/d61c9d94-aa0b-49a8-8d1d-fd42fa7a5e6f?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-06T09:55:23.9846989+00:00\",\r\n \"endTime\": + \"2020-01-06T09:55:24.2034261+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"d61c9d94-aa0b-49a8-8d1d-fd42fa7a5e6f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '591' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:54:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:55:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus2", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "image1", "type": "SharedImage", "galleryImageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1", + "replicationRegions": ["westus", "eastus"]}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '718' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\",\n \"eastus\"\n ],\n + \ \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n + \ ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4f82ade8-9bc1-4239-9950-5c1a01461dfc?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1209' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:56:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4f82ade8-9bc1-4239-9950-5c1a01461dfc?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"4F82ADE8-9BC1-4239-9950-5C1A01461DFC\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:56:05.9271582Z\",\n \"endTime\": + \"2020-01-06T09:56:39.7887334Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:56:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\",\n \"eastus\"\n ],\n + \ \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n + \ ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1300' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:56:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml new file mode 100644 index 00000000000..150913a5e0e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml @@ -0,0 +1,845 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:56:55 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Mon, 06 Jan 2020 09:56:56 GMT + duration: + - '2442596' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - MyXkuuucvtfqmuBsmOmbpR1a2jnRcnaf21J/umpfIQI= + ocp-aad-session-key: + - nWj0U8KNvVtGpTTAyJDIL2wqG8fqvL3tMWmuwGYtPgAhbAIUVZlNOOG460cahX6SYRuxTQa4SdDuH4TeW5haFA4lHaQnfaEqcWzbbkXA7v0VcaOVd8uY637QpG3IdXuN.Db1lgGE2Z6TzoH8R41LXLx8QjZRVFAdBv0JHQS5vfOU + pragma: + - no-cache + request-id: + - cdd59ea0-8fc7-46a7-9e6b-cecf328db1ba + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/d5b13110-25f1-4b35-b677-67b02623a525?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:56:57.4032984Z","updatedOn":"2020-01-06T09:56:57.4032984Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/d5b13110-25f1-4b35-b677-67b02623a525","type":"Microsoft.Authorization/roleAssignments","name":"d5b13110-25f1-4b35-b677-67b02623a525"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:56:58 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '2' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --managed-image --managed-image-location --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --managed-image --managed-image-location --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --artifact-tags --is-vhd --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --artifact-tags --is-vhd --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jan 2020 09:57:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus2", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "managed_img_1", "artifactTags": {}, "type": + "ManagedImage", "imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1", + "location": "westus2"}, {"runOutputName": "vhd_1", "artifactTags": {"is_vhd": + "True"}, "type": "VHD"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + Content-Length: + - '783' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n + \ \"location\": \"westus2\",\n \"runOutputName\": \"managed_img_1\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": + \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n + \ }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4ab0e9df-2793-42ec-af07-6aa3f8586a0e?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1269' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:57:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4ab0e9df-2793-42ec-af07-6aa3f8586a0e?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"4AB0E9DF-2793-42EC-AF07-6AA3F8586A0E\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-06T09:57:13.4427959Z\",\n \"endTime\": + \"2020-01-06T09:57:44.7273803Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:57:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n + \ \"location\": \"westus2\",\n \"runOutputName\": \"managed_img_1\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": + \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n + \ }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1360' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:57:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template output clear + Connection: + - keep-alive + ParameterSetName: + - -n -g --defer + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n + \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n + \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": + \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n + \ \"location\": \"westus2\",\n \"runOutputName\": \"managed_img_1\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": + \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n + \ }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '1360' + content-type: + - application/json + date: + - Mon, 06 Jan 2020 09:57:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py new file mode 100644 index 00000000000..ecc9c22fd1e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -0,0 +1,447 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import unittest +from knack.util import CLIError + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + +from msrestazure.tools import parse_resource_id + +# pylint: disable=line-too-long +# pylint: disable=too-many-lines + +# todo: store a local copy of this. +TEST_SHELL_SCRIPT_URL = "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh" +TEST_PWSH_SCRIPT_URL = "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1" +TEST_PWSH_SCRIPT_INLINE = [ + '"mkdir c:\\buildActions"', + '"echo Azure-Image-Builder-Was-Here > c:\\buildActions\\buildActionsOutput.txt"' +] + +LINUX_IMAGE_SOURCE = "Canonical:UbuntuServer:18.04-LTS:18.04.201808140" +WIN_IMAGE_SOURCE = "MicrosoftWindowsServer:WindowsServer:2019-Datacenter:2019.0.20190214" +INDEX_FILE = "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html" + + +class ImageTemplateTest(ScenarioTest): + def _assign_ib_permissions(self, rg): # need to manually give IB service permission to add image to grou + subscription_id = self.get_subscription_id() + assignee = "cf32a0cc-373c-47c9-9156-0db11f6a6dfc" + + self.kwargs.update({ + 'sub': subscription_id, + 'assignee': assignee, + 'role': 'Contributor', + 'scope': '/subscriptions/{}/resourceGroups/{}'.format(subscription_id, rg) + }) + + try: + self.cmd("role assignment create --assignee {assignee} --role {role} --scope {scope}") + except AssertionError as ex: + if self.is_live: + raise ex + pass + + @ResourceGroupPreparer(name_prefix='img_tmpl_basic') + def test_image_template_basic(self, resource_group): + self._assign_ib_permissions(resource_group) + + subscription_id = self.get_subscription_id() + self.kwargs.update({ + 'tmpl_01': 'template01', + 'tmpl_02': 'template02', + 'img_src': LINUX_IMAGE_SOURCE, + 'script': TEST_SHELL_SCRIPT_URL, + 'sub': subscription_id, + 'vhd_out': "my_vhd_output", + }) + + # test template creation works. use cache + self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} {script} --image-source {img_src} --defer', + checks=[ + self.check('properties.source.offer', 'UbuntuServer'), self.check('properties.source.publisher', 'Canonical'), + self.check('properties.source.sku', '18.04-LTS'), self.check('properties.source.version', '18.04.201808140'), + self.check('properties.source.type', 'PlatformImage'), + self.check('length(properties.customize)', 2), + + self.check('properties.customize[0].name', 'customizeScript.sh'), self.check('properties.customize[0].scriptUri', TEST_SHELL_SCRIPT_URL), + self.check('properties.customize[0].type', 'Shell'), + self.check('properties.customize[1].name', 'customizeScript.sh'), self.check('properties.customize[1].scriptUri', TEST_SHELL_SCRIPT_URL), + self.check('properties.customize[1].type', 'Shell'), + ]) + + self.kwargs.update({ + 'new_img': 'new_img', + 'new_loc': 'southcentralus' + }) + + # test managed image output + out_2 = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/images/{}".format(subscription_id, resource_group, 'new_img') + self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {new_img} --managed-image-location {new_loc} --defer', + checks=[ + self.check('properties.distribute[0].imageId', out_2), + self.check('properties.distribute[0].location', '{new_loc}'), + self.check('properties.distribute[0].runOutputName', '{new_img}'), + self.check('properties.distribute[0].type', 'ManagedImage') + ]) + + # test vhd output + self.cmd('image template output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --is-vhd --defer', + checks=[ + self.check('properties.distribute[1].runOutputName', '{vhd_out}'), + self.check('properties.distribute[1].type', 'VHD') + ]) + + # finally send request to ARM using cached object + self.cmd('image template update -n {tmpl_01} -g {rg}', + checks=[ + self.check('name', '{tmpl_01}'), self.check('provisioningState', 'Succeeded'), + self.check('source.offer', 'UbuntuServer'), self.check('source.publisher', 'Canonical'), + self.check('source.sku', '18.04-LTS'), self.check('source.version', '18.04.201808140'), + self.check('source.type', 'PlatformImage'), + self.check('length(customize)', 2), + self.check('length(distribute)', 2), + + self.check('customize[0].name', 'customizeScript.sh'), + self.check('customize[0].scriptUri', TEST_SHELL_SCRIPT_URL), self.check('customize[0].type', 'Shell'), + self.check('customize[1].name', 'customizeScript.sh'), + self.check('customize[1].scriptUri', TEST_SHELL_SCRIPT_URL), self.check('customize[1].type', 'Shell'), + + self.check('distribute[0].imageId', out_2), + self.check('distribute[0].location', '{new_loc}'), + self.check('distribute[0].runOutputName', '{new_img}'), + self.check('distribute[0].type', 'ManagedImage'), + self.check('distribute[1].runOutputName', '{vhd_out}'), + self.check('distribute[1].type', 'VHD') + ]) + + # test that outputs can be set through create command. + out_3 = "/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/images/img_2=centralus" + self.cmd('image template create -n {tmpl_02} -g {rg} --scripts {script} --image-source {img_src} --build-timeout 22' + ' --managed-image-destinations img_1=westus ' + out_3, + checks=[ + self.check('name', '{tmpl_02}'), self.check('provisioningState', 'Succeeded'), + self.check('length(distribute)', 2), + self.check('distribute[0].imageId', '/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/images/img_1'), + self.check('distribute[0].location', 'westus'), + self.check('distribute[0].runOutputName', 'img_1'), + self.check('distribute[0].type', 'ManagedImage'), + self.check('distribute[1].imageId', '/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/images/img_2'), + self.check('distribute[1].location', 'centralus'), + self.check('distribute[1].runOutputName', 'img_2'), + self.check('distribute[1].type', 'ManagedImage'), + self.check('buildTimeoutInMinutes', 22) + ]) + + @ResourceGroupPreparer(name_prefix='img_tmpl_basic_2', location="westus2") + def test_image_template_basic_sig(self, resource_group): + self._assign_ib_permissions(resource_group) + + subscription_id = self.get_subscription_id() + self.kwargs.update({ + 'tmpl_01': 'template01', + 'img_src': LINUX_IMAGE_SOURCE, + 'script': TEST_SHELL_SCRIPT_URL, + 'sub': subscription_id, + 'gallery': self.create_random_name("sig1", 10), + 'sig1': 'image1' + }) + + # create a sig + self.cmd('sig create -g {rg} --gallery-name {gallery}', checks=self.check('name', self.kwargs['gallery'])) + + self.cmd('sig image-definition create -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1} ' + '--os-type linux -p publisher1 -f offer1 -s sku1') + + # Test that sig output can be set through output. + + self.kwargs['sig_out'] = "{}/{}=westus,eastus".format(self.kwargs['gallery'], self.kwargs['sig1']) + output = self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} ' + '--shared-image-destinations {sig_out}', + checks=[ + self.check('distribute[0].replicationRegions[0]', 'westus'), + self.check('distribute[0].replicationRegions[1]', 'eastus'), + self.check('distribute[0].runOutputName', '{sig1}') + ]).get_output_in_json() + + parsed = parse_resource_id(output['distribute'][0]['galleryImageId']) + + self.assertTrue(parsed['name'], self.kwargs['gallery']) + self.assertTrue(parsed['child_name_1'], self.kwargs['sig1']) + + @ResourceGroupPreparer(name_prefix='img_tmpl_managed') + def test_image_build_managed_image(self, resource_group, resource_group_location): + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'tmpl_1': 'template01', + 'tmpl_2': 'template02', + 'img_src': LINUX_IMAGE_SOURCE, + 'script': TEST_SHELL_SCRIPT_URL, + 'loc': resource_group_location, + 'vm': 'testvm', + 'img_1': 'img_1', + 'img_2': 'img_2' + }) + + # create and build image template + self.cmd('image template create -n {tmpl_1} -g {rg} --image-source {img_src} --managed-image-destinations {img_1}={loc} --scripts {script}') + self.cmd('image template run -n {tmpl_1} -g {rg}') + + # get the run output + output = self.cmd('image template show-runs -n {tmpl_1} -g {rg} --output-name {img_1}', + checks=self.check('provisioningState', 'Succeeded') + ).get_output_in_json() + + self.kwargs['image_id'] = output['artifactId'] + + # check that vm successfully created from template. + self.cmd('vm create --name {vm} -g {rg} --image {image_id} --generate-ssh-keys') + self.cmd('vm show -n {vm} -g {rg}', checks=self.check('provisioningState', 'Succeeded')) + + # test template creation from managed image + img_tmpl = self.cmd('image template create -n {tmpl_2} -g {rg} --image-source {image_id} ' + '--managed-image-destinations {img_2}={loc} --scripts {script}').get_output_in_json() + + self.assertEqual(img_tmpl['source']['imageId'].lower(), self.kwargs['image_id'].lower()) + self.assertEqual(img_tmpl['source']['type'].lower(), 'managedimage') + + @ResourceGroupPreparer(name_prefix='img_tmpl_sig') + def test_image_build_shared_image(self, resource_group, resource_group_location): + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'loc': resource_group_location, + 'img_src': LINUX_IMAGE_SOURCE, + 'gallery': self.create_random_name("ib_sig", 10), + 'sig1': 'image1', + 'tmpl': 'template01', + 'tmpl_2': 'template02', + 'script': TEST_SHELL_SCRIPT_URL, + 'vm': 'custom-vm' + }) + + self.cmd('sig create -g {rg} --gallery-name {gallery}', checks=self.check('name', self.kwargs['gallery'])) + self.cmd('sig image-definition create -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1} ' + '--os-type linux -p publisher1 -f offer1 -s sku1') + + self.cmd('image template create -n {tmpl} -g {rg} --scripts {script} --image-source {img_src} --defer') + self.cmd('image template output add -n {tmpl} -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1}' + ' --gallery-replication-regions westus --defer', + checks=[ + self.check('properties.distribute[0].replicationRegions[0]', 'westus'), + self.check('properties.distribute[0].runOutputName', '{sig1}') + ]) + + # send put request using cached template object + self.cmd('image template update -n {tmpl} -g {rg}', checks=[ + self.check('distribute[0].replicationRegions[0]', 'westus'), + self.check('distribute[0].runOutputName', '{sig1}') + ]) + + # Takes a long time to build a SIG based image template. + self.cmd('image template run -n {tmpl} -g {rg}') + + output = self.cmd('image template show-runs -n {tmpl} -g {rg} --output-name {sig1}', + checks=self.check('provisioningState', 'Succeeded') + ).get_output_in_json() + + self.kwargs['image_id'] = output['artifactId'] + + # check that vm successfully created from template. + self.cmd('vm create --name {vm} -g {rg} --image {image_id} --generate-ssh-keys') + self.cmd('vm show -n {vm} -g {rg}', checks=self.check('provisioningState', 'Succeeded')) + + # test template creation from sig image + img_tmpl = self.cmd('image template create -n {tmpl_2} -g {rg} --image-source {image_id} ' + '--shared-image-destinations "{gallery}/{sig1}={loc}" --scripts {script}').get_output_in_json() + + self.assertEqual(img_tmpl['source']['imageVersionId'].lower(), self.kwargs['image_id'].lower()) + self.assertEqual(img_tmpl['source']['type'].lower(), 'sharedimageversion') + + @ResourceGroupPreparer(name_prefix='img_tmpl_customizers') + def test_image_builder_customizers(self, resource_group, resource_group_location): + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'tmpl': 'template01', + 'loc': resource_group_location, + 'vm': 'testvm', + 'img': 'img_1', + 'img_src': WIN_IMAGE_SOURCE, + + 'pwsh_name': 'powershell_script', + 'pwsh_name_2': 'powershell_script_inline', + 'shell_name': 'shell_script', + 'win_restart_name': 'windows_restart_name', + 'file_name': 'file_customizer_name', + + 'script_url': TEST_PWSH_SCRIPT_URL, + 'inline_script': " ".join(TEST_PWSH_SCRIPT_INLINE), + 'inline_shell_script': 'sudo apt install unattended-upgrades', + 'file_url': 'https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html', + 'file_dest_path': 'c:\\buildArtifacts\\index.html', + 'win_restart_check_cmd': 'echo Azure-Image-Builder-Restarted-the-VM > c:\\buildArtifacts\\azureImageBuilderRestart.txt', + }) + + # create and build image template + self.cmd('image template create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --managed-image-destinations {img}={loc} --defer', + checks=[ + self.check('properties.customize[0].name', self.kwargs['script_url'].rsplit("/", 1)[1]), + self.check('properties.customize[0].scriptUri', '{script_url}'), + self.check('properties.customize[0].type', 'PowerShell') + ]) + + # Test customizer add, remove and clear.. + + self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url} --defer', + checks=[ + self.check('properties.customize[1].name', '{pwsh_name}'), + self.check('properties.customize[1].scriptUri', '{script_url}'), + self.check('properties.customize[1].validExitCodes', '[0, 1, 2]'), + self.check('properties.customize[1].type', 'PowerShell') + ]) + + img_tmpl = self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name_2} --type powershell -e 12 14 16 --inline-script {inline_script} --defer', + checks=[ + self.check('properties.customize[2].name', '{pwsh_name_2}'), + self.check('properties.customize[2].validExitCodes', '[12, 14, 16]'), + self.check('properties.customize[2].type', 'PowerShell') + ]).get_output_in_json() + + self.assertEqual(img_tmpl['properties']['customize'][2]['inline'][0], TEST_PWSH_SCRIPT_INLINE[0][1:-1]) # strip extra quotation + self.assertEqual(img_tmpl['properties']['customize'][2]['inline'][1], TEST_PWSH_SCRIPT_INLINE[1][1:-1]) # strip extra quotation + + self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {win_restart_name} -t windows-restart --restart-check-command "{win_restart_check_cmd}" --defer', + checks=[ + self.check('properties.customize[3].name', '{win_restart_name}'), + self.check('properties.customize[3].restartCheckCommand', '{win_restart_check_cmd}'), + self.check('properties.customize[3].restartTimeout', '5m'), + self.check('properties.customize[3].type', 'WindowsRestart') + ]) + + # add file customizer + self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {file_name} -t file --file-source "{file_url}" --dest-path "{file_dest_path}" --defer', + checks=[ + self.check('properties.customize[4].name', '{file_name}'), + self.check('properties.customize[4].sourceUri', '{file_url}'), + self.check('properties.customize[4].destination', '{file_dest_path}'), + self.check('properties.customize[4].type', 'File') + ]) + + # add shell script argument even though this is a windows image template + self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {shell_name} --type shell --inline-script "{inline_shell_script}" --defer', + checks=[ + self.check('properties.customize[5].name', '{shell_name}'), + self.check('properties.customize[5].inline[0]', '{inline_shell_script}'), + self.check('properties.customize[5].type', 'Shell') + ]) + + self.cmd('image template customizer remove -n {tmpl} -g {rg} --customizer-name {shell_name} --defer', checks=[ + self.check('length(properties.customize)', 5) + ]) + + # create image template from cache + self.cmd('image template update -n {tmpl} -g {rg}', checks=[ + self.check('length(customize)', 5) + ]) + + # test clear using object cache + self.cmd('image template customizer clear -n {tmpl} -g {rg} --defer', checks=[ + self.check('length(properties.customize)', 0) + ]) + + @ResourceGroupPreparer(name_prefix='img_tmpl_customizers', location='westus2') + def test_image_template_outputs(self, resource_group, resource_group_location): + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'tmpl_01': 'template01', + 'img_src': LINUX_IMAGE_SOURCE, + 'script': TEST_SHELL_SCRIPT_URL, + 'loc': resource_group_location, + 'img_1': 'managed_img_1', + 'img_2': 'managed_img_2', + 'vhd_out': 'vhd_1', + }) + + self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} --defer') + + self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {img_1} --managed-image-location {loc} --defer', + checks=[ + self.check('properties.distribute[0].location', '{loc}'), + self.check('properties.distribute[0].runOutputName', '{img_1}'), + self.check('properties.distribute[0].type', 'ManagedImage') + ]) + + self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {img_2} --managed-image-location {loc} --defer', + checks=[ + self.check('properties.distribute[1].location', '{loc}'), + self.check('properties.distribute[1].runOutputName', '{img_2}'), + self.check('properties.distribute[1].type', 'ManagedImage') + ]) + + self.cmd('image template output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --artifact-tags "is_vhd=True" --is-vhd --defer', + checks=[ + self.check('properties.distribute[2].artifactTags.is_vhd', 'True'), + self.check('properties.distribute[2].runOutputName', '{vhd_out}'), + self.check('properties.distribute[2].type', 'VHD') + ]) + + self.cmd('image template output remove -n {tmpl_01} -g {rg} --output-name {img_2} --defer', + checks=[ + self.check('length(properties.distribute)', 2) + ]) + + # create image template from cache + self.cmd('image template update -n {tmpl_01} -g {rg}', checks=[ + self.check('length(distribute)', 2) + ]) + + # test clear using object cache + self.cmd('image template output clear -n {tmpl_01} -g {rg} --defer', + checks=[ + self.check('length(properties.distribute)', 0) + ]) + + @ResourceGroupPreparer(name_prefix='img_tmpl_customizers', location='westus2') + def test_defer_only_commands(self, resource_group, resource_group_location): + def _ensure_cmd_raises_defer_error(self, cmds): + for cmd in cmds: + with self.assertRaisesRegexp(CLIError, "This command requires --defer"): + self.cmd(cmd) + + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'tmpl': 'template01', + 'img_src': WIN_IMAGE_SOURCE, + 'script_url': TEST_PWSH_SCRIPT_URL, + 'pwsh_name': 'powershell_script', + 'vhd_name': 'example.vhd', + }) + + self.cmd('image template create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --defer') + + # test that customizer commands require defer + customizer_commands = [ + 'image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url}', + 'image template customizer remove -n {tmpl} -g {rg} --customizer-name {pwsh_name}', + 'image template customizer clear -n {tmpl} -g {rg}' + ] + _ensure_cmd_raises_defer_error(self, customizer_commands) + + # test that output commands require defer + output_commands = [ + 'image template output add -n {tmpl} -g {rg} --is-vhd --output-name {vhd_name}', + 'image template output remove -n {tmpl} -g {rg} --output-name {vhd_name}', + 'image template output clear -n {tmpl} -g {rg}' + ] + _ensure_cmd_raises_defer_error(self, output_commands) + + +if __name__ == '__main__': + unittest.main() From 448b7b34695a8d58500d65f17e86f93b3d59dc30 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Wed, 15 Jan 2020 15:15:31 +0800 Subject: [PATCH 02/19] [Compute] image template create: add --customize and --distribute --- .../cli/command_modules/vm/_image_builder.py | 63 +- .../azure/cli/command_modules/vm/_params.py | 2 + .../command_modules/vm/tests/latest/cus.json | 39 + .../test_image_template_no_defer.yaml | 1753 +++++++++++++++++ .../latest/test_image_builder_commands.py | 22 + 5 files changed, 1857 insertions(+), 22 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_no_defer.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index 70761a36f1e..f0ea201e04e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -7,6 +7,8 @@ # i.e something like image_builder/_client_factory image_builder/commands.py image_builder/_params.py import re +import json +from json import JSONDecodeError from enum import Enum @@ -374,7 +376,7 @@ def create_image_template( # pylint: disable=too-many-locals cmd, client, resource_group_name, image_template_name, location=None, source_dict=None, scripts_list=None, destinations_lists=None, build_timeout=None, tags=None, source=None, scripts=None, checksum=None, managed_image_destinations=None, # pylint: disable=unused-argument - shared_image_destinations=None, no_wait=False): # pylint: disable=unused-argument, too-many-locals + shared_image_destinations=None, no_wait=False, customize=None, distribute=None): # pylint: disable=unused-argument, too-many-locals from azure.mgmt.imagebuilder.models import (ImageTemplate, ImageTemplateSharedImageVersionSource, ImageTemplatePlatformImageSource, ImageTemplateIsoSource, ImageTemplateManagedImageSource, # pylint: disable=line-too-long ImageTemplateShellCustomizer, ImageTemplatePowerShellCustomizer, @@ -394,29 +396,46 @@ def create_image_template( # pylint: disable=too-many-locals # create image template customizer settings # Script structure can be found in _parse_script's function definition - for script in scripts_list: - script.pop("is_url") - script["script_uri"] = script.pop("script") - - if script["type"] == ScriptType.SHELL: - template_scripts.append(ImageTemplateShellCustomizer(**script)) - elif script["type"] == ScriptType.POWERSHELL: - template_scripts.append(ImageTemplatePowerShellCustomizer(**script)) - else: # Should never happen - logger.debug("Script %s has type %s", script["script"], script["type"]) - raise CLIError("Script {} has an invalid type.".format(script["script"])) + if customize is not None: + if scripts_list: + raise CLIError('usage error: Do not use --scripts and --customize together') + try: + template_scripts = json.loads(customize) + except JSONDecodeError: + raise CLIError('usage error: JSON decode error in --customize') + else: + for script in scripts_list: + script.pop("is_url") + script["script_uri"] = script.pop("script") + + if script["type"] == ScriptType.SHELL: + template_scripts.append(ImageTemplateShellCustomizer(**script)) + elif script["type"] == ScriptType.POWERSHELL: + template_scripts.append(ImageTemplatePowerShellCustomizer(**script)) + else: # Should never happen + logger.debug("Script %s has type %s", script["script"], script["type"]) + raise CLIError("Script {} has an invalid type.".format(script["script"])) # create image template distribution / destination settings - for dest_type, rid, loc_info in destinations_lists: - parsed = parse_resource_id(rid) - if dest_type == _DestType.MANAGED_IMAGE: - template_destinations.append(ImageTemplateManagedImageDistributor( - image_id=rid, location=loc_info, run_output_name=parsed['name'])) - elif dest_type == _DestType.SHARED_IMAGE_GALLERY: - template_destinations.append(ImageTemplateSharedImageDistributor( - gallery_image_id=rid, replication_regions=loc_info, run_output_name=parsed['child_name_1'])) - else: - logger.info("No applicable destination found for destination %s", str(tuple([dest_type, rid, loc_info]))) + if distribute is not None: + if destinations_lists: + raise CLIError('usage error: Do not use (--managed-image-destinations | --shared-image-destinations) and --distribute together') + try: + template_destinations = json.loads(distribute) + except JSONDecodeError: + raise CLIError('usage error: JSON decode error in --distribute') + + else: + for dest_type, rid, loc_info in destinations_lists: + parsed = parse_resource_id(rid) + if dest_type == _DestType.MANAGED_IMAGE: + template_destinations.append(ImageTemplateManagedImageDistributor( + image_id=rid, location=loc_info, run_output_name=parsed['name'])) + elif dest_type == _DestType.SHARED_IMAGE_GALLERY: + template_destinations.append(ImageTemplateSharedImageDistributor( + gallery_image_id=rid, replication_regions=loc_info, run_output_name=parsed['child_name_1'])) + else: + logger.info("No applicable destination found for destination %s", str(tuple([dest_type, rid, loc_info]))) image_template = ImageTemplate(source=template_source, customize=template_scripts, distribute=template_destinations, location=location, build_timeout_in_minutes=build_timeout, tags=(tags or {})) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 38bb6bf96cc..fe8a3e230d1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -195,11 +195,13 @@ def load_arguments(self, _): c.argument('', arg_type=ib_source_type) # Image Customizer Arguments + c.argument('customize', arg_type=ib_customizer_type, help='Specify the properties used to describe the customization steps of the image. JSON format. Do not use it together with --scripts. Examples: https://github.com/danielsollondon/azvmimagebuilder/tree/master/quickquickstarts') c.argument('scripts', arg_type=ib_customizer_type) c.argument('', arg_type=ib_customizer_type) c.argument('', arg_type=ib_customizer_type) # Image Output Arguments + c.argument('distribute', arg_type=ib_cutput_type, help='The distribution targets where the image output needs to go to. JSON format. Do not use it together with other arguments in Ouput Arguments.') c.argument('managed_image_destinations', arg_type=ib_cutput_type) c.argument('shared_image_destinations', arg_type=ib_cutput_type) c.argument('output_name', arg_type=ib_cutput_type) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json new file mode 100644 index 00000000000..d6e877db520 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json @@ -0,0 +1,39 @@ +[ + { + "type": "Shell", + "name": "RunScriptFromSource", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh" + }, + + { + "type": "Shell", + "name": "CheckSumCompareShellScript", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh", + "sha256Checksum": "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" + }, + + { + "type": "File", + "name": "downloadBuildArtifacts", + "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination":"/tmp/index.html" + }, + + { + "type": "Shell", + "name": "setupBuildPath", + "inline": [ + "sudo mkdir /buildArtifacts", + "sudo cp /tmp/index.html /buildArtifacts/index.html" + ] + }, + + { + "type": "Shell", + "name": "InstallUpgrades", + "inline": [ + "sudo apt install unattended-upgrades" + ] + } + +] \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_no_defer.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_no_defer.yaml new file mode 100644 index 00000000000..595b5c4459a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_no_defer.yaml @@ -0,0 +1,1753 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 15 Jan 2020 06:49:52 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Wed, 15 Jan 2020 06:49:53 GMT + duration: + - '2455038' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - 2EmpKpzlpLpxeyXzgTeNX/AE8Pltb4Zb9X0Z3ZtEJA8= + ocp-aad-session-key: + - p08PHIR_F_D3VZXVYy6Pjs8W6zKDthtCVl2fsbL80zVdWCKJV2ZwooEEiHOddHds0PcK-7WH_K6r_j8C9HwIyF_GwAO00ozAWxlisAVKh9YMaFABrsUqMQTk4AXLcUcW.czqwrQ33KlkyL0U7flPZN43YQ1gRjXOvwcVUjh-_M28 + pragma: + - no-cache + request-id: + - 9197d69a-b394-4f59-8312-a6f169caddbb + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Authorization/roleAssignments/ac1ca9bf-1b54-403a-ab40-5d55b941dc24?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001","createdOn":"2020-01-15T06:49:54.3824643Z","updatedOn":"2020-01-15T06:49:54.3824643Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Authorization/roleAssignments/ac1ca9bf-1b54-403a-ab40-5d55b941dc24","type":"Microsoft.Authorization/roleAssignments","name":"ac1ca9bf-1b54-403a-ab40-5d55b941dc24"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 15 Jan 2020 06:49:58 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-ms-request-charge: + - '5' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_template_no_defer000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001","name":"cli_test_image_template_no_defer000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-15T06:49:48Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 15 Jan 2020 06:50:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 15 Jan 2020 06:50:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "RunScriptFromSource", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "CheckSumCompareShellScript", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh"}, + {"name": "downloadBuildArtifacts", "type": "File", "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination": "/tmp/index.html"}, {"name": "setupBuildPath", "type": "Shell", + "inline": ["sudo mkdir /buildArtifacts", "sudo cp /tmp/index.html /buildArtifacts/index.html"]}, + {"name": "InstallUpgrades", "type": "Shell", "inline": ["sudo apt install unattended-upgrades"]}], + "distribute": [{"runOutputName": "img_1", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + Content-Length: + - '1326' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_template_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"location\": \"westus\",\n \"name\": \"tmp1\",\n \"properties\": {\n \"source\": + {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": + \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n + \ },\n \"customize\": [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": + \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5e9dcc81-09fc-4c05-955e-2cdbafe72ad8?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1900' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5e9dcc81-09fc-4c05-955e-2cdbafe72ad8?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"5E9DCC81-09FC-4C05-955E-2CDBAFE72AD8\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:50:06.4586571Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:50:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5e9dcc81-09fc-4c05-955e-2cdbafe72ad8?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"5E9DCC81-09FC-4C05-955E-2CDBAFE72AD8\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-15T06:50:06.4586571Z\",\n \"endTime\": + \"2020-01-15T06:50:41.7645968Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:51:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_template_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"location\": \"westus\",\n \"name\": \"tmp1\",\n \"properties\": {\n \"source\": + {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": + \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n + \ },\n \"customize\": [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": + \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"sha256Checksum\": \"ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '2171' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:51:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_template_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1/run?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 15 Jan 2020 06:51:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:51:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:52:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:52:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:53:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:53:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:54:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:54:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:55:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:55:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:56:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:57:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:57:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:58:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:58:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:59:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 06:59:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:00:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:00:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:01:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:01:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:02:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:02:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:03:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image template run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.80 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7b2dbec8-9149-45e7-8196-09eeb22f89da?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7B2DBEC8-9149-45E7-8196-09EEB22F89DA\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-01-15T06:51:14.9278258Z\",\n \"endTime\": + \"2020-01-15T07:03:49.6261175Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Wed, 15 Jan 2020 07:03:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index ecc9c22fd1e..900fdbc4a23 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -45,6 +45,28 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi raise ex pass + @ResourceGroupPreparer(name_prefix='cli_test_image_template_no_defer') + def test_image_template_no_defer(self, resource_group, resource_group_location): + self._assign_ib_permissions(resource_group) + subscription_id = self.get_subscription_id() + self.kwargs.update({ + 'tmp': 'tmp1', + 'img_src': LINUX_IMAGE_SOURCE, + 'img_1': 'img_1', + 'loc': resource_group_location, + }) + + self.cmd('image template create -g {rg} -n {tmp} --image-source {img_src} --customize @cus.json --managed-image-destinations {img_1}={loc}', checks=[ + self.check('source.offer', 'UbuntuServer'), + self.check('source.publisher', 'Canonical'), + self.check('source.sku', '18.04-LTS'), + self.check('source.version', '18.04.201808140'), + self.check('source.type', 'PlatformImage'), + self.check('length(customize)', 5), + ]) + + self.cmd('image template run -g {rg} -n {tmp}') + @ResourceGroupPreparer(name_prefix='img_tmpl_basic') def test_image_template_basic(self, resource_group): self._assign_ib_permissions(resource_group) From 67d1b0cce3827cc8b0c0ba258dc1d695680003f4 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Wed, 15 Jan 2020 16:12:22 +0800 Subject: [PATCH 03/19] Add history --- src/azure-cli/HISTORY.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 955ce49d96d..eea38609a46 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +**Compute** + +* image template create: Add --customize and --distribute. + **IoT Central** * Support app creation/update with the new sku name ST0, ST1, ST2. From e52f447daea0bfc6f78d13fcb9f96faf5ec0a07d Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Wed, 15 Jan 2020 16:14:16 +0800 Subject: [PATCH 04/19] Fix style --- .../vm/tests/latest/test_image_builder_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index 900fdbc4a23..f91f4a04bb4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -48,7 +48,7 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi @ResourceGroupPreparer(name_prefix='cli_test_image_template_no_defer') def test_image_template_no_defer(self, resource_group, resource_group_location): self._assign_ib_permissions(resource_group) - subscription_id = self.get_subscription_id() + self.kwargs.update({ 'tmp': 'tmp1', 'img_src': LINUX_IMAGE_SOURCE, From 01efbdb8887417551767378e0116ea5f85ff44df Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 16 Jan 2020 14:27:57 +0800 Subject: [PATCH 05/19] Update test --- .../vm/tests/latest/test_image_builder_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index f91f4a04bb4..f9626713908 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -6,7 +6,7 @@ import unittest from knack.util import CLIError -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, live_only) from msrestazure.tools import parse_resource_id @@ -45,7 +45,9 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi raise ex pass + # @cus.json has some problem in online CI checks, can't find file @ResourceGroupPreparer(name_prefix='cli_test_image_template_no_defer') + @live_only() def test_image_template_no_defer(self, resource_group, resource_group_location): self._assign_ib_permissions(resource_group) From a4aa547fd8fdac59cd1f11119349122adf7bc233 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 2 Mar 2020 01:24:20 +0800 Subject: [PATCH 06/19] rename template to builder --- .../azure/cli/command_modules/vm/_params.py | 10 +- .../azure/cli/command_modules/vm/commands.py | 6 +- .../recordings/test_defer_only_commands.yaml | 76 +- .../test_image_build_managed_image.yaml | 1081 +++++++++---- .../test_image_build_shared_image.yaml | 1418 ++++++++++------- .../recordings/test_image_builder_basic.yaml | 1012 ++++++++++++ .../test_image_builder_basic_sig.yaml | 892 +++++++++++ .../test_image_builder_customizers.yaml | 143 +- .../test_image_builder_no_defer.yaml | 1173 ++++++++++++++ .../test_image_template_outputs.yaml | 184 ++- .../latest/test_image_builder_commands.py | 90 +- 11 files changed, 4909 insertions(+), 1176 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_no_defer.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index d0989b68186..2dedfc86f13 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -167,7 +167,7 @@ def load_arguments(self, _): # endregion # region Image Templates - with self.argument_context('image template') as c: + with self.argument_context('image builder') as c: ib_output_name_help = "Name of the image builder run output." c.argument('location', get_location_type(self.cli_ctx)) @@ -182,7 +182,7 @@ def load_arguments(self, _): c.argument('output_name', help=ib_output_name_help) c.ignore('destinations_lists', 'scripts_list', 'source_dict') - with self.argument_context('image template create') as c: + with self.argument_context('image builder create') as c: ib_source_type = CLIArgumentType(arg_group="Image Source") ib_customizer_type = CLIArgumentType(arg_group="Customizer") ib_cutput_type = CLIArgumentType(arg_group="Output") @@ -206,7 +206,7 @@ def load_arguments(self, _): c.argument('shared_image_destinations', arg_type=ib_cutput_type) c.argument('output_name', arg_type=ib_cutput_type) - with self.argument_context('image template output') as c: + with self.argument_context('image builder output') as c: ib_sig_regions_help = "Space-separated list of regions to replicate the image version into." ib_img_location_help = "Location where the customized image will be created." @@ -216,7 +216,7 @@ def load_arguments(self, _): c.argument('managed_image', arg_group="Managed Image", help="Name or ID of the customized managed image to be created.") c.argument('managed_image_location', arg_group="Managed Image", help=ib_img_location_help) - with self.argument_context('image template output add') as c: + with self.argument_context('image builder output add') as c: ib_artifact_tags_help = "Tags that will be applied to the output artifact once it has been created by the distributor. " + tags_type.settings['help'] ib_artifact_tags_type = CLIArgumentType(overrides=tags_type, help=ib_artifact_tags_help, options_list=["--artifact-tags"]) ib_default_loc_help = " Defaults to resource group's location." @@ -228,7 +228,7 @@ def load_arguments(self, _): c.argument('tags', arg_type=ib_artifact_tags_type) c.ignore('location') - with self.argument_context('image template customizer') as c: + with self.argument_context('image builder customizer') as c: ib_win_restart_type = CLIArgumentType(arg_group="Windows Restart") ib_script_type = CLIArgumentType(arg_group="Shell and Powershell") ib_powershell_type = CLIArgumentType(arg_group="Powershell") diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index f1237945467..575e29a2f7c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -216,7 +216,7 @@ def load_command_table(self, _): g.command('delete', 'delete') g.generic_update_command('update', custom_func_name='update_image') - with self.command_group('image template', image_builder_image_templates_sdk, custom_command_type=image_builder_custom, is_preview=True) as g: + with self.command_group('image builder', image_builder_image_templates_sdk, custom_command_type=image_builder_custom, is_preview=True) as g: g.custom_command('create', 'create_image_template', supports_no_wait=True, supports_local_cache=True, validator=process_image_template_create_namespace) g.custom_command('list', 'list_image_templates') g.command('show', 'get') @@ -226,12 +226,12 @@ def load_command_table(self, _): g.command('run', 'run', supports_no_wait=True) g.custom_command('show-runs', 'show_build_output') - with self.command_group('image template customizer', image_builder_image_templates_sdk, custom_command_type=image_builder_custom) as g: + with self.command_group('image builder customizer', image_builder_image_templates_sdk, custom_command_type=image_builder_custom) as g: g.custom_command('add', 'add_template_customizer', supports_local_cache=True, validator=process_img_tmpl_customizer_add_namespace) g.custom_command('remove', 'remove_template_customizer', supports_local_cache=True) g.custom_command('clear', 'clear_template_customizer', supports_local_cache=True) - with self.command_group('image template output', image_builder_image_templates_sdk, custom_command_type=image_builder_custom) as g: + with self.command_group('image builder output', image_builder_image_templates_sdk, custom_command_type=image_builder_custom) as g: g.custom_command('add', 'add_template_output', supports_local_cache=True, validator=process_img_tmpl_output_add_namespace) g.custom_command('remove', 'remove_template_output', supports_local_cache=True) g.custom_command('clear', 'clear_template_output', supports_local_cache=True) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml index 7d09701c8ad..f142811990f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_defer_only_commands.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:03 GMT + - Sun, 01 Mar 2020 16:09:13 GMT expires: - '-1' pragma: @@ -46,8 +46,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-request-charge: - - '1' status: code: 200 message: OK @@ -65,8 +63,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -89,19 +87,19 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 06 Jan 2020 09:12:04 GMT + - Sun, 01 Mar 2020 16:09:14 GMT duration: - - '2571136' + - '2489909' expires: - '-1' ocp-aad-diagnostics-server-name: - - xvWJHMWAHzosjXNMZ9eWLFLy/hDOFxHPaxgG2NiJKnA= + - wL7zcXvhIXIAGeynkORCtbz/3bweluE/NT+Ij6AZJG0= ocp-aad-session-key: - - YFsQklvp272uib8HRUo1bB_XX6XQdM1Iey7u_Qd_WBhKHfHo10TVao1LdX6YR8HjU0kirgLdvnV3nhJnOc_WmlAY2uotaAzXrqNXRasAvZgvZQKXaf7iEgeaBENA-ioi.sw_EOIjAMZYa6qUng9U8e3iJhkk-KoBMZmfPQjWpUmo + - USQX9XHN6zCR2HgphgUq9CG_iHzKZGJD9Ns-9-OzmT0aiM5fMEfBECljC1uHaoN8rdaUa99hSI2wMqMqCkkxUlDN6yX4fqQHSAp7ZepfOOkorSJWeAzTSkyvKVH3WvtX.h40U0K8wh03pvktrLC9NKI_zXaBEHYseYIkwTtEuIKU pragma: - no-cache request-id: - - 0e30921a-f35e-4331-8e61-b086164deff3 + - 6f4f8550-3b7c-4bfb-abd0-82ee0daeda29 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -134,15 +132,15 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/62f3efe1-6838-42ae-9caa-6b5e72b9ae87?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/70bd4338-7366-448d-b426-560b413ba75c?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:12:04.8536603Z","updatedOn":"2020-01-06T09:12:04.8536603Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/62f3efe1-6838-42ae-9caa-6b5e72b9ae87","type":"Microsoft.Authorization/roleAssignments","name":"62f3efe1-6838-42ae-9caa-6b5e72b9ae87"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-03-01T16:09:15.9582630Z","updatedOn":"2020-03-01T16:09:15.9582630Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/70bd4338-7366-448d-b426-560b413ba75c","type":"Microsoft.Authorization/roleAssignments","name":"70bd4338-7366-448d-b426-560b413ba75c"}' headers: cache-control: - no-cache @@ -151,7 +149,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:09 GMT + - Sun, 01 Mar 2020 16:09:18 GMT expires: - '-1' pragma: @@ -163,9 +161,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '5' + - '1197' status: code: 201 message: Created @@ -177,21 +173,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:11:57Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:09:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -200,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:11 GMT + - Sun, 01 Mar 2020 16:09:18 GMT expires: - '-1' pragma: @@ -222,18 +218,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -285,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:11 GMT + - Sun, 01 Mar 2020 16:09:20 GMT expires: - '-1' pragma: @@ -307,18 +303,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --is-vhd --output-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -370,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:13 GMT + - Sun, 01 Mar 2020 16:09:21 GMT expires: - '-1' pragma: @@ -392,21 +388,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --is-vhd --output-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:11:57Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:09:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -415,7 +411,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:14 GMT + - Sun, 01 Mar 2020 16:09:22 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml index bdbbac5ae31..8e44c423526 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:25 GMT + - Sun, 01 Mar 2020 16:09:33 GMT expires: - '-1' pragma: @@ -46,8 +46,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-request-charge: - - '1' status: code: 200 message: OK @@ -65,8 +63,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -89,19 +87,19 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 06 Jan 2020 09:12:26 GMT + - Sun, 01 Mar 2020 16:09:33 GMT duration: - - '2397628' + - '2542297' expires: - '-1' ocp-aad-diagnostics-server-name: - - f7NL0FmTJ8JNWIfqHCIrTaLlqNjkXErDM8C/2jqzM2c= + - F+0yP1/iovhvk5VOGuzH+4JSs/ok0ZbZeIgR5yYgVQ4= ocp-aad-session-key: - - SMVFNKCuT9pcDamH0HSA9gbKT7U4PHBh-601wIYKLHOktpzgFkD27tig26NnsFZRPBQv_OThKuKge0uIBg82BsZ6ROQjfk_QnXo673jwWLoFKmKXPE3se41qh9uCZFvg.F70aWu7IaEfVODS10uQKOZyuvQhwovf15HjJnHkLLvY + - i8bpK9wzzOXA0I-2Pc3Us6DwTS0Jp7bRHyfk_AUKMXtQYpARn1O30SGXDy90DVAUoJwRCrzy0b2SRy52qk4JJcCkeKoOYJg3d2wympb1qeG4zToIemM0rx1PO566XPPW.ZopjGvFIquUyQS-EhNHGEv50-MUoLMmbVZRk2BL2KF0 pragma: - no-cache request-id: - - 443d9157-1bca-4152-8b8b-af31af0d37ea + - 1768482b-8f2d-4166-a963-5620b9aa3f7e strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -134,15 +132,15 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/e246d8dd-e2d6-4742-967b-33ac4d540510?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/a272c893-27ad-4751-9bdf-1830a756cf28?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","createdOn":"2020-01-06T09:12:28.0026252Z","updatedOn":"2020-01-06T09:12:28.0026252Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/e246d8dd-e2d6-4742-967b-33ac4d540510","type":"Microsoft.Authorization/roleAssignments","name":"e246d8dd-e2d6-4742-967b-33ac4d540510"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","createdOn":"2020-03-01T16:09:34.7191106Z","updatedOn":"2020-03-01T16:09:34.7191106Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Authorization/roleAssignments/a272c893-27ad-4751-9bdf-1830a756cf28","type":"Microsoft.Authorization/roleAssignments","name":"a272c893-27ad-4751-9bdf-1830a756cf28"}' headers: cache-control: - no-cache @@ -151,7 +149,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:30 GMT + - Sun, 01 Mar 2020 16:09:36 GMT expires: - '-1' pragma: @@ -163,9 +161,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '4' + - '1198' status: code: 201 message: Created @@ -177,21 +173,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:09:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -200,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:31 GMT + - Sun, 01 Mar 2020 16:09:37 GMT expires: - '-1' pragma: @@ -222,18 +218,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -285,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:12:32 GMT + - Sun, 01 Mar 2020 16:09:39 GMT expires: - '-1' pragma: @@ -313,7 +309,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive Content-Length: @@ -323,28 +319,28 @@ interactions: ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/fa23bb4d-f758-4636-b361-317a94b3ee53?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/eee84091-e5ce-4d45-b3ae-f4f918c8d80c?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -352,7 +348,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:12:42 GMT + - Sun, 01 Mar 2020 16:09:48 GMT expires: - '-1' pragma: @@ -364,7 +360,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: Created @@ -376,21 +372,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/fa23bb4d-f758-4636-b361-317a94b3ee53?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/eee84091-e5ce-4d45-b3ae-f4f918c8d80c?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"FA23BB4D-F758-4636-B361-317A94B3EE53\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:12:40.7180949Z\",\n \"endTime\": - \"2020-01-06T09:13:12.0171348Z\"\n}" + string: "{\n \"name\": \"EEE84091-E5CE-4D45-B3AE-F4F918C8D80C\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:09:46.9953819Z\",\n \"endTime\": + \"2020-03-01T16:10:19.0148266Z\"\n}" headers: cache-control: - no-cache @@ -399,7 +395,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:13:14 GMT + - Sun, 01 Mar 2020 16:10:20 GMT expires: - '-1' pragma: @@ -425,30 +421,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -457,7 +453,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:13:16 GMT + - Sun, 01 Mar 2020 16:10:21 GMT expires: - '-1' pragma: @@ -483,7 +479,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive Content-Length: @@ -491,8 +487,8 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: POST @@ -502,17 +498,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 06 Jan 2020 09:13:21 GMT + - Sun, 01 Mar 2020 16:10:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview pragma: - no-cache server: @@ -534,29 +530,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:13:52 GMT + - Sun, 01 Mar 2020 16:10:58 GMT expires: - '-1' pragma: @@ -582,29 +578,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:14:24 GMT + - Sun, 01 Mar 2020 16:11:30 GMT expires: - '-1' pragma: @@ -630,29 +626,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:14:56 GMT + - Sun, 01 Mar 2020 16:12:00 GMT expires: - '-1' pragma: @@ -678,29 +674,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:15:27 GMT + - Sun, 01 Mar 2020 16:12:35 GMT expires: - '-1' pragma: @@ -726,29 +722,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:15:59 GMT + - Sun, 01 Mar 2020 16:13:11 GMT expires: - '-1' pragma: @@ -774,29 +770,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:16:30 GMT + - Sun, 01 Mar 2020 16:13:43 GMT expires: - '-1' pragma: @@ -822,29 +818,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:17:02 GMT + - Sun, 01 Mar 2020 16:14:15 GMT expires: - '-1' pragma: @@ -870,29 +866,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:17:33 GMT + - Sun, 01 Mar 2020 16:14:47 GMT expires: - '-1' pragma: @@ -918,29 +914,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:18:06 GMT + - Sun, 01 Mar 2020 16:15:19 GMT expires: - '-1' pragma: @@ -966,29 +962,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:18:37 GMT + - Sun, 01 Mar 2020 16:15:51 GMT expires: - '-1' pragma: @@ -1014,29 +1010,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:19:09 GMT + - Sun, 01 Mar 2020 16:16:25 GMT expires: - '-1' pragma: @@ -1062,29 +1058,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:19:41 GMT + - Sun, 01 Mar 2020 16:16:57 GMT expires: - '-1' pragma: @@ -1110,29 +1106,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '122' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:20:12 GMT + - Sun, 01 Mar 2020 16:17:29 GMT expires: - '-1' pragma: @@ -1158,30 +1154,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8482ba58-a35c-46d6-be8c-d31748c0ad5b?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"8482BA58-A35C-46D6-BE8C-D31748C0AD5B\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:13:20.2337714Z\",\n \"endTime\": - \"2020-01-06T09:20:25.7860675Z\"\n}" + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" headers: cache-control: - no-cache content-length: - - '165' + - '121' content-type: - application/json date: - - Mon, 06 Jan 2020 09:20:44 GMT + - Sun, 01 Mar 2020 16:18:01 GMT expires: - '-1' pragma: @@ -1207,23 +1202,360 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template show-runs + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:18:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:19:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:19:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:20:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:20:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:21:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/055d2b00-c084-4c7a-82ff-8f12704390b1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"055D2B00-C084-4C7A-82FF-8F12704390B1\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:10:25.776819Z\",\n \"endTime\": + \"2020-03-01T16:21:29.2648817Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:21:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder show-runs Connection: - keep-alive ParameterSetName: - -n -g --output-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/img_1?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/img_1\",\n - \"name\": \"img_1\",\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n - \ \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" + string: "{\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"provisioningState\": \"Succeeded\"\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/img_1\",\n + \"name\": \"img_1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" headers: cache-control: - no-cache @@ -1232,7 +1564,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:20:48 GMT + - Sun, 01 Mar 2020 16:21:49 GMT expires: - '-1' pragma: @@ -1264,15 +1596,15 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:09:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1281,7 +1613,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:20:48 GMT + - Sun, 01 Mar 2020 16:21:50 GMT expires: - '-1' pragma: @@ -1309,8 +1641,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -1321,19 +1653,19 @@ interactions: \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n - \ \"diskSizeGB\": 30,\r\n \"blobUri\": \"https://w2qwfhn3o54w6qmwz8fhgqom.blob.core.windows.net/vhds/4df4290d-cdfa-4134-9bf0-27e132b2d860.vhd\",\r\n + \ \"diskSizeGB\": 30,\r\n \"blobUri\": \"https://jru5mbi8zt9hjkgfl791ajre.blob.core.windows.net/vhds/9e2d0ffa-6feb-4df4-a38d-8eeecb02f5ce.vhd\",\r\n \ \"caching\": \"None\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n \ },\r\n \"dataDisks\": []\r\n },\r\n \"provisioningState\": - \"Succeeded\"\r\n }\r\n}" + \"Succeeded\",\r\n \"hyperVGeneration\": \"V1\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '734' + - '765' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:20:50 GMT + - Sun, 01 Mar 2020 16:21:51 GMT expires: - '-1' pragma: @@ -1368,8 +1700,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -1385,7 +1717,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:20:50 GMT + - Sun, 01 Mar 2020 16:21:51 GMT expires: - '-1' pragma: @@ -1428,10 +1760,10 @@ interactions: "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1"}}, - "osProfile": {"computerName": "testvm", "adminUsername": "fey", "linuxConfiguration": + "osProfile": {"computerName": "testvm", "adminUsername": "yfy", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n", "path": "/home/fey/.ssh/authorized_keys"}]}}}}}], "outputs": + AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n", "path": "/home/yfy/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": {}, "mode": "Incremental"}}''' headers: Accept: @@ -1443,32 +1775,32 @@ interactions: Connection: - keep-alive Content-Length: - - '3821' + - '3993' Content-Type: - application/json; charset=utf-8 ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","name":"vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17294233630906372647","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-06T09:20:55.9097481Z","duration":"PT2.9870938S","correlationId":"a1d3b811-a612-443c-bd1f-e435efddaf48","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_yqk9zcJoOUlSSovb3f4fTeQ3Qm8abT5K","name":"vm_deploy_yqk9zcJoOUlSSovb3f4fTeQ3Qm8abT5K","type":"Microsoft.Resources/deployments","properties":{"templateHash":"834051276007465512","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-03-01T16:21:57.0964271Z","duration":"PT2.519799S","correlationId":"81071892-1d9f-41b6-a73a-f6e4e8b583ab","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd/operationStatuses/08586233044325549815?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_yqk9zcJoOUlSSovb3f4fTeQ3Qm8abT5K/operationStatuses/08586185271709010076?api-version=2019-07-01 cache-control: - no-cache content-length: - - '2779' + - '2776' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:20:56 GMT + - Sun, 01 Mar 2020 16:21:57 GMT expires: - '-1' pragma: @@ -1496,10 +1828,53 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:22:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - --name -g --image --generate-ssh-keys + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1511,7 +1886,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:21:28 GMT + - Sun, 01 Mar 2020 16:23:00 GMT expires: - '-1' pragma: @@ -1539,10 +1914,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1554,7 +1929,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:21:58 GMT + - Sun, 01 Mar 2020 16:23:30 GMT expires: - '-1' pragma: @@ -1582,10 +1957,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1597,7 +1972,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:22:28 GMT + - Sun, 01 Mar 2020 16:24:00 GMT expires: - '-1' pragma: @@ -1625,10 +2000,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1640,7 +2015,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:22:58 GMT + - Sun, 01 Mar 2020 16:24:31 GMT expires: - '-1' pragma: @@ -1668,10 +2043,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1683,7 +2058,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:23:30 GMT + - Sun, 01 Mar 2020 16:25:01 GMT expires: - '-1' pragma: @@ -1711,10 +2086,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1726,7 +2101,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:24:00 GMT + - Sun, 01 Mar 2020 16:25:32 GMT expires: - '-1' pragma: @@ -1754,10 +2129,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1769,7 +2144,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:24:30 GMT + - Sun, 01 Mar 2020 16:26:03 GMT expires: - '-1' pragma: @@ -1797,10 +2172,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233044325549815?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185271709010076?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -1812,7 +2187,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:00 GMT + - Sun, 01 Mar 2020 16:26:33 GMT expires: - '-1' pragma: @@ -1840,22 +2215,22 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","name":"vm_deploy_cOdVI5iLXaA098RF8Q7dxfL0rPAVhRnd","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17294233630906372647","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-06T09:24:39.4120963Z","duration":"PT3M46.489442S","correlationId":"a1d3b811-a612-443c-bd1f-e435efddaf48","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Resources/deployments/vm_deploy_yqk9zcJoOUlSSovb3f4fTeQ3Qm8abT5K","name":"vm_deploy_yqk9zcJoOUlSSovb3f4fTeQ3Qm8abT5K","type":"Microsoft.Resources/deployments","properties":{"templateHash":"834051276007465512","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-03-01T16:26:07.2854011Z","duration":"PT4M12.708773S","correlationId":"81071892-1d9f-41b6-a73a-f6e4e8b583ab","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testvmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testvm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/virtualNetworks/testvmVNET"}]}}' headers: cache-control: - no-cache content-length: - - '3860' + - '3858' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:01 GMT + - Sun, 01 Mar 2020 16:26:34 GMT expires: - '-1' pragma: @@ -1883,8 +2258,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -1893,22 +2268,22 @@ interactions: body: string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5759e2b-5a52-4043-9254-376ce9db24b2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"7eb04e23-2754-4ca3-889c-ebefff12f469\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"createOption\": + \"testvm_disk1_3773f68890fa4b9d837bea29e1ab8048\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/disks/testvm_disk1_c2de58728ce94cab91f36e927feee6ae\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IMG_TMPL_MANAGEDVTBKG3QCHTTMSEJ2LOHWV4J2XYHCOV6TVYYRFVCZQRUHCNQX2UMH4WNJRLJ/providers/Microsoft.Compute/disks/testvm_disk1_3773f68890fa4b9d837bea29e1ab8048\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testvm\",\r\n - \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + \ \"adminUsername\": \"yfy\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"path\": \"/home/yfy/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n\"\r\n }\r\n ]\r\n },\r\n \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\"}]},\r\n @@ -1917,16 +2292,16 @@ interactions: \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not Ready\",\r\n \"message\": \"VM status blob is found but not yet - populated.\",\r\n \"time\": \"2020-01-06T09:25:03+00:00\"\r\n }\r\n + populated.\",\r\n \"time\": \"2020-03-01T16:26:35+00:00\"\r\n }\r\n \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": - \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"statuses\": + \"testvm_disk1_3773f68890fa4b9d837bea29e1ab8048\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2020-01-06T09:23:33.1047031+00:00\"\r\n + succeeded\",\r\n \"time\": \"2020-03-01T16:24:31.2104936+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2020-01-06T09:24:34.5265978+00:00\"\r\n + succeeded\",\r\n \"time\": \"2020-03-01T16:26:02.4449154+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}" @@ -1934,11 +2309,11 @@ interactions: cache-control: - no-cache content-length: - - '3719' + - '3891' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:03 GMT + - Sun, 01 Mar 2020 16:26:35 GMT expires: - '-1' pragma: @@ -1955,7 +2330,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31983 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31990 status: code: 200 message: OK @@ -1973,8 +2348,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -1982,12 +2357,12 @@ interactions: response: body: string: "{\r\n \"name\": \"testvmVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\",\r\n - \ \"etag\": \"W/\\\"d278db0d-a01d-4b68-a2c9-47e306ecf0eb\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"0d7d6c1c-d3dd-47dd-92e5-d4ad82445f79\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"1bfbc55f-0291-42b5-8131-22c346650ea2\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"092312aa-8180-44d6-a95e-0cf62e7da848\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigtestvm\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic/ipConfigurations/ipconfigtestvm\",\r\n - \ \"etag\": \"W/\\\"d278db0d-a01d-4b68-a2c9-47e306ecf0eb\\\"\",\r\n + \ \"etag\": \"W/\\\"0d7d6c1c-d3dd-47dd-92e5-d4ad82445f79\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -1996,8 +2371,8 @@ interactions: \ },\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\": - \"yanvvofq4dju1mcg1mf0ckr3jg.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-30-20-BD\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"ro0qtaiuuabuha5ogfbkfwmctf.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-31-A2-12\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkSecurityGroups/testvmNSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -2011,9 +2386,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:04 GMT + - Sun, 01 Mar 2020 16:26:36 GMT etag: - - W/"d278db0d-a01d-4b68-a2c9-47e306ecf0eb" + - W/"0d7d6c1c-d3dd-47dd-92e5-d4ad82445f79" expires: - '-1' pragma: @@ -2030,7 +2405,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bc154d03-459c-47ac-b3c9-93aa3c954dd9 + - 480a4c38-b20e-426d-b674-f19b0069f604 status: code: 200 message: OK @@ -2048,8 +2423,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -2057,10 +2432,10 @@ interactions: response: body: string: "{\r\n \"name\": \"testvmPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/publicIPAddresses/testvmPublicIP\",\r\n - \ \"etag\": \"W/\\\"de02a926-ef0a-4d26-bbb6-33a2441aa694\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"64a37967-20cf-4c9e-bb1f-c40a7367f835\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"e81c2d0e-ee3e-4bca-84db-f4af552623bd\",\r\n - \ \"ipAddress\": \"40.118.135.58\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"88a94d3c-2a23-4a8a-a2be-73826996abd4\",\r\n + \ \"ipAddress\": \"40.83.166.111\",\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/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic/ipConfigurations/ipconfigtestvm\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -2073,9 +2448,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:04 GMT + - Sun, 01 Mar 2020 16:26:36 GMT etag: - - W/"de02a926-ef0a-4d26-bbb6-33a2441aa694" + - W/"64a37967-20cf-4c9e-bb1f-c40a7367f835" expires: - '-1' pragma: @@ -2092,7 +2467,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 17575cd2-b9cd-47de-a3c1-6f319955c9c2 + - 487bd246-fd01-4eeb-bfff-62303aada73b status: code: 200 message: OK @@ -2110,8 +2485,8 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -2120,22 +2495,22 @@ interactions: body: string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5759e2b-5a52-4043-9254-376ce9db24b2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"7eb04e23-2754-4ca3-889c-ebefff12f469\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"testvm_disk1_c2de58728ce94cab91f36e927feee6ae\",\r\n \"createOption\": + \"testvm_disk1_3773f68890fa4b9d837bea29e1ab8048\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/disks/testvm_disk1_c2de58728ce94cab91f36e927feee6ae\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IMG_TMPL_MANAGEDVTBKG3QCHTTMSEJ2LOHWV4J2XYHCOV6TVYYRFVCZQRUHCNQX2UMH4WNJRLJ/providers/Microsoft.Compute/disks/testvm_disk1_3773f68890fa4b9d837bea29e1ab8048\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testvm\",\r\n - \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + \ \"adminUsername\": \"yfy\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"path\": \"/home/yfy/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n\"\r\n }\r\n ]\r\n },\r\n \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Network/networkInterfaces/testvmVMNic\"}]},\r\n @@ -2144,11 +2519,11 @@ interactions: cache-control: - no-cache content-length: - - '2513' + - '2685' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:05 GMT + - Sun, 01 Mar 2020 16:26:38 GMT expires: - '-1' pragma: @@ -2165,7 +2540,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31982 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31989 status: code: 200 message: OK @@ -2177,21 +2552,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:12:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001","name":"img_tmpl_managed000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:09:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2200,7 +2575,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:06 GMT + - Sun, 01 Mar 2020 16:26:41 GMT expires: - '-1' pragma: @@ -2222,18 +2597,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -2285,7 +2660,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:25:07 GMT + - Sun, 01 Mar 2020 16:26:48 GMT expires: - '-1' pragma: @@ -2312,7 +2687,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive Content-Length: @@ -2322,27 +2697,27 @@ interactions: ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n - \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n - \ \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n \ \"type\": \"ManagedImage\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_2\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_2\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/6129333d-c6ce-4897-9c71-11d6212ba500?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d79d82c4-188c-441e-b73f-b46737abcb84?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -2350,7 +2725,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:25:15 GMT + - Sun, 01 Mar 2020 16:26:56 GMT expires: - '-1' pragma: @@ -2374,21 +2749,69 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image-source --managed-image-destinations --scripts + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d79d82c4-188c-441e-b73f-b46737abcb84?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"D79D82C4-188C-441E-B73F-B46737ABCB84\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:26:54.8736427Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:27:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/6129333d-c6ce-4897-9c71-11d6212ba500?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d79d82c4-188c-441e-b73f-b46737abcb84?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"6129333D-C6CE-4897-9C71-11D6212BA500\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:25:13.8916933Z\",\n \"endTime\": - \"2020-01-06T09:25:42.6220093Z\"\n}" + string: "{\n \"name\": \"D79D82C4-188C-441E-B73F-B46737ABCB84\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:26:54.8736427Z\",\n \"endTime\": + \"2020-03-01T16:27:44.2532851Z\"\n}" headers: cache-control: - no-cache @@ -2397,7 +2820,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:25:47 GMT + - Sun, 01 Mar 2020 16:28:00 GMT expires: - '-1' pragma: @@ -2423,21 +2846,19 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --managed-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n - \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n - \ \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_1\",\n \ \"type\": \"ManagedImage\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n @@ -2445,7 +2866,9 @@ interactions: {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/images/img_2\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_2\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_managed000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -2454,7 +2877,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:25:49 GMT + - Sun, 01 Mar 2020 16:28:02 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml index 87c8dc585d1..dd9a39effc9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:03 GMT + - Sun, 01 Mar 2020 16:28:14 GMT expires: - '-1' pragma: @@ -46,8 +46,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-request-charge: - - '1' status: code: 200 message: OK @@ -65,8 +63,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -89,19 +87,19 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 06 Jan 2020 09:26:03 GMT + - Sun, 01 Mar 2020 16:28:15 GMT duration: - - '2896528' + - '2769032' expires: - '-1' ocp-aad-diagnostics-server-name: - - NiyJ2AIExjQhY4Rx03EhVIBXgVFVY7HmDtQ+BOMQ6gc= + - xguPw8Z/ZczT5yPbDDvGkQM2Upn8A70k96nygYpoTFs= ocp-aad-session-key: - - _DZz39VPI9Au9ycSPhNn24m0RO9_N8GFT2fCkhOR0wrjFbjTx4tKBbb4nKxcsrIMpU-3IGydJHHX0Aw2XvuLxWqoYzoMzGD895ovTfKnRSwtuVb0dh8I9K7qKRgQgSDc.QNuRCzzsK48RG1bB90HUt-z4AD5EIHkr8WLsU3xdnwQ + - T0e5qoIqhfIHjLenFTI4i0EVq8SE4l300NozH4H8rBBMxCEqnOJO4MmupeiKnKoknfdyfXDmz-Brw8es1r4QDxA6ThPvDsYqwKM3C8vuSCrXB2VEFt9JGkpDx0Kkyaji.qDt8JmoBFbHCuJPZX-MLq6QWYDJiGJb1XsuN7So7AN8 pragma: - no-cache request-id: - - 06c6993f-799b-4a59-8f10-0ac976688f8d + - 2fd546fa-d8dc-4318-b410-3c9f9dfd5438 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -134,15 +132,15 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/090c44a7-7905-452c-9313-ae968c522b9d?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/691d04f2-c8e3-4277-9513-94b0fdf812db?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","createdOn":"2020-01-06T09:26:04.8569900Z","updatedOn":"2020-01-06T09:26:04.8569900Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/090c44a7-7905-452c-9313-ae968c522b9d","type":"Microsoft.Authorization/roleAssignments","name":"090c44a7-7905-452c-9313-ae968c522b9d"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","createdOn":"2020-03-01T16:28:16.4457936Z","updatedOn":"2020-03-01T16:28:16.4457936Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Authorization/roleAssignments/691d04f2-c8e3-4277-9513-94b0fdf812db","type":"Microsoft.Authorization/roleAssignments","name":"691d04f2-c8e3-4277-9513-94b0fdf812db"}' headers: cache-control: - no-cache @@ -151,7 +149,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:09 GMT + - Sun, 01 Mar 2020 16:28:18 GMT expires: - '-1' pragma: @@ -163,9 +161,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-ms-request-charge: - - '5' + - '1199' status: code: 201 message: Created @@ -183,15 +179,15 @@ interactions: ParameterSetName: - -g --gallery-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:28:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -200,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:10 GMT + - Sun, 01 Mar 2020 16:28:19 GMT expires: - '-1' pragma: @@ -232,8 +228,8 @@ interactions: ParameterSetName: - -g --gallery-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT @@ -243,11 +239,11 @@ interactions: string: "{\r\n \"name\": \"ib_sig000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGGEOK\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGNCTO\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/bd3951ad-1771-46a6-a1cb-49e7dd34ad7b?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/9f017475-3641-4a4e-9696-97533de796a4?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -255,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:17 GMT + - Sun, 01 Mar 2020 16:28:25 GMT expires: - '-1' pragma: @@ -268,7 +264,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -286,15 +282,15 @@ interactions: ParameterSetName: - -g --gallery-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/bd3951ad-1771-46a6-a1cb-49e7dd34ad7b?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/9f017475-3641-4a4e-9696-97533de796a4?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-06T09:26:15.8485102+00:00\",\r\n \"endTime\": - \"2020-01-06T09:26:16.1453685+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"bd3951ad-1771-46a6-a1cb-49e7dd34ad7b\"\r\n}" + string: "{\r\n \"startTime\": \"2020-03-01T16:28:24.7735758+00:00\",\r\n \"endTime\": + \"2020-03-01T16:28:25.0548566+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"9f017475-3641-4a4e-9696-97533de796a4\"\r\n}" headers: cache-control: - no-cache @@ -303,7 +299,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:47 GMT + - Sun, 01 Mar 2020 16:28:57 GMT expires: - '-1' pragma: @@ -336,8 +332,8 @@ interactions: ParameterSetName: - -g --gallery-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002?api-version=2019-07-01 response: @@ -345,7 +341,7 @@ interactions: string: "{\r\n \"name\": \"ib_sig000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGGEOK\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-IB_SIGNCTO\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -355,7 +351,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:47 GMT + - Sun, 01 Mar 2020 16:28:57 GMT expires: - '-1' pragma: @@ -388,15 +384,15 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:28:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -405,7 +401,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:49 GMT + - Sun, 01 Mar 2020 16:28:59 GMT expires: - '-1' pragma: @@ -439,8 +435,8 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT @@ -456,7 +452,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/b3d68fb9-1771-49b6-9a0b-53171c733454?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/7e07d44c-6e5d-4c0d-aea0-da25621451aa?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -464,7 +460,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:26:55 GMT + - Sun, 01 Mar 2020 16:29:09 GMT expires: - '-1' pragma: @@ -477,7 +473,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -495,15 +491,15 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/b3d68fb9-1771-49b6-9a0b-53171c733454?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/7e07d44c-6e5d-4c0d-aea0-da25621451aa?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-06T09:26:54.2080586+00:00\",\r\n \"endTime\": - \"2020-01-06T09:26:54.3330555+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b3d68fb9-1771-49b6-9a0b-53171c733454\"\r\n}" + string: "{\r\n \"startTime\": \"2020-03-01T16:29:07.6504946+00:00\",\r\n \"endTime\": + \"2020-03-01T16:29:07.7598743+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"7e07d44c-6e5d-4c0d-aea0-da25621451aa\"\r\n}" headers: cache-control: - no-cache @@ -512,7 +508,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:27:26 GMT + - Sun, 01 Mar 2020 16:29:39 GMT expires: - '-1' pragma: @@ -545,8 +541,8 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1?api-version=2019-07-01 response: @@ -566,7 +562,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:27:27 GMT + - Sun, 01 Mar 2020 16:29:39 GMT expires: - '-1' pragma: @@ -593,21 +589,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:28:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -616,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:27:28 GMT + - Sun, 01 Mar 2020 16:29:41 GMT expires: - '-1' pragma: @@ -638,18 +634,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -701,7 +697,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:27:29 GMT + - Sun, 01 Mar 2020 16:29:42 GMT expires: - '-1' pragma: @@ -723,19 +719,19 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --gallery-name --gallery-image-definition --gallery-replication-regions --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -787,7 +783,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:27:30 GMT + - Sun, 01 Mar 2020 16:29:43 GMT expires: - '-1' pragma: @@ -815,7 +811,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive Content-Length: @@ -825,29 +821,28 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": - \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": - \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/c99b8b0f-c28a-445c-baa5-70fcb8d09537?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/9b436614-368a-4b34-bba0-4a0266ec201f?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -855,7 +850,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:27:39 GMT + - Sun, 01 Mar 2020 16:29:53 GMT expires: - '-1' pragma: @@ -867,7 +862,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 201 message: Created @@ -879,21 +874,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/c99b8b0f-c28a-445c-baa5-70fcb8d09537?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/9b436614-368a-4b34-bba0-4a0266ec201f?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"C99B8B0F-C28A-445C-BAA5-70FCB8D09537\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:27:37.9230535Z\",\n \"endTime\": - \"2020-01-06T09:28:06.7152805Z\"\n}" + string: "{\n \"name\": \"9B436614-368A-4B34-BBA0-4A0266EC201F\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:29:52.6090169Z\",\n \"endTime\": + \"2020-03-01T16:30:20.6312151Z\"\n}" headers: cache-control: - no-cache @@ -902,7 +897,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:28:12 GMT + - Sun, 01 Mar 2020 16:30:26 GMT expires: - '-1' pragma: @@ -928,31 +923,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": - \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": - \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -961,7 +955,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:28:13 GMT + - Sun, 01 Mar 2020 16:30:27 GMT expires: - '-1' pragma: @@ -987,7 +981,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive Content-Length: @@ -995,8 +989,8 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: POST @@ -1006,17 +1000,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 06 Jan 2020 09:28:17 GMT + - Sun, 01 Mar 2020 16:30:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview pragma: - no-cache server: @@ -1038,20 +1032,356 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:31:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:31:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:32:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:32:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:33:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:33:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:34:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1060,7 +1390,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:28:48 GMT + - Sun, 01 Mar 2020 16:35:00 GMT expires: - '-1' pragma: @@ -1086,20 +1416,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1108,7 +1438,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:29:21 GMT + - Sun, 01 Mar 2020 16:35:34 GMT expires: - '-1' pragma: @@ -1134,20 +1464,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1156,7 +1486,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:29:52 GMT + - Sun, 01 Mar 2020 16:36:05 GMT expires: - '-1' pragma: @@ -1182,20 +1512,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1204,7 +1534,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:30:24 GMT + - Sun, 01 Mar 2020 16:36:37 GMT expires: - '-1' pragma: @@ -1230,20 +1560,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1252,7 +1582,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:30:56 GMT + - Sun, 01 Mar 2020 16:37:12 GMT expires: - '-1' pragma: @@ -1278,20 +1608,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1300,7 +1630,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:31:27 GMT + - Sun, 01 Mar 2020 16:37:43 GMT expires: - '-1' pragma: @@ -1326,20 +1656,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1348,7 +1678,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:31:59 GMT + - Sun, 01 Mar 2020 16:38:15 GMT expires: - '-1' pragma: @@ -1374,20 +1704,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1396,7 +1726,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:32:31 GMT + - Sun, 01 Mar 2020 16:38:47 GMT expires: - '-1' pragma: @@ -1422,20 +1752,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1444,7 +1774,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:33:03 GMT + - Sun, 01 Mar 2020 16:39:19 GMT expires: - '-1' pragma: @@ -1470,20 +1800,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1492,7 +1822,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:33:35 GMT + - Sun, 01 Mar 2020 16:39:56 GMT expires: - '-1' pragma: @@ -1518,20 +1848,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1540,7 +1870,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:34:06 GMT + - Sun, 01 Mar 2020 16:40:28 GMT expires: - '-1' pragma: @@ -1566,20 +1896,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1588,7 +1918,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:34:38 GMT + - Sun, 01 Mar 2020 16:41:01 GMT expires: - '-1' pragma: @@ -1614,20 +1944,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1636,7 +1966,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:35:10 GMT + - Sun, 01 Mar 2020 16:41:33 GMT expires: - '-1' pragma: @@ -1662,20 +1992,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1684,7 +2014,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:35:42 GMT + - Sun, 01 Mar 2020 16:42:05 GMT expires: - '-1' pragma: @@ -1710,20 +2040,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1732,7 +2062,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:36:13 GMT + - Sun, 01 Mar 2020 16:42:36 GMT expires: - '-1' pragma: @@ -1758,20 +2088,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1780,7 +2110,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:36:45 GMT + - Sun, 01 Mar 2020 16:43:08 GMT expires: - '-1' pragma: @@ -1806,20 +2136,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1828,7 +2158,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:37:16 GMT + - Sun, 01 Mar 2020 16:43:39 GMT expires: - '-1' pragma: @@ -1854,20 +2184,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1876,7 +2206,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:37:48 GMT + - Sun, 01 Mar 2020 16:44:12 GMT expires: - '-1' pragma: @@ -1902,20 +2232,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1924,7 +2254,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:38:20 GMT + - Sun, 01 Mar 2020 16:44:43 GMT expires: - '-1' pragma: @@ -1950,20 +2280,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -1972,7 +2302,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:38:51 GMT + - Sun, 01 Mar 2020 16:45:15 GMT expires: - '-1' pragma: @@ -1998,20 +2328,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2020,7 +2350,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:39:24 GMT + - Sun, 01 Mar 2020 16:45:47 GMT expires: - '-1' pragma: @@ -2046,20 +2376,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2068,7 +2398,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:39:56 GMT + - Sun, 01 Mar 2020 16:46:19 GMT expires: - '-1' pragma: @@ -2094,20 +2424,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2116,7 +2446,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:40:28 GMT + - Sun, 01 Mar 2020 16:46:51 GMT expires: - '-1' pragma: @@ -2142,20 +2472,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2164,7 +2494,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:40:58 GMT + - Sun, 01 Mar 2020 16:47:22 GMT expires: - '-1' pragma: @@ -2190,20 +2520,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2212,7 +2542,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:41:29 GMT + - Sun, 01 Mar 2020 16:47:54 GMT expires: - '-1' pragma: @@ -2238,20 +2568,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2260,7 +2590,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:42:01 GMT + - Sun, 01 Mar 2020 16:48:27 GMT expires: - '-1' pragma: @@ -2286,20 +2616,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2308,7 +2638,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:42:33 GMT + - Sun, 01 Mar 2020 16:48:58 GMT expires: - '-1' pragma: @@ -2334,20 +2664,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2356,7 +2686,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:43:04 GMT + - Sun, 01 Mar 2020 16:49:29 GMT expires: - '-1' pragma: @@ -2382,20 +2712,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2404,7 +2734,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:43:36 GMT + - Sun, 01 Mar 2020 16:50:02 GMT expires: - '-1' pragma: @@ -2430,20 +2760,20 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\"\n}" headers: cache-control: - no-cache @@ -2452,7 +2782,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:44:09 GMT + - Sun, 01 Mar 2020 16:50:33 GMT expires: - '-1' pragma: @@ -2478,30 +2808,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template run + - image builder run Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76476ff3-ccdd-4012-b559-ab22fde4d780?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/a999eb44-041f-47a5-acb3-8e06264b675b?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76476FF3-CCDD-4012-B559-AB22FDE4D780\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:28:17.7355649Z\",\n \"endTime\": - \"2020-01-06T09:44:16.403633Z\"\n}" + string: "{\n \"name\": \"A999EB44-041F-47A5-ACB3-8E06264B675B\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:30:30.6560755Z\",\n \"endTime\": + \"2020-03-01T16:51:00.0101377Z\"\n}" headers: cache-control: - no-cache content-length: - - '164' + - '165' content-type: - application/json date: - - Mon, 06 Jan 2020 09:44:39 GMT + - Sun, 01 Mar 2020 16:51:06 GMT expires: - '-1' pragma: @@ -2527,23 +2857,23 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template show-runs + - image builder show-runs Connection: - keep-alive ParameterSetName: - -n -g --output-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/image1?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/image1\",\n - \"name\": \"image1\",\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n - \ \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" + string: "{\n \"properties\": {\n \"artifactId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\n + \ \"provisioningState\": \"Succeeded\"\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01/runOutputs/image1\",\n + \"name\": \"image1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates/runOutputs\"\n}" headers: cache-control: - no-cache @@ -2552,7 +2882,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:44:43 GMT + - Sun, 01 Mar 2020 16:51:08 GMT expires: - '-1' pragma: @@ -2584,15 +2914,15 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:28:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2601,7 +2931,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:44:44 GMT + - Sun, 01 Mar 2020 16:51:09 GMT expires: - '-1' pragma: @@ -2629,8 +2959,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -2652,7 +2982,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:44:45 GMT + - Sun, 01 Mar 2020 16:51:10 GMT expires: - '-1' pragma: @@ -2685,24 +3015,24 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894?api-version=2019-07-01 response: body: - string: "{\r\n \"name\": \"0.24082.65419\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n + string: "{\r\n \"name\": \"0.24155.58894\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\r\n \ \"type\": \"Microsoft.Compute/galleries/images/versions\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"correlationId\": \"078ac434-d413-475c-a9a6-5a1a64fdb53e\"\r\n + \"westus\",\r\n \"tags\": {\r\n \"correlationId\": \"9ac9bfd8-0646-4b85-b520-8022f5238e8f\"\r\n \ },\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"West US\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2020-01-06T09:36:12.8361451+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2020-03-01T16:42:55.9514022+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"source\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_img_tmpl_sigmo7muoyhpaquyu3ykees7nzngmht_5cd58ef8-2214-419f-85dc-860848c6d713/providers/Microsoft.Compute/images/IntermediateSnapImg_078ac434-d413-475c-a9a6-5a1a64fdb53e_0\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_img_tmpl_sigw5ddj3sbyd5eiknygidynnlhuzk3_d046d161-13a0-466c-ac67-659e9f1e1932/providers/Microsoft.Compute/images/IntermediateSnapImg_9ac9bfd8-0646-4b85-b520-8022f5238e8f_0\"\r\n \ },\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 30,\r\n \"hostCaching\": \"None\",\r\n \"source\": {}\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" @@ -2714,7 +3044,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:44:45 GMT + - Sun, 01 Mar 2020 16:51:10 GMT expires: - '-1' pragma: @@ -2747,8 +3077,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -2764,7 +3094,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:44:46 GMT + - Sun, 01 Mar 2020 16:51:12 GMT expires: - '-1' pragma: @@ -2806,11 +3136,11 @@ interactions: {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic"}]}, "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419"}}, - "osProfile": {"computerName": "custom-vm", "adminUsername": "fey", "linuxConfiguration": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894"}}, + "osProfile": {"computerName": "custom-vm", "adminUsername": "yfy", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n", "path": "/home/fey/.ssh/authorized_keys"}]}}}}}], "outputs": + AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n", "path": "/home/yfy/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": {}, "mode": "Incremental"}}''' headers: Accept: @@ -2822,32 +3152,32 @@ interactions: Connection: - keep-alive Content-Length: - - '3917' + - '4089' Content-Type: - application/json; charset=utf-8 ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","name":"vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4904822750056016211","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-01-06T09:44:51.8199382Z","duration":"PT2.9047712S","correlationId":"9ed9463c-ef74-471e-b1d0-bd6e85a31cf0","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_OpUhqdodoO8uhzOaQ9UudaXnoRg5wXVo","name":"vm_deploy_OpUhqdodoO8uhzOaQ9UudaXnoRg5wXVo","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13607780052547045087","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-03-01T16:51:17.5376559Z","duration":"PT3.2403372S","correlationId":"3a727c57-e440-4842-bddb-66b15408ac78","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE/operationStatuses/08586233029965625359?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_OpUhqdodoO8uhzOaQ9UudaXnoRg5wXVo/operationStatuses/08586185254111803078?api-version=2019-07-01 cache-control: - no-cache content-length: - - '2814' + - '2815' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:44:52 GMT + - Sun, 01 Mar 2020 16:51:18 GMT expires: - '-1' pragma: @@ -2857,7 +3187,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -2875,53 +3205,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Jan 2020 09:45:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - --name -g --image --generate-ssh-keys - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2933,7 +3220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:45:54 GMT + - Sun, 01 Mar 2020 16:51:49 GMT expires: - '-1' pragma: @@ -2961,10 +3248,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2976,7 +3263,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:46:24 GMT + - Sun, 01 Mar 2020 16:52:20 GMT expires: - '-1' pragma: @@ -3004,10 +3291,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3019,7 +3306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:46:55 GMT + - Sun, 01 Mar 2020 16:52:50 GMT expires: - '-1' pragma: @@ -3047,10 +3334,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3062,7 +3349,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:47:25 GMT + - Sun, 01 Mar 2020 16:53:20 GMT expires: - '-1' pragma: @@ -3090,10 +3377,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3105,7 +3392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:47:56 GMT + - Sun, 01 Mar 2020 16:53:52 GMT expires: - '-1' pragma: @@ -3133,10 +3420,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3148,7 +3435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:48:27 GMT + - Sun, 01 Mar 2020 16:54:25 GMT expires: - '-1' pragma: @@ -3176,10 +3463,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3191,7 +3478,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:48:57 GMT + - Sun, 01 Mar 2020 16:54:55 GMT expires: - '-1' pragma: @@ -3219,10 +3506,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3234,7 +3521,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:49:28 GMT + - Sun, 01 Mar 2020 16:55:26 GMT expires: - '-1' pragma: @@ -3262,53 +3549,10 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Jan 2020 09:49:58 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - --name -g --image --generate-ssh-keys - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586233029965625359?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586185254111803078?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -3320,7 +3564,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:28 GMT + - Sun, 01 Mar 2020 16:55:56 GMT expires: - '-1' pragma: @@ -3348,22 +3592,22 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","name":"vm_deploy_uHs1TE8Hlu9d9VTQpxlzlfJbrQweFyZE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4904822750056016211","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-01-06T09:50:01.8062433Z","duration":"PT5M12.8910763S","correlationId":"9ed9463c-ef74-471e-b1d0-bd6e85a31cf0","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Resources/deployments/vm_deploy_OpUhqdodoO8uhzOaQ9UudaXnoRg5wXVo","name":"vm_deploy_OpUhqdodoO8uhzOaQ9UudaXnoRg5wXVo","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13607780052547045087","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-03-01T16:55:47.7998805Z","duration":"PT4M33.5025618S","correlationId":"3a727c57-e440-4842-bddb-66b15408ac78","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"custom-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"custom-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"custom-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"custom-vm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/virtualNetworks/custom-vmVNET"}]}}' headers: cache-control: - no-cache content-length: - - '3911' + - '3912' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:29 GMT + - Sun, 01 Mar 2020 16:55:57 GMT expires: - '-1' pragma: @@ -3391,8 +3635,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -3401,22 +3645,22 @@ interactions: body: string: "{\r\n \"name\": \"custom-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"53e0fbdb-e8fa-47a8-9824-df28d7f7ee26\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e14d17d2-6c5c-4347-a550-98efb9c2dea4\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n - \ \"exactVersion\": \"0.24082.65419\"\r\n },\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\r\n + \ \"exactVersion\": \"0.24155.58894\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_079475378b31477b9ace285bcc54fe8a\",\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/img_tmpl_sig000001/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IMG_TMPL_SIGW5DDJ3SBYD5EIKNYGIDYNNLHUZK3VKF3LSKJJ476NCFGO6DVEOM6TB73AIGJZZV/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_079475378b31477b9ace285bcc54fe8a\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"custom-vm\",\r\n - \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + \ \"adminUsername\": \"yfy\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"path\": \"/home/yfy/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n\"\r\n }\r\n ]\r\n },\r\n \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\"}]},\r\n @@ -3425,16 +3669,16 @@ interactions: \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not Ready\",\r\n \"message\": \"VM status blob is found but not yet - populated.\",\r\n \"time\": \"2020-01-06T09:50:31+00:00\"\r\n }\r\n + populated.\",\r\n \"time\": \"2020-03-01T16:55:59+00:00\"\r\n }\r\n \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": - \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\r\n \"statuses\": + \"custom-vm_OsDisk_1_079475378b31477b9ace285bcc54fe8a\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2020-01-06T09:48:49.5429947+00:00\"\r\n + succeeded\",\r\n \"time\": \"2020-03-01T16:54:41.4446859+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2020-01-06T09:49:56.886873+00:00\"\r\n + succeeded\",\r\n \"time\": \"2020-03-01T16:55:43.3541106+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}" @@ -3442,11 +3686,11 @@ interactions: cache-control: - no-cache content-length: - - '3834' + - '4007' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:30 GMT + - Sun, 01 Mar 2020 16:55:58 GMT expires: - '-1' pragma: @@ -3463,7 +3707,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31975 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31987 status: code: 200 message: OK @@ -3481,8 +3725,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -3490,12 +3734,12 @@ interactions: response: body: string: "{\r\n \"name\": \"custom-vmVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\",\r\n - \ \"etag\": \"W/\\\"704603ee-9708-4a0f-986d-70ae0ade14da\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"24a6a515-05a1-4096-bc81-e95ed360dcf8\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"3235380e-51e2-4a0f-b5a2-8d278934ed46\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"b0cb8fb7-3558-4f90-a86c-21f1b33338a2\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigcustom-vm\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic/ipConfigurations/ipconfigcustom-vm\",\r\n - \ \"etag\": \"W/\\\"704603ee-9708-4a0f-986d-70ae0ade14da\\\"\",\r\n + \ \"etag\": \"W/\\\"24a6a515-05a1-4096-bc81-e95ed360dcf8\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -3504,8 +3748,8 @@ interactions: \ },\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\": - \"zpqbvuzpcjoetnxtd5woksu5aa.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-31-F9-08\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"uvc25sbiqoeurk12yicuw2ompg.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-36-59-39\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkSecurityGroups/custom-vmNSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -3519,9 +3763,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:31 GMT + - Sun, 01 Mar 2020 16:55:59 GMT etag: - - W/"704603ee-9708-4a0f-986d-70ae0ade14da" + - W/"24a6a515-05a1-4096-bc81-e95ed360dcf8" expires: - '-1' pragma: @@ -3538,7 +3782,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ef792247-4379-495d-a2fa-731f0a931946 + - 89da41ea-7d97-43fa-aa55-9cd9eef21135 status: code: 200 message: OK @@ -3556,8 +3800,8 @@ interactions: ParameterSetName: - --name -g --image --generate-ssh-keys User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -3565,10 +3809,10 @@ interactions: response: body: string: "{\r\n \"name\": \"custom-vmPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/publicIPAddresses/custom-vmPublicIP\",\r\n - \ \"etag\": \"W/\\\"5f95f8ee-ffba-4898-8d61-55025b35d8c2\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"c0040eaa-45be-4547-88f0-2f39d716998b\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"b422af3e-9251-4c40-b701-72e9b622334d\",\r\n - \ \"ipAddress\": \"40.112.173.86\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"8d96e949-611b-4300-a4d2-756649919742\",\r\n + \ \"ipAddress\": \"40.78.59.226\",\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/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic/ipConfigurations/ipconfigcustom-vm\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -3577,13 +3821,13 @@ interactions: cache-control: - no-cache content-length: - - '1021' + - '1020' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:32 GMT + - Sun, 01 Mar 2020 16:55:59 GMT etag: - - W/"5f95f8ee-ffba-4898-8d61-55025b35d8c2" + - W/"c0040eaa-45be-4547-88f0-2f39d716998b" expires: - '-1' pragma: @@ -3600,7 +3844,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d0a507c2-4149-48c9-90be-968249747eaa + - 92d7974b-e0d6-4318-9b09-4ee5c697f4c5 status: code: 200 message: OK @@ -3618,8 +3862,8 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -3628,22 +3872,22 @@ interactions: body: string: "{\r\n \"name\": \"custom-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/virtualMachines/custom-vm\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"53e0fbdb-e8fa-47a8-9824-df28d7f7ee26\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e14d17d2-6c5c-4347-a550-98efb9c2dea4\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\r\n - \ \"exactVersion\": \"0.24082.65419\"\r\n },\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\",\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\r\n + \ \"exactVersion\": \"0.24155.58894\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"custom-vm_OsDisk_1_079475378b31477b9ace285bcc54fe8a\",\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/img_tmpl_sig000001/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_c464fe836e0f44528201114a87977a26\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IMG_TMPL_SIGW5DDJ3SBYD5EIKNYGIDYNNLHUZK3VKF3LSKJJ476NCFGO6DVEOM6TB73AIGJZZV/providers/Microsoft.Compute/disks/custom-vm_OsDisk_1_079475378b31477b9ace285bcc54fe8a\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"custom-vm\",\r\n - \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + \ \"adminUsername\": \"yfy\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"path\": \"/home/yfy/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTfFIAqj0TiFE1jfZvMyWrNS+iShBS64PtZ6e/Wk3zyYBcOuFh0yYtyLdh/Cxsp/HmmPKADFVBidesAILWhy4meJa9FyJAbtjzRAaNKgOveXyiwLPscCtc28t+g9JJ6nuB96SHfkWXbJPYDkIVdQK3C8ivleU01l8vM9kF68nzuOggxWKfKzjjxMyTD5efkgAVwSkmeIrarJtvLC8sKsTN1/fUm8OPmspTSKQyRKZv0Z6uwE4H23I20eepRm5YIM3dZvG5mmPISPTRQFftmXlvaDB2xwmiuaQlxLGC3O88tcPtLIm5z2wxfQx/N+LRRLBOfC5Q7j809hOID+ab4RlSLEWHwuqYy0h1+YqxkjGzNDWJtJGbPW16zz6UP6hO0LHMn4ZUO7SDfs/K9Gxfc3GWYzJJAOfYWxJzQ05VS7R0eshGp4uZqiEivB9+fOPj+YTTMtM6ggEafZRH8iMufDGBsRlGW6vg0GVkjPKpK+QZaBcoCRw+EW1AxcURzkciMOk= + yfy@DESKTOP-861MCON\\n\"\r\n }\r\n ]\r\n },\r\n \ \"provisionVMAgent\": true\r\n },\r\n \"secrets\": [],\r\n \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Network/networkInterfaces/custom-vmVMNic\"}]},\r\n @@ -3652,11 +3896,11 @@ interactions: cache-control: - no-cache content-length: - - '2623' + - '2795' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:33 GMT + - Sun, 01 Mar 2020 16:56:00 GMT expires: - '-1' pragma: @@ -3673,7 +3917,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31974 + - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31986 status: code: 200 message: OK @@ -3685,21 +3929,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --shared-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:25:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001","name":"img_tmpl_sig000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:28:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -3708,7 +3952,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:34 GMT + - Sun, 01 Mar 2020 16:56:01 GMT expires: - '-1' pragma: @@ -3730,18 +3974,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --shared-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -3793,7 +4037,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:50:34 GMT + - Sun, 01 Mar 2020 16:56:02 GMT expires: - '-1' pragma: @@ -3809,7 +4053,7 @@ interactions: message: OK - request: body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": - "SharedImageVersion", "imageVersionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419"}, + "SharedImageVersion", "imageVersionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894"}, "customize": [{"name": "customizeScript.sh", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], "distribute": [{"runOutputName": "image1", "type": "SharedImage", "galleryImageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1", @@ -3820,7 +4064,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive Content-Length: @@ -3830,28 +4074,27 @@ interactions: ParameterSetName: - -n -g --image-source --shared-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n - \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n - \ \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\n \ \"type\": \"SharedImageVersion\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": - \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": - \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5543c21b-a20a-44bf-bd57-77fa402a2291?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5996bbe9-444d-466c-b758-6358b99f88e0?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -3859,7 +4102,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:50:44 GMT + - Sun, 01 Mar 2020 16:56:11 GMT expires: - '-1' pragma: @@ -3871,7 +4114,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1195' status: code: 201 message: Created @@ -3883,21 +4126,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --shared-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5543c21b-a20a-44bf-bd57-77fa402a2291?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/5996bbe9-444d-466c-b758-6358b99f88e0?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"5543C21B-A20A-44BF-BD57-77FA402A2291\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:50:42.5827562Z\",\n \"endTime\": - \"2020-01-06T09:51:12.4617081Z\"\n}" + string: "{\n \"name\": \"5996BBE9-444D-466C-B758-6358B99F88E0\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:56:09.3479454Z\",\n \"endTime\": + \"2020-03-01T16:56:37.8371414Z\"\n}" headers: cache-control: - no-cache @@ -3906,7 +4149,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:51:16 GMT + - Sun, 01 Mar 2020 16:56:41 GMT expires: - '-1' pragma: @@ -3932,21 +4175,19 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --image-source --shared-image-destinations --scripts User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n - \"location\": \"westus\",\n \"name\": \"template02\",\n \"properties\": {\n - \ \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24082.65419\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"imageVersionId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1/versions/0.24155.58894\",\n \ \"type\": \"SharedImageVersion\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n @@ -3954,8 +4195,9 @@ interactions: {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000002/images/image1\",\n \ \"replicationRegions\": [\n \"westus\"\n ],\n \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n ],\n \"provisioningState\": - \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"tags\": {},\n \"type\": - \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_sig000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -3964,7 +4206,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:51:18 GMT + - Sun, 01 Mar 2020 16:56:43 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic.yaml new file mode 100644 index 00000000000..3573bef3dc0 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic.yaml @@ -0,0 +1,1012 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:56:55 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Sun, 01 Mar 2020 16:56:59 GMT + duration: + - '2670763' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - Z1oxbFGVWWSVUNgUJQwzH6MA8tfaPhwW0mAej+ZjmRA= + ocp-aad-session-key: + - QULo-CC9nzARN1DXLIbRGoV-AHBJJ6vGdHVRVPKBJyCBpTfD6zjOpP98AvTkraIxKf3uqpcM7RY0BOpnRRFepu1icOHwQZAX_5NMlI02SJNiYUAInXlrxBl750PYd8YM.CoQipE8FuuTRVScbys-uiyIQ_vlULHyVvFHqdIOPca4 + pragma: + - no-cache + request-id: + - f8416011-2c0e-4352-8402-4acf3c032c9d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleAssignments/54952df4-3375-41e9-9cbe-ab8b4c4a697f?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","createdOn":"2020-03-01T16:57:00.1986368Z","updatedOn":"2020-03-01T16:57:00.1986368Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Authorization/roleAssignments/54952df4-3375-41e9-9cbe-ab8b4c4a697f","type":"Microsoft.Authorization/roleAssignments","name":"54952df4-3375-41e9-9cbe-ab8b4c4a697f"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:04 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:56:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --defer + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --managed-image --managed-image-location --defer + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --is-vhd --defer + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder output add + Connection: + - keep-alive + ParameterSetName: + - -n -g --output-name --is-vhd --defer + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:56:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "customizeScript.sh", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "new_img", "artifactTags": {}, "type": "ManagedImage", + "imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img", + "location": "southcentralus"}, {"runOutputName": "my_vhd_output", "artifactTags": + {}, "type": "VHD"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder update + Connection: + - keep-alive + Content-Length: + - '944' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img\",\n + \ \"location\": \"southcentralus\",\n \"runOutputName\": \"new_img\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"runOutputName\": + \"my_vhd_output\",\n \"type\": \"VHD\"\n }\n ],\n \"provisioningState\": + \"Creating\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7781a388-b99b-4805-baca-1c42db16fedd?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1439' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:57:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/7781a388-b99b-4805-baca-1c42db16fedd?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"7781A388-B99B-4805-BACA-1C42DB16FEDD\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:57:16.254195Z\",\n \"endTime\": + \"2020-03-01T16:57:48.9795924Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:57:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"customizeScript.sh\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/new_img\",\n + \ \"location\": \"southcentralus\",\n \"runOutputName\": \"new_img\",\n + \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"runOutputName\": + \"my_vhd_output\",\n \"type\": \"VHD\"\n }\n ],\n \"provisioningState\": + \"Succeeded\",\n \"buildTimeoutInMinutes\": 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + cache-control: + - no-cache + content-length: + - '1620' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:57:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001","name":"img_tmpl_basic000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:56:52Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:57:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "img_1", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}, {"runOutputName": "img_2", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2", + "location": "centralus"}], "buildTimeoutInMinutes": 22}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + Content-Length: + - '970' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"imageId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"centralus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 22\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8b6a17c1-c0cb-453e-b04c-3a629fb7e743?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1465' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:58:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/8b6a17c1-c0cb-453e-b04c-3a629fb7e743?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"8B6A17C1-C0CB-453E-B04C-3A629FB7E743\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T16:58:00.035669Z\",\n \"endTime\": + \"2020-03-01T16:58:30.6641482Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:58:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --build-timeout --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n },\n {\n \"artifactTags\": {},\n \"imageId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic000001/providers/Microsoft.Compute/images/img_2\",\n + \ \"location\": \"centralus\",\n \"runOutputName\": \"img_2\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 22\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template02\",\n + \"name\": \"template02\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + cache-control: + - no-cache + content-length: + - '1556' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 16:58:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml new file mode 100644 index 00000000000..4120b169ece --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml @@ -0,0 +1,892 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:58:46 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Sun, 01 Mar 2020 16:58:48 GMT + duration: + - '2686969' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - m9WUaBuJWWN8jTTxvaqUkzVAeQ7QyDcmFQANzJzN5CM= + ocp-aad-session-key: + - GhAhin1RT_A42WSFQjclbM0iRgu9coebj9wm0I7p5OSLJuWqOIzx38uRkQW19wXJgmkAJzXPNS4KXg7dQLgTGghUcwgOcTx27vwEvtqpNX5MTLnEXGdNWaTJEEszPmPd.QOeV5UvP_9ovVc6Ge1OvqZcX9Q66mBv2fnDl7QusDc0 + pragma: + - no-cache + request-id: + - 2a1f860a-38a7-45b3-b082-34c5deb14b3a + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleAssignments/955f890f-e863-4b91-acd9-e0f73537aa62?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","createdOn":"2020-03-01T16:58:49.3145577Z","updatedOn":"2020-03-01T16:58:49.3145577Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Authorization/roleAssignments/955f890f-e863-4b91-acd9-e0f73537aa62","type":"Microsoft.Authorization/roleAssignments","name":"955f890f-e863-4b91-acd9-e0f73537aa62"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:58:51 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:58:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:58:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"sig1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG1BKUXVP\"\r\n },\r\n \"provisioningState\": + \"Creating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/f7365e46-5e3f-4bac-9cfc-45e622b4b3d3?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '477' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:58:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/f7365e46-5e3f-4bac-9cfc-45e622b4b3d3?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-03-01T16:58:58.2093558+00:00\",\r\n \"endTime\": + \"2020-03-01T16:58:58.5843608+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f7365e46-5e3f-4bac-9cfc-45e622b4b3d3\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:59:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"sig1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002\",\r\n + \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG1BKUXVP\"\r\n },\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '478' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:59:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:58:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:59:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {}, "properties": {"osType": "Linux", "osState": + "Generalized", "hyperVGeneration": "V1", "identifier": {"publisher": "publisher1", + "offer": "offer1", "sku": "sku1"}, "disallowed": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + Content-Length: + - '217' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/af736f54-286c-4567-ad9a-03778eb58e86?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 16:59:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/capsOperations/af736f54-286c-4567-ad9a-03778eb58e86?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-03-01T16:59:38.1626392+00:00\",\r\n \"endTime\": + \"2020-03-01T16:59:38.3501849+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"af736f54-286c-4567-ad9a-03778eb58e86\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:00:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sig image-definition create + Connection: + - keep-alive + ParameterSetName: + - -g --gallery-name --gallery-image-definition --os-type -p -f -s + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"image1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\r\n + \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": + {\r\n \"publisher\": \"publisher1\",\r\n \"offer\": \"offer1\",\r\n + \ \"sku\": \"sku1\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '591' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:00:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001","name":"img_tmpl_basic_2000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T16:58:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '429' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:00:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:00:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus2", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "customizeScript.sh", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}], + "distribute": [{"runOutputName": "image1", "type": "SharedImage", "galleryImageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1", + "replicationRegions": ["westus", "eastus"]}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + Content-Length: + - '718' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\",\n \"eastus\"\n ],\n + \ \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n + \ ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus2\",\n \"tags\": {}\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/62743101-3749-4b34-aa99-9dc2f87402c6?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1209' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:00:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/62743101-3749-4b34-aa99-9dc2f87402c6?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"62743101-3749-4B34-AA99-9DC2F87402C6\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T17:00:19.473945Z\",\n \"endTime\": + \"2020-03-01T17:00:50.2689816Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:00:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --scripts --image-source --shared-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": + {},\n \"galleryImageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000002/images/image1\",\n + \ \"replicationRegions\": [\n \"westus\",\n \"eastus\"\n ],\n + \ \"runOutputName\": \"image1\",\n \"type\": \"SharedImage\"\n }\n + \ ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_basic_2000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus2\",\n \"tags\": {}\n}" + headers: + cache-control: + - no-cache + content-length: + - '1300' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:00:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml index 4255d59d18c..d2089ea4f5a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_customizers.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:51:31 GMT + - Sun, 01 Mar 2020 17:01:04 GMT expires: - '-1' pragma: @@ -46,8 +46,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-request-charge: - - '1' status: code: 200 message: OK @@ -65,8 +63,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -89,19 +87,19 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 06 Jan 2020 09:51:33 GMT + - Sun, 01 Mar 2020 17:01:05 GMT duration: - - '2725981' + - '2467654' expires: - '-1' ocp-aad-diagnostics-server-name: - - T9MjLYk/r1HARLMG+d54CI3Gtan9uayK6YjXZ2wP3Gg= + - S09U0TGn4UnyGtQXU0LTYEjGM+2O+QKv7NoSas3uxCA= ocp-aad-session-key: - - OQQXZjsn7qKsfPaCupU7s6K1FBGe8ipeTjuS7tnj_MPPmzhT5A9cND36UeQSOLkeBxtOuv0AxvLtwiIpUt4mCoOUCR6zftnl1hWU4q14xt7zZFYEMXjbKC-UhHNmsmY7.zSXad_VSdWvGkq1Mswq8yNTzNUno6iNGYi9sh0lx-d4 + - RaHARroKo3BkPlV1srtGmL9VcXOLbBCjoEMaOLlTQHdqmCGU0yJSKZ4_W_qECPCo1f_R15m8F1MZGkwzWCSIILGUmx5yfyzdFsupt48hyePPzPNvCgIt2YPTUVLOP9nj.yjb-JOJ1a0u0UxevLWRTjfNrs0Pl3gAcLKvO-wiaD1M pragma: - no-cache request-id: - - 0fdc1540-7f36-4955-9d54-724fa22544ee + - 92ed9580-3072-44a3-b74c-87ed5ccf7f5b strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -134,15 +132,15 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/fa1835d3-d5e6-4bc3-b531-61ead271dbd6?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/44f48ae4-6c0b-4767-9570-52ac7c1829f6?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:51:33.8398412Z","updatedOn":"2020-01-06T09:51:33.8398412Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/fa1835d3-d5e6-4bc3-b531-61ead271dbd6","type":"Microsoft.Authorization/roleAssignments","name":"fa1835d3-d5e6-4bc3-b531-61ead271dbd6"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-03-01T17:01:06.7017471Z","updatedOn":"2020-03-01T17:01:06.7017471Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/44f48ae4-6c0b-4767-9570-52ac7c1829f6","type":"Microsoft.Authorization/roleAssignments","name":"44f48ae4-6c0b-4767-9570-52ac7c1829f6"}' headers: cache-control: - no-cache @@ -151,7 +149,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:51:36 GMT + - Sun, 01 Mar 2020 17:01:08 GMT expires: - '-1' pragma: @@ -163,9 +161,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '3' + - '1196' status: code: 201 message: Created @@ -177,21 +173,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --managed-image-destinations --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:51:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T17:01:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -200,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:51:37 GMT + - Sun, 01 Mar 2020 17:01:09 GMT expires: - '-1' pragma: @@ -222,18 +218,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --managed-image-destinations --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -285,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:51:38 GMT + - Sun, 01 Mar 2020 17:01:09 GMT expires: - '-1' pragma: @@ -321,7 +317,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive Content-Length: @@ -331,20 +327,19 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": - \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n - \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"WindowsServer\",\n + \ \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"type\": \"PlatformImage\",\n \"version\": \"2019.0.20190214\"\n },\n + \ \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n \"runElevated\": + false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n \ \"type\": \"PowerShell\",\n \"validExitCodes\": [\n 0,\n 1,\n @@ -362,10 +357,12 @@ interactions: {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/4a293058-3015-4478-95bd-ac1e8c160f14?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/0b444946-1594-41f4-af26-2bfb19a87904?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -373,7 +370,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:51:51 GMT + - Sun, 01 Mar 2020 17:01:19 GMT expires: - '-1' pragma: @@ -397,21 +394,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/4a293058-3015-4478-95bd-ac1e8c160f14?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/0b444946-1594-41f4-af26-2bfb19a87904?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"4A293058-3015-4478-95BD-AC1E8C160F14\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:51:49.3642723Z\",\n \"endTime\": - \"2020-01-06T09:52:23.1358942Z\"\n}" + string: "{\n \"name\": \"0B444946-1594-41F4-AF26-2BFB19A87904\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T17:01:17.6773316Z\",\n \"endTime\": + \"2020-03-01T17:01:50.6148349Z\"\n}" headers: cache-control: - no-cache @@ -420,7 +417,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:52:22 GMT + - Sun, 01 Mar 2020 17:01:51 GMT expires: - '-1' pragma: @@ -446,24 +443,23 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": - \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n - \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"WindowsServer\",\n + \ \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"type\": \"PlatformImage\",\n \"version\": \"2019.0.20190214\"\n },\n + \ \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n \"runElevated\": + false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n @@ -484,7 +480,9 @@ interactions: {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -493,7 +491,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:52:24 GMT + - Sun, 01 Mar 2020 17:01:53 GMT expires: - '-1' pragma: @@ -519,26 +517,25 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template customizer clear + - image builder customizer clear Connection: - keep-alive ParameterSetName: - -n -g --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"sku\": \"2019-Datacenter\",\n \"type\": \"PlatformImage\",\n \"version\": - \"2019.0.20190214\"\n },\n \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n - \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"WindowsServer\",\n + \ \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"type\": \"PlatformImage\",\n \"version\": \"2019.0.20190214\"\n },\n + \ \"customize\": [\n {\n \"name\": \"testPsScript.ps1\",\n \"runElevated\": + false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n \ \"sha256Checksum\": \"0607c084bdde8ef843cd8b7668e54a37ed07446bb642fe791ba79307a0828ea5\",\n \ \"type\": \"PowerShell\"\n },\n {\n \"name\": \"powershell_script\",\n \ \"runElevated\": false,\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/testPsScript.ps1\",\n @@ -559,7 +556,9 @@ interactions: {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/img_1\",\n \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -568,7 +567,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:52:26 GMT + - Sun, 01 Mar 2020 17:01:56 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_no_defer.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_no_defer.yaml new file mode 100644 index 00000000000..d80d95047b3 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_no_defer.yaml @@ -0,0 +1,1173 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:02:06 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Sun, 01 Mar 2020 17:02:08 GMT + duration: + - '2474677' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - m9WUaBuJWWN8jTTxvaqUkzVAeQ7QyDcmFQANzJzN5CM= + ocp-aad-session-key: + - DoGM79ymbrkI9NTRnEG80CU_dwqQUZguFbURUlc9f25rsgCDXGWKFYsgwWWV9Pzf_Mdlih11Ct08KwdB6bRT_HDrQY7nTwCkf4Sn8VpKtN3bKaDSdOy43UBZz9q5HT_Z.HPp2YOSFezPfmlN_RAYk7jUN6v4Miab-K7lOPf-Ey7I + pragma: + - no-cache + request-id: + - 346ee41b-b23b-4e35-8c71-90261d18df4e + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Authorization/roleAssignments/786bf3ba-e12e-42a7-ba30-9b36bc9cd266?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001","createdOn":"2020-03-01T17:02:09.5637225Z","updatedOn":"2020-03-01T17:02:09.5637225Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Authorization/roleAssignments/786bf3ba-e12e-42a7-ba30-9b36bc9cd266","type":"Microsoft.Authorization/roleAssignments","name":"786bf3ba-e12e-42a7-ba30-9b36bc9cd266"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:02:11 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_no_defer000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001","name":"cli_test_image_builder_no_defer000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T17:02:03Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:02:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 01 Mar 2020 17:02:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"source": {"type": + "PlatformImage", "publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", + "version": "18.04.201808140"}, "customize": [{"name": "RunScriptFromSource", + "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "CheckSumCompareShellScript", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh"}, + {"name": "downloadBuildArtifacts", "type": "File", "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination": "/tmp/index.html"}, {"name": "setupBuildPath", "type": "Shell", + "inline": ["sudo mkdir /buildArtifacts", "sudo cp /tmp/index.html /buildArtifacts/index.html"]}, + {"name": "InstallUpgrades", "type": "Shell", "inline": ["sudo apt install unattended-upgrades"]}], + "distribute": [{"runOutputName": "img_1", "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Compute/images/img_1", + "location": "westus"}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + Content-Length: + - '1326' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"name\": \"tmp1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/f3026bce-7aa0-472f-8f4c-6b84a8430839?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1900' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:02:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/f3026bce-7aa0-472f-8f4c-6b84a8430839?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"F3026BCE-7AA0-472F-8F4C-6B84A8430839\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T17:02:18.7713969Z\",\n \"endTime\": + \"2020-03-01T17:02:51.7944612Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:02:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-source --customize --managed-image-destinations + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"sha256Checksum\": \"ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.Compute/images/img_1\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"img_1\",\n \"type\": + \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"name\": \"tmp1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {}\n}" + headers: + cache-control: + - no-cache + content-length: + - '2171' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:02:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_no_defer000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1/run?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Sun, 01 Mar 2020 17:02:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:03:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:03:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:04:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:05:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:05:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:06:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:07:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:07:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:08:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:08:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:09:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:09:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder run + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/105c1c74-9aa4-43c9-9571-8eda4823e068?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"105C1C74-9AA4-43C9-9571-8EDA4823E068\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T17:02:55.6621869Z\",\n \"endTime\": + \"2020-03-01T17:10:13.3384632Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Sun, 01 Mar 2020 17:10:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml index 150913a5e0e..eee1f71e72d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_template_outputs.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:56:55 GMT + - Sun, 01 Mar 2020 17:10:30 GMT expires: - '-1' pragma: @@ -46,8 +46,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-request-charge: - - '1' status: code: 200 message: OK @@ -65,8 +63,8 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET @@ -89,19 +87,19 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 06 Jan 2020 09:56:56 GMT + - Sun, 01 Mar 2020 17:10:31 GMT duration: - - '2442596' + - '2800842' expires: - '-1' ocp-aad-diagnostics-server-name: - - MyXkuuucvtfqmuBsmOmbpR1a2jnRcnaf21J/umpfIQI= + - 9uOBoijaUfo2I5LS4GEX2MHLLzJcQ0fpR2lDyaYA1pw= ocp-aad-session-key: - - nWj0U8KNvVtGpTTAyJDIL2wqG8fqvL3tMWmuwGYtPgAhbAIUVZlNOOG460cahX6SYRuxTQa4SdDuH4TeW5haFA4lHaQnfaEqcWzbbkXA7v0VcaOVd8uY637QpG3IdXuN.Db1lgGE2Z6TzoH8R41LXLx8QjZRVFAdBv0JHQS5vfOU + - M4qyf4RayWGkXng2CNq4thjRXxbMWaeXJB8iccY7A57_3N8dGA1dCJuPcDx-wuw4AdRck3xmGMx_PeWaZMKtsVgvPrJwxCmvXFXadEEOmBIiAioh29WsZSe0SsefMpQS.qxGylXj1aU-wx8L95y3XynzZSmXvBbtwfTusouCK55g pragma: - no-cache request-id: - - cdd59ea0-8fc7-46a7-9e6b-cecf328db1ba + - 794e8de3-9ca9-4e23-84b5-faac42577e2e strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -134,15 +132,15 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/d5b13110-25f1-4b35-b677-67b02623a525?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/c523700d-2093-44f4-9c22-19a58433218b?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-01-06T09:56:57.4032984Z","updatedOn":"2020-01-06T09:56:57.4032984Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/d5b13110-25f1-4b35-b677-67b02623a525","type":"Microsoft.Authorization/roleAssignments","name":"d5b13110-25f1-4b35-b677-67b02623a525"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","createdOn":"2020-03-01T17:10:32.9746109Z","updatedOn":"2020-03-01T17:10:32.9746109Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Authorization/roleAssignments/c523700d-2093-44f4-9c22-19a58433218b","type":"Microsoft.Authorization/roleAssignments","name":"c523700d-2093-44f4-9c22-19a58433218b"}' headers: cache-control: - no-cache @@ -151,21 +149,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:56:58 GMT + - Sun, 01 Mar 2020 17:10:37 GMT expires: - '-1' pragma: - no-cache set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; HttpOnly + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '2' + - '1196' status: code: 201 message: Created @@ -177,21 +173,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T17:10:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -200,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:01 GMT + - Sun, 01 Mar 2020 17:10:37 GMT expires: - '-1' pragma: @@ -222,18 +218,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template create + - image builder create Connection: - keep-alive ParameterSetName: - -n -g --scripts --image-source --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -285,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:01 GMT + - Sun, 01 Mar 2020 17:10:38 GMT expires: - '-1' pragma: @@ -307,18 +303,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --managed-image --managed-image-location --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -370,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:02 GMT + - Sun, 01 Mar 2020 17:10:39 GMT expires: - '-1' pragma: @@ -392,18 +388,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --managed-image --managed-image-location --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -455,7 +451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:04 GMT + - Sun, 01 Mar 2020 17:10:40 GMT expires: - '-1' pragma: @@ -477,18 +473,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --output-name --artifact-tags --is-vhd --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East @@ -540,7 +536,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:05 GMT + - Sun, 01 Mar 2020 17:10:41 GMT expires: - '-1' pragma: @@ -562,21 +558,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output add + - image builder output add Connection: - keep-alive ParameterSetName: - -n -g --output-name --artifact-tags --is-vhd --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-01-06T09:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001","name":"img_tmpl_customizers000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2020-03-01T17:10:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -585,7 +581,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Jan 2020 09:57:06 GMT + - Sun, 01 Mar 2020 17:10:41 GMT expires: - '-1' pragma: @@ -614,7 +610,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive Content-Length: @@ -624,30 +620,30 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n \ \"location\": \"westus2\",\n \"runOutputName\": \"managed_img_1\",\n \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n \ }\n ],\n \"provisioningState\": \"Creating\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus2\",\n \"tags\": {}\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4ab0e9df-2793-42ec-af07-6aa3f8586a0e?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/b307b27a-4293-46a7-8b18-ed1e25f84931?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -655,7 +651,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:57:14 GMT + - Sun, 01 Mar 2020 17:10:51 GMT expires: - '-1' pragma: @@ -667,7 +663,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' status: code: 201 message: Created @@ -679,21 +675,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/4ab0e9df-2793-42ec-af07-6aa3f8586a0e?api-version=2019-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus2/operations/b307b27a-4293-46a7-8b18-ed1e25f84931?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"4AB0E9DF-2793-42EC-AF07-6AA3F8586A0E\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-01-06T09:57:13.4427959Z\",\n \"endTime\": - \"2020-01-06T09:57:44.7273803Z\"\n}" + string: "{\n \"name\": \"B307B27A-4293-46A7-8B18-ED1E25F84931\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-01T17:10:49.6483215Z\",\n \"endTime\": + \"2020-03-01T17:11:20.5317758Z\"\n}" headers: cache-control: - no-cache @@ -702,7 +698,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:57:47 GMT + - Sun, 01 Mar 2020 17:11:23 GMT expires: - '-1' pragma: @@ -728,24 +724,22 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template update + - image builder update Connection: - keep-alive ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n @@ -753,7 +747,9 @@ interactions: \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n \ }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus2\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -762,7 +758,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:57:48 GMT + - Sun, 01 Mar 2020 17:11:25 GMT expires: - '-1' pragma: @@ -788,26 +784,24 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - image template output clear + - image builder output clear Connection: - keep-alive ParameterSetName: - -n -g --defer User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.0.78 + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01?api-version=2019-05-01-preview response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n - \"location\": \"westus2\",\n \"name\": \"template01\",\n \"properties\": {\n - \ \"source\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n - \ \"sku\": \"18.04-LTS\",\n \"type\": \"PlatformImage\",\n \"version\": - \"18.04.201808140\"\n },\n \"customize\": [\n {\n \"name\": \"customizeScript.sh\",\n - \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201808140\"\n },\n \"customize\": + [\n {\n \"name\": \"customizeScript.sh\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n \ \"type\": \"Shell\"\n }\n ],\n \"distribute\": [\n {\n \"artifactTags\": {},\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_customizers000001/providers/Microsoft.Compute/images/managed_img_1\",\n @@ -815,7 +809,9 @@ interactions: \ \"type\": \"ManagedImage\"\n },\n {\n \"artifactTags\": {\n \"is_vhd\": \"True\"\n },\n \"runOutputName\": \"vhd_1\",\n \"type\": \"VHD\"\n \ }\n ],\n \"provisioningState\": \"Succeeded\",\n \"buildTimeoutInMinutes\": - 0\n },\n \"tags\": {},\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\"\n}" + 0\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/img_tmpl_customizers000001/providers/Microsoft.VirtualMachineImages/imageTemplates/template01\",\n + \"name\": \"template01\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus2\",\n \"tags\": {}\n}" headers: cache-control: - no-cache @@ -824,7 +820,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Jan 2020 09:57:50 GMT + - Sun, 01 Mar 2020 17:11:27 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index f9626713908..515e70fd232 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -46,9 +46,9 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi pass # @cus.json has some problem in online CI checks, can't find file - @ResourceGroupPreparer(name_prefix='cli_test_image_template_no_defer') + @ResourceGroupPreparer(name_prefix='cli_test_image_builder_no_defer') @live_only() - def test_image_template_no_defer(self, resource_group, resource_group_location): + def test_image_builder_no_defer(self, resource_group, resource_group_location): self._assign_ib_permissions(resource_group) self.kwargs.update({ @@ -58,7 +58,7 @@ def test_image_template_no_defer(self, resource_group, resource_group_location): 'loc': resource_group_location, }) - self.cmd('image template create -g {rg} -n {tmp} --image-source {img_src} --customize @cus.json --managed-image-destinations {img_1}={loc}', checks=[ + self.cmd('image builder create -g {rg} -n {tmp} --image-source {img_src} --customize @cus.json --managed-image-destinations {img_1}={loc}', checks=[ self.check('source.offer', 'UbuntuServer'), self.check('source.publisher', 'Canonical'), self.check('source.sku', '18.04-LTS'), @@ -67,10 +67,10 @@ def test_image_template_no_defer(self, resource_group, resource_group_location): self.check('length(customize)', 5), ]) - self.cmd('image template run -g {rg} -n {tmp}') + self.cmd('image builder run -g {rg} -n {tmp}') @ResourceGroupPreparer(name_prefix='img_tmpl_basic') - def test_image_template_basic(self, resource_group): + def test_image_builder_basic(self, resource_group): self._assign_ib_permissions(resource_group) subscription_id = self.get_subscription_id() @@ -84,7 +84,7 @@ def test_image_template_basic(self, resource_group): }) # test template creation works. use cache - self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} {script} --image-source {img_src} --defer', + self.cmd('image builder create -n {tmpl_01} -g {rg} --scripts {script} {script} --image-source {img_src} --defer', checks=[ self.check('properties.source.offer', 'UbuntuServer'), self.check('properties.source.publisher', 'Canonical'), self.check('properties.source.sku', '18.04-LTS'), self.check('properties.source.version', '18.04.201808140'), @@ -104,7 +104,7 @@ def test_image_template_basic(self, resource_group): # test managed image output out_2 = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/images/{}".format(subscription_id, resource_group, 'new_img') - self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {new_img} --managed-image-location {new_loc} --defer', + self.cmd('image builder output add -n {tmpl_01} -g {rg} --managed-image {new_img} --managed-image-location {new_loc} --defer', checks=[ self.check('properties.distribute[0].imageId', out_2), self.check('properties.distribute[0].location', '{new_loc}'), @@ -113,14 +113,14 @@ def test_image_template_basic(self, resource_group): ]) # test vhd output - self.cmd('image template output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --is-vhd --defer', + self.cmd('image builder output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --is-vhd --defer', checks=[ self.check('properties.distribute[1].runOutputName', '{vhd_out}'), self.check('properties.distribute[1].type', 'VHD') ]) # finally send request to ARM using cached object - self.cmd('image template update -n {tmpl_01} -g {rg}', + self.cmd('image builder update -n {tmpl_01} -g {rg}', checks=[ self.check('name', '{tmpl_01}'), self.check('provisioningState', 'Succeeded'), self.check('source.offer', 'UbuntuServer'), self.check('source.publisher', 'Canonical'), @@ -144,7 +144,7 @@ def test_image_template_basic(self, resource_group): # test that outputs can be set through create command. out_3 = "/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/images/img_2=centralus" - self.cmd('image template create -n {tmpl_02} -g {rg} --scripts {script} --image-source {img_src} --build-timeout 22' + self.cmd('image builder create -n {tmpl_02} -g {rg} --scripts {script} --image-source {img_src} --build-timeout 22' ' --managed-image-destinations img_1=westus ' + out_3, checks=[ self.check('name', '{tmpl_02}'), self.check('provisioningState', 'Succeeded'), @@ -161,7 +161,7 @@ def test_image_template_basic(self, resource_group): ]) @ResourceGroupPreparer(name_prefix='img_tmpl_basic_2', location="westus2") - def test_image_template_basic_sig(self, resource_group): + def test_image_builder_basic_sig(self, resource_group): self._assign_ib_permissions(resource_group) subscription_id = self.get_subscription_id() @@ -183,7 +183,7 @@ def test_image_template_basic_sig(self, resource_group): # Test that sig output can be set through output. self.kwargs['sig_out'] = "{}/{}=westus,eastus".format(self.kwargs['gallery'], self.kwargs['sig1']) - output = self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} ' + output = self.cmd('image builder create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} ' '--shared-image-destinations {sig_out}', checks=[ self.check('distribute[0].replicationRegions[0]', 'westus'), @@ -212,11 +212,11 @@ def test_image_build_managed_image(self, resource_group, resource_group_location }) # create and build image template - self.cmd('image template create -n {tmpl_1} -g {rg} --image-source {img_src} --managed-image-destinations {img_1}={loc} --scripts {script}') - self.cmd('image template run -n {tmpl_1} -g {rg}') + self.cmd('image builder create -n {tmpl_1} -g {rg} --image-source {img_src} --managed-image-destinations {img_1}={loc} --scripts {script}') + self.cmd('image builder run -n {tmpl_1} -g {rg}') # get the run output - output = self.cmd('image template show-runs -n {tmpl_1} -g {rg} --output-name {img_1}', + output = self.cmd('image builder show-runs -n {tmpl_1} -g {rg} --output-name {img_1}', checks=self.check('provisioningState', 'Succeeded') ).get_output_in_json() @@ -227,7 +227,7 @@ def test_image_build_managed_image(self, resource_group, resource_group_location self.cmd('vm show -n {vm} -g {rg}', checks=self.check('provisioningState', 'Succeeded')) # test template creation from managed image - img_tmpl = self.cmd('image template create -n {tmpl_2} -g {rg} --image-source {image_id} ' + img_tmpl = self.cmd('image builder create -n {tmpl_2} -g {rg} --image-source {image_id} ' '--managed-image-destinations {img_2}={loc} --scripts {script}').get_output_in_json() self.assertEqual(img_tmpl['source']['imageId'].lower(), self.kwargs['image_id'].lower()) @@ -252,8 +252,8 @@ def test_image_build_shared_image(self, resource_group, resource_group_location) self.cmd('sig image-definition create -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1} ' '--os-type linux -p publisher1 -f offer1 -s sku1') - self.cmd('image template create -n {tmpl} -g {rg} --scripts {script} --image-source {img_src} --defer') - self.cmd('image template output add -n {tmpl} -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1}' + self.cmd('image builder create -n {tmpl} -g {rg} --scripts {script} --image-source {img_src} --defer') + self.cmd('image builder output add -n {tmpl} -g {rg} --gallery-name {gallery} --gallery-image-definition {sig1}' ' --gallery-replication-regions westus --defer', checks=[ self.check('properties.distribute[0].replicationRegions[0]', 'westus'), @@ -261,15 +261,15 @@ def test_image_build_shared_image(self, resource_group, resource_group_location) ]) # send put request using cached template object - self.cmd('image template update -n {tmpl} -g {rg}', checks=[ + self.cmd('image builder update -n {tmpl} -g {rg}', checks=[ self.check('distribute[0].replicationRegions[0]', 'westus'), self.check('distribute[0].runOutputName', '{sig1}') ]) # Takes a long time to build a SIG based image template. - self.cmd('image template run -n {tmpl} -g {rg}') + self.cmd('image builder run -n {tmpl} -g {rg}') - output = self.cmd('image template show-runs -n {tmpl} -g {rg} --output-name {sig1}', + output = self.cmd('image builder show-runs -n {tmpl} -g {rg} --output-name {sig1}', checks=self.check('provisioningState', 'Succeeded') ).get_output_in_json() @@ -280,7 +280,7 @@ def test_image_build_shared_image(self, resource_group, resource_group_location) self.cmd('vm show -n {vm} -g {rg}', checks=self.check('provisioningState', 'Succeeded')) # test template creation from sig image - img_tmpl = self.cmd('image template create -n {tmpl_2} -g {rg} --image-source {image_id} ' + img_tmpl = self.cmd('image builder create -n {tmpl_2} -g {rg} --image-source {image_id} ' '--shared-image-destinations "{gallery}/{sig1}={loc}" --scripts {script}').get_output_in_json() self.assertEqual(img_tmpl['source']['imageVersionId'].lower(), self.kwargs['image_id'].lower()) @@ -312,7 +312,7 @@ def test_image_builder_customizers(self, resource_group, resource_group_location }) # create and build image template - self.cmd('image template create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --managed-image-destinations {img}={loc} --defer', + self.cmd('image builder create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --managed-image-destinations {img}={loc} --defer', checks=[ self.check('properties.customize[0].name', self.kwargs['script_url'].rsplit("/", 1)[1]), self.check('properties.customize[0].scriptUri', '{script_url}'), @@ -321,7 +321,7 @@ def test_image_builder_customizers(self, resource_group, resource_group_location # Test customizer add, remove and clear.. - self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url} --defer', + self.cmd('image builder customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url} --defer', checks=[ self.check('properties.customize[1].name', '{pwsh_name}'), self.check('properties.customize[1].scriptUri', '{script_url}'), @@ -329,7 +329,7 @@ def test_image_builder_customizers(self, resource_group, resource_group_location self.check('properties.customize[1].type', 'PowerShell') ]) - img_tmpl = self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name_2} --type powershell -e 12 14 16 --inline-script {inline_script} --defer', + img_tmpl = self.cmd('image builder customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name_2} --type powershell -e 12 14 16 --inline-script {inline_script} --defer', checks=[ self.check('properties.customize[2].name', '{pwsh_name_2}'), self.check('properties.customize[2].validExitCodes', '[12, 14, 16]'), @@ -339,7 +339,7 @@ def test_image_builder_customizers(self, resource_group, resource_group_location self.assertEqual(img_tmpl['properties']['customize'][2]['inline'][0], TEST_PWSH_SCRIPT_INLINE[0][1:-1]) # strip extra quotation self.assertEqual(img_tmpl['properties']['customize'][2]['inline'][1], TEST_PWSH_SCRIPT_INLINE[1][1:-1]) # strip extra quotation - self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {win_restart_name} -t windows-restart --restart-check-command "{win_restart_check_cmd}" --defer', + self.cmd('image builder customizer add -n {tmpl} -g {rg} --customizer-name {win_restart_name} -t windows-restart --restart-check-command "{win_restart_check_cmd}" --defer', checks=[ self.check('properties.customize[3].name', '{win_restart_name}'), self.check('properties.customize[3].restartCheckCommand', '{win_restart_check_cmd}'), @@ -348,7 +348,7 @@ def test_image_builder_customizers(self, resource_group, resource_group_location ]) # add file customizer - self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {file_name} -t file --file-source "{file_url}" --dest-path "{file_dest_path}" --defer', + self.cmd('image builder customizer add -n {tmpl} -g {rg} --customizer-name {file_name} -t file --file-source "{file_url}" --dest-path "{file_dest_path}" --defer', checks=[ self.check('properties.customize[4].name', '{file_name}'), self.check('properties.customize[4].sourceUri', '{file_url}'), @@ -357,24 +357,24 @@ def test_image_builder_customizers(self, resource_group, resource_group_location ]) # add shell script argument even though this is a windows image template - self.cmd('image template customizer add -n {tmpl} -g {rg} --customizer-name {shell_name} --type shell --inline-script "{inline_shell_script}" --defer', + self.cmd('image builder customizer add -n {tmpl} -g {rg} --customizer-name {shell_name} --type shell --inline-script "{inline_shell_script}" --defer', checks=[ self.check('properties.customize[5].name', '{shell_name}'), self.check('properties.customize[5].inline[0]', '{inline_shell_script}'), self.check('properties.customize[5].type', 'Shell') ]) - self.cmd('image template customizer remove -n {tmpl} -g {rg} --customizer-name {shell_name} --defer', checks=[ + self.cmd('image builder customizer remove -n {tmpl} -g {rg} --customizer-name {shell_name} --defer', checks=[ self.check('length(properties.customize)', 5) ]) # create image template from cache - self.cmd('image template update -n {tmpl} -g {rg}', checks=[ + self.cmd('image builder update -n {tmpl} -g {rg}', checks=[ self.check('length(customize)', 5) ]) # test clear using object cache - self.cmd('image template customizer clear -n {tmpl} -g {rg} --defer', checks=[ + self.cmd('image builder customizer clear -n {tmpl} -g {rg} --defer', checks=[ self.check('length(properties.customize)', 0) ]) @@ -392,41 +392,41 @@ def test_image_template_outputs(self, resource_group, resource_group_location): 'vhd_out': 'vhd_1', }) - self.cmd('image template create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} --defer') + self.cmd('image builder create -n {tmpl_01} -g {rg} --scripts {script} --image-source {img_src} --defer') - self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {img_1} --managed-image-location {loc} --defer', + self.cmd('image builder output add -n {tmpl_01} -g {rg} --managed-image {img_1} --managed-image-location {loc} --defer', checks=[ self.check('properties.distribute[0].location', '{loc}'), self.check('properties.distribute[0].runOutputName', '{img_1}'), self.check('properties.distribute[0].type', 'ManagedImage') ]) - self.cmd('image template output add -n {tmpl_01} -g {rg} --managed-image {img_2} --managed-image-location {loc} --defer', + self.cmd('image builder output add -n {tmpl_01} -g {rg} --managed-image {img_2} --managed-image-location {loc} --defer', checks=[ self.check('properties.distribute[1].location', '{loc}'), self.check('properties.distribute[1].runOutputName', '{img_2}'), self.check('properties.distribute[1].type', 'ManagedImage') ]) - self.cmd('image template output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --artifact-tags "is_vhd=True" --is-vhd --defer', + self.cmd('image builder output add -n {tmpl_01} -g {rg} --output-name {vhd_out} --artifact-tags "is_vhd=True" --is-vhd --defer', checks=[ self.check('properties.distribute[2].artifactTags.is_vhd', 'True'), self.check('properties.distribute[2].runOutputName', '{vhd_out}'), self.check('properties.distribute[2].type', 'VHD') ]) - self.cmd('image template output remove -n {tmpl_01} -g {rg} --output-name {img_2} --defer', + self.cmd('image builder output remove -n {tmpl_01} -g {rg} --output-name {img_2} --defer', checks=[ self.check('length(properties.distribute)', 2) ]) # create image template from cache - self.cmd('image template update -n {tmpl_01} -g {rg}', checks=[ + self.cmd('image builder update -n {tmpl_01} -g {rg}', checks=[ self.check('length(distribute)', 2) ]) # test clear using object cache - self.cmd('image template output clear -n {tmpl_01} -g {rg} --defer', + self.cmd('image builder output clear -n {tmpl_01} -g {rg} --defer', checks=[ self.check('length(properties.distribute)', 0) ]) @@ -448,21 +448,21 @@ def _ensure_cmd_raises_defer_error(self, cmds): 'vhd_name': 'example.vhd', }) - self.cmd('image template create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --defer') + self.cmd('image builder create -n {tmpl} -g {rg} --scripts {script_url} --image-source {img_src} --defer') # test that customizer commands require defer customizer_commands = [ - 'image template customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url}', - 'image template customizer remove -n {tmpl} -g {rg} --customizer-name {pwsh_name}', - 'image template customizer clear -n {tmpl} -g {rg}' + 'image builder customizer add -n {tmpl} -g {rg} --customizer-name {pwsh_name} --type powershell -e 0 1 2 --script-url {script_url}', + 'image builder customizer remove -n {tmpl} -g {rg} --customizer-name {pwsh_name}', + 'image builder customizer clear -n {tmpl} -g {rg}' ] _ensure_cmd_raises_defer_error(self, customizer_commands) # test that output commands require defer output_commands = [ - 'image template output add -n {tmpl} -g {rg} --is-vhd --output-name {vhd_name}', - 'image template output remove -n {tmpl} -g {rg} --output-name {vhd_name}', - 'image template output clear -n {tmpl} -g {rg}' + 'image builder output add -n {tmpl} -g {rg} --is-vhd --output-name {vhd_name}', + 'image builder output remove -n {tmpl} -g {rg} --output-name {vhd_name}', + 'image builder output clear -n {tmpl} -g {rg}' ] _ensure_cmd_raises_defer_error(self, output_commands) From 57198e54a379801c5f0c5c6cd26eac44bb74137b Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 2 Mar 2020 01:36:57 +0800 Subject: [PATCH 07/19] update help --- .../azure/cli/command_modules/vm/_help.py | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index de2c3c1abd3..8c335107fff 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -161,12 +161,12 @@ short-summary: List custom VM images. """ -helps['image template'] = """ +helps['image builder'] = """ type: group short-summary: Manage and build image builder templates. """ -helps['image template create'] = """ +helps['image builder create'] = """ type: command short-summary: Create an image builder template. parameters: @@ -180,7 +180,7 @@ scripts="https://my-script-url.net/customize_script.sh" imagesource="Canonical:UbuntuServer:18.04-LTS:18.04.201903060" - az image template create --image-source $imagesource -n mytemplate -g my-group \\ + az image builder create --image-source $imagesource -n mytemplate -g my-group \\ --scripts $scripts --managed-image-destinations image_1=westus \\ --shared-image-destinations my_shared_gallery/linux_image_def=westus,brazilsouth @@ -192,60 +192,60 @@ # create and update template object in local cli cache. Defers put request to ARM # Cache object ttl set via az configure. - az image template create --image-source $imagesource -n mytemplate \\ + az image builder create --image-source $imagesource -n mytemplate \\ -g my-group --scripts $script --defer # add customizers - az image template customizer add -n mytemplate -g my-group \\ + az image builder customizer add -n mytemplate -g my-group \\ --customizer-name my-pwsh-script --exit-codes 0 1 --inline-script \\ "mkdir c:\\buildActions" "echo Azure-Image-Builder-Was-Here \\ > c:\\buildActions\\Output.txt" --type powershell --defer - az image template customizer add -n mytemplate -g my-group \\ + az image builder customizer add -n mytemplate -g my-group \\ --customizer-name my-file-customizer --type file \\ --file-source "https://my-file-source.net/file.txt" \\ --dest-path "c:\\buildArtifacts\\file.txt" --defer # add distributors - az image template output add -n mytemplate -g my-group --is-vhd \\ + az image builder output add -n mytemplate -g my-group --is-vhd \\ --output-name my-win-image-vhd --artifact-tags "is_vhd=True" --defer - az image template output add -n mytemplate -g my-group \\ + az image builder output add -n mytemplate -g my-group \\ --output-name my-win-image-managed --managed-image winImage \\ --managed-image-location eastus \\ --artifact-tags "is_vhd=False" --defer # Stop deferring put request to ARM. Create the template from the object cache. # Cache object will be deleted. - az image template update -n mytemplate -g my-group + az image builder update -n mytemplate -g my-group """ -helps['image template customizer'] = """ +helps['image builder customizer'] = """ type: group short-summary: Manage image builder template customizers. """ -helps['image template customizer add'] = """ +helps['image builder customizer add'] = """ type: command short-summary: Add an image builder customizer to an image builder template. long-summary: Must be used with --defer examples: - name: Add an inline shell customizer to an image template in the cli object cache text: | - az image template customizer add -n mytemplate -g my-group \\ + az image builder customizer add -n mytemplate -g my-group \\ --inline-script "sudo mkdir /buildArtifacts" \\ "sudo cp /tmp/index.html /buildArtifacts/index.html" \\ --customizer-name shell-script-inline --type shell --defer - name: Add a file customizer to an image template in the cli object cache text: | - az image template customizer add -n mytemplate -g my-group \\ + az image builder customizer add -n mytemplate -g my-group \\ --customizer-name my-file --type file \\ --file-source "https://my-remote-file.html" --dest-path "/tmp/index.html" --defer - name: Add a windows restart customizer to an image template in the cli object cache text: | - az image template customizer add -n mytemplate -g my-group \\ + az image builder customizer add -n mytemplate -g my-group \\ --customizer-name shell-script-url \\ --restart-check-command "echo Azure-Image-Builder-Restarted-the-VM > \\ c:\\buildArtifacts\\restart.txt" \\ @@ -253,29 +253,29 @@ """ -helps['image template customizer clear'] = """ +helps['image builder customizer clear'] = """ type: command short-summary: Remove all image builder customizers from an image builder template. long-summary: Must be used with --defer """ -helps['image template customizer remove'] = """ +helps['image builder customizer remove'] = """ type: command short-summary: Remove an image builder customizer from an image builder template. long-summary: Must be used with --defer """ -helps['image template delete'] = """ +helps['image builder delete'] = """ type: command short-summary: Delete image builder template. """ -helps['image template list'] = """ +helps['image builder list'] = """ type: command short-summary: List image builder templates. """ -helps['image template output'] = """ +helps['image builder output'] = """ type: group short-summary: Manage image builder template output distributors. long-summary: > @@ -283,80 +283,80 @@ a shared image in a shared image gallery (SIG), or as a VHD blob. """ -helps['image template output add'] = """ +helps['image builder output add'] = """ type: command short-summary: Add an image builder output distributor to an image builder template. long-summary: Must be used with --defer. The output distributor can be a managed image, a gallery image, or as a VHD blob. examples: - name: Add a managed image distributor to an image template in the cli object cache. Specify a run output name. text: | - az image template output add -n mytemplate -g my-group \\ + az image builder output add -n mytemplate -g my-group \\ --managed-image my_desired_image_name --output-name managed_image_run_01 --defer - name: Add a shared image gallery distributor to an image template in the cli object cache. Specify its replication regions. text: | - az image template output add -n mytemplate -g my-group --gallery-name my_shared_gallery \\ + az image builder output add -n mytemplate -g my-group --gallery-name my_shared_gallery \\ --gallery-replication-regions westus brazilsouth \\ --gallery-image-definition linux_image_def --defer - name: Add a VHD distributor to an image template in the cli object cache. text: | - az image template output add -n mytemplate -g my-group \\ + az image builder output add -n mytemplate -g my-group \\ --output-name my_vhd_image --is-vhd --defer """ -helps['image template output clear'] = """ +helps['image builder output clear'] = """ type: command short-summary: Remove all image builder output distributors from an image builder template. long-summary: Must be used with --defer """ -helps['image template output remove'] = """ +helps['image builder output remove'] = """ type: command short-summary: Remove an image builder output distributor from an image builder template. long-summary: Must be used with --defer """ -helps['image template run'] = """ +helps['image builder run'] = """ type: command short-summary: Build an image builder template. examples: - name: Start a template build run and then wait for it to finish. text: | - az image template run -n mytemplate -g my-group --no-wait + az image builder run -n mytemplate -g my-group --no-wait - az image template wait -n mytemplate -g aibmdi \\ + az image builder wait -n mytemplate -g aibmdi \\ --custom "lastRunStatus.runState!='running'" - az image template show -n mytemplate -g my-group + az image builder show -n mytemplate -g my-group """ -helps['image template show'] = """ +helps['image builder show'] = """ type: command short-summary: Show an image builder template. examples: - name: Show an image builder template (autogenerated) text: | - az image template show --name mytemplate --resource-group my-group + az image builder show --name mytemplate --resource-group my-group crafted: true """ -helps['image template show-runs'] = """ +helps['image builder show-runs'] = """ type: command short-summary: Show an image builder template's run outputs. examples: - name: Run a template build run and then view its run outputs. text: | - az image template run -n mytemplate -g my-group --no-wait + az image builder run -n mytemplate -g my-group --no-wait - az image template wait -n mytemplate -g aibmdi \\ + az image builder wait -n mytemplate -g aibmdi \\ --custom "lastRunStatus.runState!='running'" - az image template show-runs -n mytemplate -g my-group + az image builder show-runs -n mytemplate -g my-group """ -helps['image template update'] = """ +helps['image builder update'] = """ type: command short-summary: Update an image builder template. long-summary: > @@ -367,33 +367,33 @@ examples: - name: | Create a template resource from a template object in the cli cache. - See "az image template create / output add / customizer add --help" and "az cache -h" for more information + See "az image builder create / output add / customizer add --help" and "az cache -h" for more information text: | # create and write template object to local cli cache - az image template create --image-source {image_source} -n mytemplate -g my-group \\ + az image builder create --image-source {image_source} -n mytemplate -g my-group \\ --scripts {script} --managed-image-destinations image_1=westus --defer # add customizers and outputs to local cache template object via az image template output / customizer add # one can also update cache object properties through generic update options, such as: --set - az image template output add -n mytemplate -g my-group --output-name my-win-image-managed \\ + az image builder output add -n mytemplate -g my-group --output-name my-win-image-managed \\ --artifact-tags "is_vhd=False" --managed-image winImage --managed-image-location eastus --defer # send template create request to azure to create template resource - az image template update -n mytemplate -g my-group + az image builder update -n mytemplate -g my-group """ -helps['image template wait'] = """ +helps['image builder wait'] = """ type: command short-summary: Place the CLI in a waiting state until a condition of the template is met. examples: - name: Start a template build run and then wait for it to finish. text: | - az image template run -n mytemplate -g my-group --no-wait + az image builder run -n mytemplate -g my-group --no-wait - az image template wait -n mytemplate -g aibmdi \\ + az image builder wait -n mytemplate -g aibmdi \\ --custom "lastRunStatus.runState!='running'" - az image template show -n mytemplate -g my-group + az image builder show -n mytemplate -g my-group """ helps['image update'] = """ From 815a91d2c77bd84dd6285ed71cdcafdcdccd2f41 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Wed, 4 Mar 2020 11:12:25 +0800 Subject: [PATCH 08/19] add image_template --- .../azure/cli/command_modules/vm/_image_builder.py | 6 +++++- src/azure-cli/azure/cli/command_modules/vm/_params.py | 1 + .../vm/tests/latest/test_image_builder_commands.py | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index f0ea201e04e..55be9194726 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -376,12 +376,16 @@ def create_image_template( # pylint: disable=too-many-locals cmd, client, resource_group_name, image_template_name, location=None, source_dict=None, scripts_list=None, destinations_lists=None, build_timeout=None, tags=None, source=None, scripts=None, checksum=None, managed_image_destinations=None, # pylint: disable=unused-argument - shared_image_destinations=None, no_wait=False, customize=None, distribute=None): # pylint: disable=unused-argument, too-many-locals + shared_image_destinations=None, no_wait=False, customize=None, distribute=None, image_template=None): # pylint: disable=unused-argument, too-many-locals from azure.mgmt.imagebuilder.models import (ImageTemplate, ImageTemplateSharedImageVersionSource, ImageTemplatePlatformImageSource, ImageTemplateIsoSource, ImageTemplateManagedImageSource, # pylint: disable=line-too-long ImageTemplateShellCustomizer, ImageTemplatePowerShellCustomizer, ImageTemplateManagedImageDistributor, ImageTemplateSharedImageDistributor) # pylint: disable=line-too-long + if image_template is not None: + + return + template_source, template_scripts, template_destinations = None, [], [] # create image template source settings diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 2dedfc86f13..2ab626d9d61 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -188,6 +188,7 @@ def load_arguments(self, _): ib_cutput_type = CLIArgumentType(arg_group="Output") c.argument('build_timeout', type=int, help="The Maximum duration to wait while building the image template, in minutes. Default is 60.") + c.argument('image_template', help='Local path or URL to a template file') # Image Source Arguments c.argument('source', arg_type=ib_source_type) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index 515e70fd232..b8f70ed527e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -45,6 +45,15 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi raise ex pass + @def test_image_builder_template_file(self, resource_group): + self._assign_ib_permissions(resource_group) + + self.kwargs.update({ + 'tmp': 'tmp1' + }) + + self.cmd('image builder create -g {rg} -n {tmp} --image-template ') + # @cus.json has some problem in online CI checks, can't find file @ResourceGroupPreparer(name_prefix='cli_test_image_builder_no_defer') @live_only() From 29aba581bf4c301eb71d1016bcc754e7e9785d96 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 02:00:26 +0800 Subject: [PATCH 09/19] --image-template --- .../cli/command_modules/vm/_image_builder.py | 27 +- .../test_image_builder_template_file.yaml | 535 ++++++++++++++++++ .../latest/test_image_builder_commands.py | 15 +- 3 files changed, 570 insertions(+), 7 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index 55be9194726..fb244d64a62 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -5,12 +5,13 @@ # TODO refactor out _image_builder commands. # i.e something like image_builder/_client_factory image_builder/commands.py image_builder/_params.py - +import os import re import json from json import JSONDecodeError from enum import Enum +import requests try: from urllib.parse import urlparse @@ -154,6 +155,9 @@ def _validate_location(location, location_names, location_display_names): def process_image_template_create_namespace(cmd, namespace): # pylint: disable=too-many-locals, too-many-branches, too-many-statements + if namespace.image_template is not None: + return + from azure.cli.core.commands.parameters import get_subscription_locations source = None @@ -372,7 +376,7 @@ def process_img_tmpl_output_add_namespace(cmd, namespace): # region Custom Commands -def create_image_template( # pylint: disable=too-many-locals +def create_image_template( # pylint: disable=too-many-locals, too-many-branches, too-many-statements cmd, client, resource_group_name, image_template_name, location=None, source_dict=None, scripts_list=None, destinations_lists=None, build_timeout=None, tags=None, source=None, scripts=None, checksum=None, managed_image_destinations=None, # pylint: disable=unused-argument @@ -383,8 +387,23 @@ def create_image_template( # pylint: disable=too-many-locals ImageTemplateManagedImageDistributor, ImageTemplateSharedImageDistributor) # pylint: disable=line-too-long if image_template is not None: - - return + if os.path.exists(image_template): + with open(image_template) as f: + content = f.read() + else: + r = requests.get(image_template) + if r.status_code != 200: + raise CLIError('usage error: --image-template is not a valid local path or URL') + obj = json.loads(r.content) + content = {} + if 'properties' in obj: + content = obj['properties'] + if 'location' in obj: + content['location'] = obj['location'] + if 'tags' in obj: + content['tags'] = obj['tags'] + return client.virtual_machine_image_templates.create_or_update( + parameters=content, resource_group_name=resource_group_name, image_template_name=image_template_name) template_source, template_scripts, template_destinations = None, [], [] diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml new file mode 100644 index 00000000000..648faeacec2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml @@ -0,0 +1,535 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Contributor","type":"BuiltInRole","description":"Lets + you manage everything except access to resources.","assignableScopes":["/"],"permissions":[{"actions":["*"],"notActions":["Microsoft.Authorization/*/Delete","Microsoft.Authorization/*/Write","Microsoft.Authorization/elevateAccess/Action","Microsoft.Blueprint/blueprintAssignments/write","Microsoft.Blueprint/blueprintAssignments/delete"],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:38.4580610Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","type":"Microsoft.Authorization/roleDefinitions","name":"b24988ac-6180-42a0-ab88-20f7382dd24c"}]}' + headers: + cache-control: + - no-cache + content-length: + - '832' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 04 Mar 2020 17:52:32 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fgraph.windows.net%2F&refresh_token=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vzwZdhGM1lJW7CMAgxLaOH0Oc8ql-B_SjZT3xq0jWjcz9ef-XxFHbS8to0sJsHEP1q8-W-sK81TvmgqALefecuaqZaqV-V_QTJjwscrBw8f7fwQwmYFGiDoTDb9V1KUtbP6X3gP5X2f-UVia0a7R_u0HJpEIFJBDHDM8RJnTuShpUfO0SdDCxABdLN0T1-Wuz8NWp-g7wymjZKRFcjHiQREaZH7ly20AY43iwhuscwL5WYHtchX5vqJNFg9H27Os8klgarYO2MSvPLCfSRlRlyxSFZcRyFnLP7ayQmRgIbGLAHmI-0XWEteKcCJfWsnl5NbDDoPo6CT8AnZItY-5W-Hq0JVghs4PXFjoSHNwp7k_6FosWsiWFyJyjALpmgXHTMKEiQoxN13TLgaWAyxRewEvOsepdkPUw8XEhziDLETt3RYFZof_q3Q2_wc6CnNhAd_iV416ntoRKyDH1R29OvIZeHc8UjDgL6JJyYl3xH6nd7J8p9ZeZ-fcmMrUWYuvrbQ2wXiUWaEMw1UPHgA6So7lAJ20PwyQubqS8AXHoEz0XPJ21J7ToMC0e4nir0Nrk8ycATCBaHUisGJ6slKpVH2Yx8nliPdylVRNEM-Q4YixoMVvLuxLfK0UUFzATuc7may9e8LPG9ereKE1H1xNm5QTBDqJQ_7HknsU5sijZ-_l2mSur_sKNf_0G9bWwhxJtGjfLl9VUqcPJZsLdXmIOZ0Tp-Rh-_8Jms3WCmw1W-jlzMocEhjsYLMHA0scXJCcBx1QE0ssvqRxhNdFtOg1aFg6Dhtz2o0llJxi-l2TCKLWqXgvHP3IdX1LwOwlM7XMYnMDqYFkB-WEGh9LM44tAmBS8svd7eG7f0dloIhSIytdJtmroRGMwm-Bmgyx0ricqdXZUFjfx6sn7Q55BYtiYqUymEXEkQIGdQ7AIebS5ckeQW633q1BBjE_rOKZHUpo8oaqTLXPCrmL-GMN5LmdgkXpeGGWyeQBsgc5sBN8F_e-L9y50VhHnuPgGH4TZ_DyYU9clLhXQ_PfNw1vwR94QXYf8a0DFBQ3i44jkDoaqKXsZ7nFXRel0RkSMpnH_zayU0qDXAK-yab4IW_tzj7dkPftGJD_A6jWYUtt2XCtF3ggAA + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1296' + User-Agent: + - python-requests/2.22.0 + content-type: + - application/x-www-form-urlencoded + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: POST + uri: https://localhost:1080/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/oauth2/token + response: + body: + string: '{"token_type":"Bearer","scope":"62e90394-69f5-4237-9190-012177145e10","expires_in":"3599","ext_expires_in":"3599","expires_on":"1583347956","not_before":"1583344056","resource":"https://graph.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSIsImtpZCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE1ODMzNDQwNTYsIm5iZiI6MTU4MzM0NDA1NiwiZXhwIjoxNTgzMzQ3OTU2LCJhY3IiOiIxIiwiYWlvIjoiQVdRQW0vOE9BQUFBdjQzaDZnY3FoR2oyY1M3bEYwY1M2dktnYjcwVk5uK2Naa0N5MlJmLy9oemkrbSt6Ymd6YkVKSDFvb0F5V1orRWNFNTh1SE5SZkIzRmd0cGVQSEw0L0hFNnpZOXdNZkwvalZ4V3lzV3krRnJoYmJkbjg5VXdOUlZoeHRUNmFsOG0iLCJhbHRzZWNpZCI6IjU6OjEwMDMyMDAwNTcxQTVEMDQiLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiMDRiMDc3OTUtOGRkYi00NjFhLWJiZWUtMDJmOWUxYmY3YjQ2IiwiYXBwaWRhY3IiOiIwIiwiZW1haWwiOiJmZXlAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiWXUiLCJnaXZlbl9uYW1lIjoiRmVpeXVlIiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3LyIsImlwYWRkciI6IjUyLjE1NS4xMDUuMTYzIiwibmFtZSI6IkZlaXl1ZSBZdSIsIm9pZCI6IjBhNTkyYzQ1LTYxM2UtNGYxYi05MDIzLTdjNDQxNGZkNTNiZiIsInB1aWQiOiIxMDAzMjAwMDU3N0ZCNkJCIiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiNldkMHhUSzQydlFGOGpiTHRKMnQzWG1DZEFxblVPTzhOQUlfZ0lpNDZRRSIsInRlbmFudF9yZWdpb25fc2NvcGUiOiJOQSIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiZmV5QG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJJT1pnOFZha3BFU2VvQWJCYXZZY0FBIiwidmVyIjoiMS4wIn0.dzqdz_410xLflK7e_1XB29sGD8S6knJcTznzQ-F4RhHa8GOMIStA03LEtyB_BGwbIZjbUwJws2DLjj_jO_8RKxIp01W3PAXzWY_3SE1gvxAdWxS2nRa5bruFzMOnEJulY9k7sI_JqIWFdghrTYGnFbZhksqq_k_2ob9naobtTTizlCd79EkxpwEMvShDGxfdvVIHKoWqKsifrfedhyZG4RTbfystNS1XfJnef4BC5JhvH9H1SI0L5VPfYRq80WBJ6AbycMCUCHXLc9bEbA6iOQ1ApaMwA8yZkTugMFmqUtxiZ8FaZOwhykTaZ_GmVQThy5fPe6m-ZCxBnNzqvfyGag","refresh_token":"AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lPPfEoSi0vfz5l9yhn2_b1fA9-IAlXwkjjm5bXafwGR1z54MzcsnDFVaYQMezbgq23X_GJBw65_snmFXvQ8OOHe3DxzO3PVYxAJodKlSN80BIUBBUMf2t4D1rWFukEfSIMJ4NaJnJfW8gPmr_jbSWZKTF_hpCdZGCMCx7Ff9UPEIR9YmEQR8TOpflxPZjnPjRpfV17AvNcszZtzDU5tYJSqz3XfOSmwC0gt8vwRZ2D9nMnRRj3fhQyFPmNGOIxSwDdgQyEkc_pZqdAq6TAVLnmTwsMMd7geVta3-Tp7-l8ICMjorXTmlum6jqRqQdVkCjKZuWvDptQsV_LEpXHb-KYKAYleZesePU9NoKGBWIEcKu2O5-ZCUao8SR-jd8mpp-oAFRdd9l9uQM7BYb1cdjbQG-bLkSNqZkmpXQL_aaxtMxx5UyF0JXvfHcb_cfluLCilrVOB3lPvoAmA-S9JvQoAnNMtZuOVA0yudAV8SMYkF_hpQjgHoVG4H-0yNa2L5-Hs3JcgLtExZscj7guxeghhoXtgG4_BHVOMmxi0GYZjsW4_cpk5ckxStYVNWgtwBpzCH27nWtAqWqPGtr5zQWTIdMsiPnW6p_xtUjZ4wk6y6O736m-ZiCeBztkRDojrjtD6xbp4vG_EfAHLglv1D1bKa7akzMSyKrv0w4N31M36t6EEAGywzxIR3AYLO44NU-GS4r1AK68dyP99jR43eStrDLGgijyEzi0NJa7SKvLlkc8huy6skcYJKgkSKZkdB5x52_miSeDmpXVR24fnme0vYaWOGUpiJY5VlnQzIHPlpl3_Z5nOpmQkIGcvl-Lhz7eerTtJklVKfExAHT6LjUwQtwi0L-9nBiLOVOS-sa6Kc_dtPPbSCuuFwlIQXBdojgV0TpfSypA66cQf9C5Q_JXQ2xeC3HDQpl6mV9HT3dREzP6yOg9b7zMApDLvtytz6P02eTe_RoYroWnESWbWCBqAod3oPCXJ3EpBBpuyA3Kz-B8pesNzapCr2pq5C2MpOv5v45MDKJoNDP-n94ooIvriL4B79RwUHJXwcFPB_iA1kfkGSnfYWpbEHV9oU0z7HwOUsBXB9IUJxn2jBw1m66iAA","foci":"1"}' + headers: + cache-control: + - no-cache, no-store + content-length: + - '3109' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 04 Mar 2020 17:52:35 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=AiZ2tL4FZrBIs4CnqmaG4jkXKmpyAQAAAOPh8dUOAAAA; expires=Fri, 03-Apr-2020 + 17:52:36 GMT; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-clitelem: + - 1,0,0,72145.203, + x-ms-ests-server: + - 2.1.10104.15 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: GET + uri: https://localhost:1080/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf32a0cc-373c-47c9-9156-0db11f6a6dfc%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Azure + Virtual Machine Image Builder","appId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Azure + Virtual Machine Image Builder","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cf32a0cc-373c-47c9-9156-0db11f6a6dfc"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Wed, 04 Mar 2020 17:52:38 GMT + duration: + - '1864274' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - UasoFGN58uUDZzrA1RYY1/OBZjmM666H3oLwSIakuf0= + ocp-aad-session-key: + - 0gI8tiS123SmQZ6s4lsOXmURcYEmhdN8r_qYeq8s2qkRkGAQFYUDKTWQYvZpZsPpX1bgyvE-4xB68p1l3iPnqNu51zVJ3Scr1KbSpD-tK-GCcsSVnMyp-6c_guM00EGb.cKnukLY24AfCmcSHjG9-hc1hQ9PzXPaCJ5tRYjQqHM8 + pragma: + - no-cache + request-id: + - 32789ab9-82c9-4423-9055-168b537d26d7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c", + "principalId": "6d61a178-3216-4ba7-bdc3-0fbc62b65ac9"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/b58d79bd-eb31-4392-83cf-59596276ff76?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001","createdOn":"2020-03-04T17:52:40.5456392Z","updatedOn":"2020-03-04T17:52:40.5456392Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/b58d79bd-eb31-4392-83cf-59596276ff76","type":"Microsoft.Authorization/roleAssignments","name":"b58d79bd-eb31-4392-83cf-59596276ff76"}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 04 Mar 2020 17:52:43 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + method: GET + uri: https://localhost:1080/qwordy/azvmimagebuilder/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/example.json + response: + body: + string: "{\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \ \"apiVersion\": \"2019-05-01-preview\",\n \"location\": \"westus\",\n + \ \"dependsOn\": [],\n \"tags\": {\n \"imagebuilderTemplate\": + \"ubuntu1804\"\n },\n \"properties\": {\n\n \"buildTimeoutInMinutes\" + : 80,\n \n \"vmProfile\": \n {\n \"vmSize\": + \"Standard_D1_v2\",\n \"osDiskSizeGB\": 30\n },\n\n + \ \"source\": {\n \"type\": \"PlatformImage\",\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"18.04.201903060\"\n \n + \ },\n \"customize\": [\n {\n \"type\": + \"Shell\",\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": + \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\"\n + \ },\n\n {\n \"type\": \"Shell\",\n \"name\": + \"CheckSumCompareShellScript\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"sha256Checksum\": \"ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93\"\n + \ },\n \n {\n \"type\": \"File\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sourceUri\": + \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"destination\":\"/tmp/index.html\"\n },\n\n {\n + \ \"type\": \"Shell\",\n \"name\": \"setupBuildPath\",\n + \ \"inline\": [\n \"sudo mkdir /buildArtifacts\",\n + \ \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ]\n },\n\n {\n \"type\": + \"Shell\",\n \"name\": \"InstallUpgrades\",\n \"inline\": + [\n \"sudo apt install unattended-upgrades\"\n ]\n + \ }\n\n ],\n \"distribute\": \n [\n { + \ \"type\":\"ManagedImage\",\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image\",\n + \ \"location\": \"westus\",\n \"runOutputName\": + \"runOutputName\",\n \"artifactTags\": {\n \"source\": + \"azVmImageBuilder\",\n \"baseosimg\": \"ubuntu1804\"\n + \ }\n }\n ]\n }\n }\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2666' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 04 Mar 2020 17:52:47 GMT + etag: + - W/"308e89bcda38ef882050e78cdcfd78831d14d5d81ceba87b02fbf2215c092add" + expires: + - Wed, 04 Mar 2020 17:57:47 GMT + source-age: + - '131' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding + via: + - 1.1 varnish (Varnish/6.0) + - 1.1 varnish + x-cache: + - MISS, HIT + x-cache-hits: + - 0, 1 + x-content-type-options: + - nosniff + x-fastly-request-id: + - 73494f2e5af94b47cae7ce5f698e544dbe60b8a9 + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - B8B2:4279:29251:2C6BE:5E5FC6EE + x-served-by: + - cache-tyo19930-TYO + x-timer: + - S1583344367.157399,VS0,VE1 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {"imagebuilderTemplate": "ubuntu1804"}, + "properties": {"source": {"type": "PlatformImage", "publisher": "Canonical", + "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "18.04.201903060"}, + "customize": [{"name": "RunScriptFromSource", "type": "Shell", "scriptUri": + "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "CheckSumCompareShellScript", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh"}, + {"name": "downloadBuildArtifacts", "type": "File", "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination": "/tmp/index.html"}, {"name": "setupBuildPath", "type": "Shell", + "inline": ["sudo mkdir /buildArtifacts", "sudo cp /tmp/index.html /buildArtifacts/index.html"]}, + {"name": "InstallUpgrades", "type": "Shell", "inline": ["sudo apt install unattended-upgrades"]}], + "distribute": [{"runOutputName": "runOutputName", "artifactTags": {"source": + "azVmImageBuilder", "baseosimg": "ubuntu1804"}, "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image", + "location": "westus"}], "buildTimeoutInMinutes": 80}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + Content-Length: + - '1406' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201903060\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {\n \"baseosimg\": \"ubuntu1804\",\n + \ \"source\": \"azVmImageBuilder\"\n },\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"runOutputName\",\n + \ \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n + \ \"buildTimeoutInMinutes\": 80\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"name\": \"tmp1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {\n \"imagebuilderTemplate\": \"ubuntu1804\"\n + }\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76fdde29-ba6b-4628-86c1-71e52f8de51e?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1953' + content-type: + - application/json + date: + - Wed, 04 Mar 2020 17:52:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76fdde29-ba6b-4628-86c1-71e52f8de51e?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"76FDDE29-BA6B-4628-86C1-71E52F8DE51E\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-04T17:52:55.755823Z\",\n \"endTime\": + \"2020-03-04T17:53:28.0833551Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '164' + content-type: + - application/json + date: + - Wed, 04 Mar 2020 17:53:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201903060\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"sha256Checksum\": \"ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {\n \"baseosimg\": \"ubuntu1804\",\n + \ \"source\": \"azVmImageBuilder\"\n },\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"runOutputName\",\n + \ \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n + \ \"buildTimeoutInMinutes\": 80\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp1\",\n + \"name\": \"tmp1\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {\n \"imagebuilderTemplate\": \"ubuntu1804\"\n + }\n}" + headers: + cache-control: + - no-cache + content-length: + - '2224' + content-type: + - application/json + date: + - Wed, 04 Mar 2020 17:53:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index b8f70ed527e..b7ba7685e12 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -45,14 +45,23 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi raise ex pass - @def test_image_builder_template_file(self, resource_group): + @ResourceGroupPreparer(name_prefix='cli_test_image_builder_template_file_') + def test_image_builder_template_file(self, resource_group): self._assign_ib_permissions(resource_group) self.kwargs.update({ 'tmp': 'tmp1' }) - self.cmd('image builder create -g {rg} -n {tmp} --image-template ') + self.cmd('image builder create -g {rg} -n {tmp} --image-template "https://raw.githubusercontent.com/qwordy/azvmimagebuilder/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/example.json"', + checks=[ + self.check('source.offer', 'UbuntuServer'), + self.check('source.publisher', 'Canonical'), + self.check('source.sku', '18.04-LTS'), + self.check('source.version', '18.04.201903060'), + self.check('source.type', 'PlatformImage'), + self.check('length(customize)', 5) + ]) # @cus.json has some problem in online CI checks, can't find file @ResourceGroupPreparer(name_prefix='cli_test_image_builder_no_defer') @@ -73,7 +82,7 @@ def test_image_builder_no_defer(self, resource_group, resource_group_location): self.check('source.sku', '18.04-LTS'), self.check('source.version', '18.04.201808140'), self.check('source.type', 'PlatformImage'), - self.check('length(customize)', 5), + self.check('length(customize)', 5) ]) self.cmd('image builder run -g {rg} -n {tmp}') From 35fd323a18706c4fb9e2ad2f0a9f7bd846b55c81 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 14:45:42 +0800 Subject: [PATCH 10/19] test --- .../vm/tests/latest/test_image_builder_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index b7ba7685e12..3891b75f3e7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -45,7 +45,9 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi raise ex pass + # Test framework has problem, hence, live only. @ResourceGroupPreparer(name_prefix='cli_test_image_builder_template_file_') + @live_only() def test_image_builder_template_file(self, resource_group): self._assign_ib_permissions(resource_group) From ef13ba5cf99e61209dcad96ee0caa18688a7bf2e Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 15:21:37 +0800 Subject: [PATCH 11/19] remove --customize and --distribute --- .../cli/command_modules/vm/_image_builder.py | 61 +++++++------------ .../azure/cli/command_modules/vm/_params.py | 2 - .../latest/test_image_builder_commands.py | 24 -------- 3 files changed, 22 insertions(+), 65 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index fb244d64a62..ab59ee3efe8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -380,7 +380,7 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches cmd, client, resource_group_name, image_template_name, location=None, source_dict=None, scripts_list=None, destinations_lists=None, build_timeout=None, tags=None, source=None, scripts=None, checksum=None, managed_image_destinations=None, # pylint: disable=unused-argument - shared_image_destinations=None, no_wait=False, customize=None, distribute=None, image_template=None): # pylint: disable=unused-argument, too-many-locals + shared_image_destinations=None, no_wait=False, image_template=None): # pylint: disable=unused-argument, too-many-locals from azure.mgmt.imagebuilder.models import (ImageTemplate, ImageTemplateSharedImageVersionSource, ImageTemplatePlatformImageSource, ImageTemplateIsoSource, ImageTemplateManagedImageSource, # pylint: disable=line-too-long ImageTemplateShellCustomizer, ImageTemplatePowerShellCustomizer, @@ -419,46 +419,29 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches # create image template customizer settings # Script structure can be found in _parse_script's function definition - if customize is not None: - if scripts_list: - raise CLIError('usage error: Do not use --scripts and --customize together') - try: - template_scripts = json.loads(customize) - except JSONDecodeError: - raise CLIError('usage error: JSON decode error in --customize') - else: - for script in scripts_list: - script.pop("is_url") - script["script_uri"] = script.pop("script") - - if script["type"] == ScriptType.SHELL: - template_scripts.append(ImageTemplateShellCustomizer(**script)) - elif script["type"] == ScriptType.POWERSHELL: - template_scripts.append(ImageTemplatePowerShellCustomizer(**script)) - else: # Should never happen - logger.debug("Script %s has type %s", script["script"], script["type"]) - raise CLIError("Script {} has an invalid type.".format(script["script"])) + for script in scripts_list: + script.pop("is_url") + script["script_uri"] = script.pop("script") + + if script["type"] == ScriptType.SHELL: + template_scripts.append(ImageTemplateShellCustomizer(**script)) + elif script["type"] == ScriptType.POWERSHELL: + template_scripts.append(ImageTemplatePowerShellCustomizer(**script)) + else: # Should never happen + logger.debug("Script %s has type %s", script["script"], script["type"]) + raise CLIError("Script {} has an invalid type.".format(script["script"])) # create image template distribution / destination settings - if distribute is not None: - if destinations_lists: - raise CLIError('usage error: Do not use (--managed-image-destinations | --shared-image-destinations) and --distribute together') - try: - template_destinations = json.loads(distribute) - except JSONDecodeError: - raise CLIError('usage error: JSON decode error in --distribute') - - else: - for dest_type, rid, loc_info in destinations_lists: - parsed = parse_resource_id(rid) - if dest_type == _DestType.MANAGED_IMAGE: - template_destinations.append(ImageTemplateManagedImageDistributor( - image_id=rid, location=loc_info, run_output_name=parsed['name'])) - elif dest_type == _DestType.SHARED_IMAGE_GALLERY: - template_destinations.append(ImageTemplateSharedImageDistributor( - gallery_image_id=rid, replication_regions=loc_info, run_output_name=parsed['child_name_1'])) - else: - logger.info("No applicable destination found for destination %s", str(tuple([dest_type, rid, loc_info]))) + for dest_type, rid, loc_info in destinations_lists: + parsed = parse_resource_id(rid) + if dest_type == _DestType.MANAGED_IMAGE: + template_destinations.append(ImageTemplateManagedImageDistributor( + image_id=rid, location=loc_info, run_output_name=parsed['name'])) + elif dest_type == _DestType.SHARED_IMAGE_GALLERY: + template_destinations.append(ImageTemplateSharedImageDistributor( + gallery_image_id=rid, replication_regions=loc_info, run_output_name=parsed['child_name_1'])) + else: + logger.info("No applicable destination found for destination %s", str(tuple([dest_type, rid, loc_info]))) image_template = ImageTemplate(source=template_source, customize=template_scripts, distribute=template_destinations, location=location, build_timeout_in_minutes=build_timeout, tags=(tags or {})) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 2ab626d9d61..e4a186ab260 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -196,13 +196,11 @@ def load_arguments(self, _): c.argument('', arg_type=ib_source_type) # Image Customizer Arguments - c.argument('customize', arg_type=ib_customizer_type, help='Specify the properties used to describe the customization steps of the image. JSON format. Do not use it together with --scripts. Examples: https://github.com/danielsollondon/azvmimagebuilder/tree/master/quickquickstarts') c.argument('scripts', arg_type=ib_customizer_type) c.argument('', arg_type=ib_customizer_type) c.argument('', arg_type=ib_customizer_type) # Image Output Arguments - c.argument('distribute', arg_type=ib_cutput_type, help='The distribution targets where the image output needs to go to. JSON format. Do not use it together with other arguments in Ouput Arguments.') c.argument('managed_image_destinations', arg_type=ib_cutput_type) c.argument('shared_image_destinations', arg_type=ib_cutput_type) c.argument('output_name', arg_type=ib_cutput_type) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index 3891b75f3e7..b2cdf2a031e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -65,30 +65,6 @@ def test_image_builder_template_file(self, resource_group): self.check('length(customize)', 5) ]) - # @cus.json has some problem in online CI checks, can't find file - @ResourceGroupPreparer(name_prefix='cli_test_image_builder_no_defer') - @live_only() - def test_image_builder_no_defer(self, resource_group, resource_group_location): - self._assign_ib_permissions(resource_group) - - self.kwargs.update({ - 'tmp': 'tmp1', - 'img_src': LINUX_IMAGE_SOURCE, - 'img_1': 'img_1', - 'loc': resource_group_location, - }) - - self.cmd('image builder create -g {rg} -n {tmp} --image-source {img_src} --customize @cus.json --managed-image-destinations {img_1}={loc}', checks=[ - self.check('source.offer', 'UbuntuServer'), - self.check('source.publisher', 'Canonical'), - self.check('source.sku', '18.04-LTS'), - self.check('source.version', '18.04.201808140'), - self.check('source.type', 'PlatformImage'), - self.check('length(customize)', 5) - ]) - - self.cmd('image builder run -g {rg} -n {tmp}') - @ResourceGroupPreparer(name_prefix='img_tmpl_basic') def test_image_builder_basic(self, resource_group): self._assign_ib_permissions(resource_group) From 3bd036e580dc031d0b89d86653aca1ae972fd991 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 16:13:00 +0800 Subject: [PATCH 12/19] try-catch json error --- .../azure/cli/command_modules/vm/_image_builder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index ab59ee3efe8..5f72aa48b74 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -8,6 +8,7 @@ import os import re import json +import traceback from json import JSONDecodeError from enum import Enum @@ -394,7 +395,11 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches r = requests.get(image_template) if r.status_code != 200: raise CLIError('usage error: --image-template is not a valid local path or URL') - obj = json.loads(r.content) + try: + obj = json.loads(r.content) + except JSONDecodeError as e: + raise CLIError('usage error: Content of --image-template is not a valid JSON string\n' + + traceback.format_exc()) content = {} if 'properties' in obj: content = obj['properties'] From ba7181c3bb0a0840423598143c5501bf5e3af0fc Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 16:18:24 +0800 Subject: [PATCH 13/19] help --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index e4a186ab260..f92529001ce 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -188,7 +188,7 @@ def load_arguments(self, _): ib_cutput_type = CLIArgumentType(arg_group="Output") c.argument('build_timeout', type=int, help="The Maximum duration to wait while building the image template, in minutes. Default is 60.") - c.argument('image_template', help='Local path or URL to a template file') + c.argument('image_template', help='Local path or URL to an image template file. When using --image-template, all other parameters are ignored except -g and -n') # Image Source Arguments c.argument('source', arg_type=ib_source_type) From 0ed0d2346c44a2e23bb82ec8c13b5493f61aafb0 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 5 Mar 2020 16:50:53 +0800 Subject: [PATCH 14/19] fix style --- src/azure-cli/azure/cli/command_modules/vm/_image_builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index 5f72aa48b74..9994a205804 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -9,7 +9,6 @@ import re import json import traceback -from json import JSONDecodeError from enum import Enum import requests @@ -397,7 +396,7 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches raise CLIError('usage error: --image-template is not a valid local path or URL') try: obj = json.loads(r.content) - except JSONDecodeError as e: + except json.JSONDecodeError: raise CLIError('usage error: Content of --image-template is not a valid JSON string\n' + traceback.format_exc()) content = {} From 785855a2c2509a2ee197a667179691df0102720a Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Mar 2020 00:08:47 +0800 Subject: [PATCH 15/19] fix a bug; update help --- .../cli/command_modules/vm/_image_builder.py | 28 +++++++++++-------- .../azure/cli/command_modules/vm/_params.py | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index 9994a205804..1d2a6d71040 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -388,24 +388,28 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches if image_template is not None: if os.path.exists(image_template): + # Local file with open(image_template) as f: content = f.read() else: + # It should be an URL r = requests.get(image_template) if r.status_code != 200: raise CLIError('usage error: --image-template is not a valid local path or URL') - try: - obj = json.loads(r.content) - except json.JSONDecodeError: - raise CLIError('usage error: Content of --image-template is not a valid JSON string\n' + - traceback.format_exc()) - content = {} - if 'properties' in obj: - content = obj['properties'] - if 'location' in obj: - content['location'] = obj['location'] - if 'tags' in obj: - content['tags'] = obj['tags'] + content = r.content + + try: + obj = json.loads(content) + except json.JSONDecodeError: + raise CLIError('usage error: Content of --image-template is not a valid JSON string\n' + + traceback.format_exc()) + content = {} + if 'properties' in obj: + content = obj['properties'] + if 'location' in obj: + content['location'] = obj['location'] + if 'tags' in obj: + content['tags'] = obj['tags'] return client.virtual_machine_image_templates.create_or_update( parameters=content, resource_group_name=resource_group_name, image_template_name=image_template_name) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index f92529001ce..67fb9849940 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -188,7 +188,7 @@ def load_arguments(self, _): ib_cutput_type = CLIArgumentType(arg_group="Output") c.argument('build_timeout', type=int, help="The Maximum duration to wait while building the image template, in minutes. Default is 60.") - c.argument('image_template', help='Local path or URL to an image template file. When using --image-template, all other parameters are ignored except -g and -n') + c.argument('image_template', help='Local path or URL to an image template file. When using --image-template, all other parameters are ignored except -g and -n. Example file: https://github.com/danielsollondon/azvmimagebuilder/blob/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/helloImageTemplateLinux.json') # Image Source Arguments c.argument('source', arg_type=ib_source_type) From c88fda474a3fbe4b26930a253ef299bc97737ccf Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Mar 2020 01:00:28 +0800 Subject: [PATCH 16/19] test of local file --- .../command_modules/vm/tests/latest/cus.json | 39 --- .../vm/tests/latest/image_template.json | 79 +++++ .../test_image_builder_template_file.yaml | 321 ++++++++++++++++-- .../latest/test_image_builder_commands.py | 20 +- 4 files changed, 381 insertions(+), 78 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/image_template.json diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json deleted file mode 100644 index d6e877db520..00000000000 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/cus.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "type": "Shell", - "name": "RunScriptFromSource", - "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh" - }, - - { - "type": "Shell", - "name": "CheckSumCompareShellScript", - "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh", - "sha256Checksum": "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" - }, - - { - "type": "File", - "name": "downloadBuildArtifacts", - "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", - "destination":"/tmp/index.html" - }, - - { - "type": "Shell", - "name": "setupBuildPath", - "inline": [ - "sudo mkdir /buildArtifacts", - "sudo cp /tmp/index.html /buildArtifacts/index.html" - ] - }, - - { - "type": "Shell", - "name": "InstallUpgrades", - "inline": [ - "sudo apt install unattended-upgrades" - ] - } - -] \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/image_template.json b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/image_template.json new file mode 100644 index 00000000000..01ae2aa9a18 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/image_template.json @@ -0,0 +1,79 @@ +{ + "type": "Microsoft.VirtualMachineImages/imageTemplates", + "apiVersion": "2019-05-01-preview", + "location": "westus", + "dependsOn": [], + "tags": { + "imagebuilderTemplate": "ubuntu1804" + }, + "properties": { + + "buildTimeoutInMinutes" : 80, + + "vmProfile": + { + "vmSize": "Standard_D1_v2", + "osDiskSizeGB": 30 + }, + + "source": { + "type": "PlatformImage", + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "18.04-LTS", + "version": "18.04.201903060" + + }, + "customize": [ + { + "type": "Shell", + "name": "RunScriptFromSource", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh" + }, + + { + "type": "Shell", + "name": "CheckSumCompareShellScript", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh", + "sha256Checksum": "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93" + }, + + { + "type": "File", + "name": "downloadBuildArtifacts", + "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination":"/tmp/index.html" + }, + + { + "type": "Shell", + "name": "setupBuildPath", + "inline": [ + "sudo mkdir /buildArtifacts", + "sudo cp /tmp/index.html /buildArtifacts/index.html" + ] + }, + + { + "type": "Shell", + "name": "InstallUpgrades", + "inline": [ + "sudo apt install unattended-upgrades" + ] + } + + ], + "distribute": + [ + { "type":"ManagedImage", + "imageId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/fytest2/providers/Microsoft.Compute/images/image", + "location": "westus", + "runOutputName": "runOutputName", + "artifactTags": { + "source": "azVmImageBuilder", + "baseosimg": "ubuntu1804" + } + } + ] + } + } diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml index 648faeacec2..a46fa0306ad 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_template_file.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 04 Mar 2020 17:52:32 GMT + - Thu, 05 Mar 2020 16:50:33 GMT expires: - '-1' pragma: @@ -50,7 +50,7 @@ interactions: code: 200 message: OK - request: - body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fgraph.windows.net%2F&refresh_token=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vzwZdhGM1lJW7CMAgxLaOH0Oc8ql-B_SjZT3xq0jWjcz9ef-XxFHbS8to0sJsHEP1q8-W-sK81TvmgqALefecuaqZaqV-V_QTJjwscrBw8f7fwQwmYFGiDoTDb9V1KUtbP6X3gP5X2f-UVia0a7R_u0HJpEIFJBDHDM8RJnTuShpUfO0SdDCxABdLN0T1-Wuz8NWp-g7wymjZKRFcjHiQREaZH7ly20AY43iwhuscwL5WYHtchX5vqJNFg9H27Os8klgarYO2MSvPLCfSRlRlyxSFZcRyFnLP7ayQmRgIbGLAHmI-0XWEteKcCJfWsnl5NbDDoPo6CT8AnZItY-5W-Hq0JVghs4PXFjoSHNwp7k_6FosWsiWFyJyjALpmgXHTMKEiQoxN13TLgaWAyxRewEvOsepdkPUw8XEhziDLETt3RYFZof_q3Q2_wc6CnNhAd_iV416ntoRKyDH1R29OvIZeHc8UjDgL6JJyYl3xH6nd7J8p9ZeZ-fcmMrUWYuvrbQ2wXiUWaEMw1UPHgA6So7lAJ20PwyQubqS8AXHoEz0XPJ21J7ToMC0e4nir0Nrk8ycATCBaHUisGJ6slKpVH2Yx8nliPdylVRNEM-Q4YixoMVvLuxLfK0UUFzATuc7may9e8LPG9ereKE1H1xNm5QTBDqJQ_7HknsU5sijZ-_l2mSur_sKNf_0G9bWwhxJtGjfLl9VUqcPJZsLdXmIOZ0Tp-Rh-_8Jms3WCmw1W-jlzMocEhjsYLMHA0scXJCcBx1QE0ssvqRxhNdFtOg1aFg6Dhtz2o0llJxi-l2TCKLWqXgvHP3IdX1LwOwlM7XMYnMDqYFkB-WEGh9LM44tAmBS8svd7eG7f0dloIhSIytdJtmroRGMwm-Bmgyx0ricqdXZUFjfx6sn7Q55BYtiYqUymEXEkQIGdQ7AIebS5ckeQW633q1BBjE_rOKZHUpo8oaqTLXPCrmL-GMN5LmdgkXpeGGWyeQBsgc5sBN8F_e-L9y50VhHnuPgGH4TZ_DyYU9clLhXQ_PfNw1vwR94QXYf8a0DFBQ3i44jkDoaqKXsZ7nFXRel0RkSMpnH_zayU0qDXAK-yab4IW_tzj7dkPftGJD_A6jWYUtt2XCtF3ggAA + body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fgraph.windows.net%2F&refresh_token=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GagonUfFrAi8kKRUiy6WmpLr4yiu0e4znX26TKfjToPBKdt4n_WrTn2Lj4HmkCTsTUAEgw5T12QPsU_q9G3EW17C6x1jElTYy3qvHzScftS4zCMtdz70W_SWaE8NVrOOBaJ2c9pKppEPlGjZWPW8uT5YcfPRZHyJ9fmQKGJZrPhHh1cT8UuqVXFKO_65Fn5Yl6_KbGquz3A04g2ZKiwe7Db5-cAgPrsTthGb9SGC_JDoJrldPZW8Tc8UGP3u1qo1cIaODNOs_LKZ_wwWC79p2v7pEbzZ1czs23Mo1v0ccOqp0F3cEeU0KIwjv4iF7eaefK9s6bOEofWKFmohzn1Nv9jrEKua8XZ4IowZDJZ8yRz1LdsCqtHGLar2zTPO14c1vzWUD-ZhW5ea8YH1VADgMfmlMeFOvUa2ianhBMHzWqK8PumPFXCznopm5Fitv3nfiieggIbgFcg5BuJ2vdQWkk-PzK64JdXH_5C6_OMD3Zb9oU7sY6PfDMO5yrizPCA_cSGj4WdYRjfJZCs3LxoqiIIsVFkUuNX_vkbaU2Ii_lhVbcRgygZ-JvFuxiNk8KEEafewiOwe1eZySbrqA-a3VdnwKaF94KinzW9u5N_0L7Puq3rPQzWOmbL1aw7OSm5s7jTQ6dgGIHKdVEvnjwbWfjl9wz_GKsC6dJamIaT0UeBaKCLwoe8o2GRE6RjYOGFyJ9-BF4JtxJ9StUkn78fMuwnR2xNhPo2a5L4EdmrpxZFXqDuRC3JQuWTf9he190NqUKtve9fDNhR5pFRCO2ZcCmYogdDgPc8fyY-qpfXGYP-HJsNTYqPl-g0abykw2BJ68AAK_c73E_gUa9Vof9eIK_Pfqr0L_d9CWWHT2BCThsj1jj8gbPYhGn9UBT2_KoxSGYFaKEE-qzwcmG_rDbeG3R2zTAqBwR3PWdYBmRPQAnivdOk4UDpNOu0T-E5U7rreuwJih8ZSRTYGBC3FwdIY0eqimQwR9QYHyBsbtBIp-NIrqZpvkPYgeJ-9uFpOKuOBpcVhHntZO9TMYsTDjnhGSI54THxklJ7e-PAp__5WbaxyGhNus0QCNSiCgcYPchR78ehgwAN9wpWkvhjW2vKDJxiX0d_hVJtZUuq_qM_DQwEgAA headers: Accept: - '*/*' @@ -80,7 +80,7 @@ interactions: uri: https://localhost:1080/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/oauth2/token response: body: - string: '{"token_type":"Bearer","scope":"62e90394-69f5-4237-9190-012177145e10","expires_in":"3599","ext_expires_in":"3599","expires_on":"1583347956","not_before":"1583344056","resource":"https://graph.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSIsImtpZCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE1ODMzNDQwNTYsIm5iZiI6MTU4MzM0NDA1NiwiZXhwIjoxNTgzMzQ3OTU2LCJhY3IiOiIxIiwiYWlvIjoiQVdRQW0vOE9BQUFBdjQzaDZnY3FoR2oyY1M3bEYwY1M2dktnYjcwVk5uK2Naa0N5MlJmLy9oemkrbSt6Ymd6YkVKSDFvb0F5V1orRWNFNTh1SE5SZkIzRmd0cGVQSEw0L0hFNnpZOXdNZkwvalZ4V3lzV3krRnJoYmJkbjg5VXdOUlZoeHRUNmFsOG0iLCJhbHRzZWNpZCI6IjU6OjEwMDMyMDAwNTcxQTVEMDQiLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiMDRiMDc3OTUtOGRkYi00NjFhLWJiZWUtMDJmOWUxYmY3YjQ2IiwiYXBwaWRhY3IiOiIwIiwiZW1haWwiOiJmZXlAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiWXUiLCJnaXZlbl9uYW1lIjoiRmVpeXVlIiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3LyIsImlwYWRkciI6IjUyLjE1NS4xMDUuMTYzIiwibmFtZSI6IkZlaXl1ZSBZdSIsIm9pZCI6IjBhNTkyYzQ1LTYxM2UtNGYxYi05MDIzLTdjNDQxNGZkNTNiZiIsInB1aWQiOiIxMDAzMjAwMDU3N0ZCNkJCIiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiNldkMHhUSzQydlFGOGpiTHRKMnQzWG1DZEFxblVPTzhOQUlfZ0lpNDZRRSIsInRlbmFudF9yZWdpb25fc2NvcGUiOiJOQSIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiZmV5QG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJJT1pnOFZha3BFU2VvQWJCYXZZY0FBIiwidmVyIjoiMS4wIn0.dzqdz_410xLflK7e_1XB29sGD8S6knJcTznzQ-F4RhHa8GOMIStA03LEtyB_BGwbIZjbUwJws2DLjj_jO_8RKxIp01W3PAXzWY_3SE1gvxAdWxS2nRa5bruFzMOnEJulY9k7sI_JqIWFdghrTYGnFbZhksqq_k_2ob9naobtTTizlCd79EkxpwEMvShDGxfdvVIHKoWqKsifrfedhyZG4RTbfystNS1XfJnef4BC5JhvH9H1SI0L5VPfYRq80WBJ6AbycMCUCHXLc9bEbA6iOQ1ApaMwA8yZkTugMFmqUtxiZ8FaZOwhykTaZ_GmVQThy5fPe6m-ZCxBnNzqvfyGag","refresh_token":"AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lPPfEoSi0vfz5l9yhn2_b1fA9-IAlXwkjjm5bXafwGR1z54MzcsnDFVaYQMezbgq23X_GJBw65_snmFXvQ8OOHe3DxzO3PVYxAJodKlSN80BIUBBUMf2t4D1rWFukEfSIMJ4NaJnJfW8gPmr_jbSWZKTF_hpCdZGCMCx7Ff9UPEIR9YmEQR8TOpflxPZjnPjRpfV17AvNcszZtzDU5tYJSqz3XfOSmwC0gt8vwRZ2D9nMnRRj3fhQyFPmNGOIxSwDdgQyEkc_pZqdAq6TAVLnmTwsMMd7geVta3-Tp7-l8ICMjorXTmlum6jqRqQdVkCjKZuWvDptQsV_LEpXHb-KYKAYleZesePU9NoKGBWIEcKu2O5-ZCUao8SR-jd8mpp-oAFRdd9l9uQM7BYb1cdjbQG-bLkSNqZkmpXQL_aaxtMxx5UyF0JXvfHcb_cfluLCilrVOB3lPvoAmA-S9JvQoAnNMtZuOVA0yudAV8SMYkF_hpQjgHoVG4H-0yNa2L5-Hs3JcgLtExZscj7guxeghhoXtgG4_BHVOMmxi0GYZjsW4_cpk5ckxStYVNWgtwBpzCH27nWtAqWqPGtr5zQWTIdMsiPnW6p_xtUjZ4wk6y6O736m-ZiCeBztkRDojrjtD6xbp4vG_EfAHLglv1D1bKa7akzMSyKrv0w4N31M36t6EEAGywzxIR3AYLO44NU-GS4r1AK68dyP99jR43eStrDLGgijyEzi0NJa7SKvLlkc8huy6skcYJKgkSKZkdB5x52_miSeDmpXVR24fnme0vYaWOGUpiJY5VlnQzIHPlpl3_Z5nOpmQkIGcvl-Lhz7eerTtJklVKfExAHT6LjUwQtwi0L-9nBiLOVOS-sa6Kc_dtPPbSCuuFwlIQXBdojgV0TpfSypA66cQf9C5Q_JXQ2xeC3HDQpl6mV9HT3dREzP6yOg9b7zMApDLvtytz6P02eTe_RoYroWnESWbWCBqAod3oPCXJ3EpBBpuyA3Kz-B8pesNzapCr2pq5C2MpOv5v45MDKJoNDP-n94ooIvriL4B79RwUHJXwcFPB_iA1kfkGSnfYWpbEHV9oU0z7HwOUsBXB9IUJxn2jBw1m66iAA","foci":"1"}' + string: '{"token_type":"Bearer","scope":"62e90394-69f5-4237-9190-012177145e10","expires_in":"3599","ext_expires_in":"3599","expires_on":"1583430635","not_before":"1583426735","resource":"https://graph.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSIsImtpZCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE1ODM0MjY3MzUsIm5iZiI6MTU4MzQyNjczNSwiZXhwIjoxNTgzNDMwNjM1LCJhY3IiOiIxIiwiYWlvIjoiQVdRQW0vOE9BQUFBK0VIWW5tRzlQeS9WdU5tU1VjYVhUWFYwMTg0YXBuL1V6eG9YU3pJRFZ4YkQ2K295VmJEU3Awdk5EY25SUXJ6R01LVlhRUW1nVUZraEZQV0VYSXhBRmlEWmFXK3BINldnR3ZWQzFxNjI5ZStlNDhvQkczWm56V2ZaSlBEUFB4Tm0iLCJhbHRzZWNpZCI6IjU6OjEwMDMyMDAwNTcxQTVEMDQiLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiMDRiMDc3OTUtOGRkYi00NjFhLWJiZWUtMDJmOWUxYmY3YjQ2IiwiYXBwaWRhY3IiOiIwIiwiZW1haWwiOiJmZXlAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiWXUiLCJnaXZlbl9uYW1lIjoiRmVpeXVlIiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3LyIsImlwYWRkciI6IjUyLjE1NS4xMDUuMTYzIiwibmFtZSI6IkZlaXl1ZSBZdSIsIm9pZCI6IjBhNTkyYzQ1LTYxM2UtNGYxYi05MDIzLTdjNDQxNGZkNTNiZiIsInB1aWQiOiIxMDAzMjAwMDU3N0ZCNkJCIiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiNldkMHhUSzQydlFGOGpiTHRKMnQzWG1DZEFxblVPTzhOQUlfZ0lpNDZRRSIsInRlbmFudF9yZWdpb25fc2NvcGUiOiJOQSIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiZmV5QG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJONThteDcxdzEwbXpSNkx1a04wdkFBIiwidmVyIjoiMS4wIn0.StuS4qJRGRdh2LAbev8XWdidWzkRWTouKYskb3C1dRlhVLU8HA1HrPVhT95iKNKZc7f0UTVMgulKPdtVcZ6VCdy3QLgiMDlu-cawI8P8qXZLLluz4x0UDaNRBlCAOzjNN48wLJOqD1iumUvGD67l4af-bR8YBzgLxq753Q_qAVCPtCTyUWr3tdl5AwNbXPPDdg5XCsOD5sOW4o7oxz30ehfbIwu5s0ebs4MhniFjaiS-ciJFWjblmN0TKiLrNAkwwmqjEP6E13OF3XbgtbjASEPg-xyhNTaY5qUVavRJymc0icvO83l57vE6lAN99vdU5R9WxWuP-bNrvHIynD8EPw","refresh_token":"AQABAAAAAABeAFzDwllzTYGDLh_qYbH8pgKn6dmOqPRoCViDOm-gXjcq7zifxTwY-sHFKMCpbKBrB1lXpzobARL2Ok2WE7zzrOJpBQ1hB1wURtAoV4pJLOj6_6t0m--ZOc4xmTqy2etxFOTri6uEATCYy09bFQwUNPG5Hae-d24cbkJbLz-wZjB98eYWuvDiM-xrHQtyYGGrZE5MAH85V0MnE54-NAMlEhnuQZEn3xj9tfjSYwpjBNUlST-9JWtqPszXaXF0Z_yZXK-6-KU9VnWZhljFn1WCDZIF00ktERsWj_hhSGwAvLIEWj1wmDnhyz-SkmOzbB4iZn3J7cqL9n69pAazFAgOkbuB0HV1QUOfF0tO_zJmhugLghk0AQUuiZQPZRDNXjh185KifRAZ6m-V2H7snj5EAVjE6a4o3DmmiQGzEsd24aJWjMGgEQBalyyP_SqrPXYYhlxjetZOyP4DnqVBby1t8OgpuVcERKOgzap2WOOtY2yAEybRju6sMWoRfZBtctl97wm-ACzela_hpVoZfbnFLsbuWco3CXaAO990vsMqf1HdEgQEFhQF8Rfera0TWyOJ5nl6-ArPnrWVQB74A5TqJlPc3W9C5KVNprjRn8CJCySS4dNB2ZtxANZ92wCtYwjnL1O0qlz6wGiwF_6wUGyGKkY93NXmVmv8QPrDr-ktrtvU_UuMoFDZKo64Zz3KmJ_m1-jIyL6GHm_BLbB0SfoUUs5zRYQh1E03Cl5LqfAoigxd4Ft1zWFU2OxnTOdSAVGkqaX3__-uRODPOi5mytx8HQ2MymDRtaT0xT8hiuBQ-MJsjJ4oDcTfhHZz6bNTugm1pnZEl9hz8jSZzP6HuhAnpQHCqq39DcBofP9Q9tsa76tMcqdS-7Pz4mHr90PWK-nZIh53xXrldOPWVEltYCTXQwj8txpN3Ln3yzKASSL_jmmzDggPJ9dZYgsrAGPGWg6E2IGf1EJZpPfD6ZKNYr7dJn2Ni-yBBWDieC_kapv9ZntJWvDqnp_85ZqOzhsmsQdGabH1Wo5zQqYbPTW2Xevi9WAdkkgT4ZlH1TegouJB-sS4XZYHevZMFlWnvgn0j3lpK499wRNiMM6DJrmxBaalICT4QbAMshDnIT6v-G5DOiAA","foci":"1"}' headers: cache-control: - no-cache, no-store @@ -89,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 04 Mar 2020 17:52:35 GMT + - Thu, 05 Mar 2020 16:50:35 GMT expires: - '-1' p3p: @@ -97,8 +97,8 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AiZ2tL4FZrBIs4CnqmaG4jkXKmpyAQAAAOPh8dUOAAAA; expires=Fri, 03-Apr-2020 - 17:52:36 GMT; path=/; secure; HttpOnly; SameSite=None + - fpc=Aj8bLNiVePdFpdPMj955WpkXKmpyAQAAANsk89UOAAAA; expires=Sat, 04-Apr-2020 + 16:50:36 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly - stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly strict-transport-security: @@ -106,9 +106,9 @@ interactions: x-content-type-options: - nosniff x-ms-clitelem: - - 1,0,0,72145.203, + - 1,0,0,1648624.2774, x-ms-ests-server: - - 2.1.10104.15 - SAN ProdSlices + - 2.1.10104.16 - WST ProdSlices status: code: 200 message: OK @@ -150,19 +150,19 @@ interactions: dataserviceversion: - 3.0; date: - - Wed, 04 Mar 2020 17:52:38 GMT + - Thu, 05 Mar 2020 16:50:38 GMT duration: - - '1864274' + - '2147672' expires: - '-1' ocp-aad-diagnostics-server-name: - - UasoFGN58uUDZzrA1RYY1/OBZjmM666H3oLwSIakuf0= + - Fo1QicrIhHj2KR1ZzWvNa2KLRHgOjpt7/hmcNDActAs= ocp-aad-session-key: - - 0gI8tiS123SmQZ6s4lsOXmURcYEmhdN8r_qYeq8s2qkRkGAQFYUDKTWQYvZpZsPpX1bgyvE-4xB68p1l3iPnqNu51zVJ3Scr1KbSpD-tK-GCcsSVnMyp-6c_guM00EGb.cKnukLY24AfCmcSHjG9-hc1hQ9PzXPaCJ5tRYjQqHM8 + - 9S0pyeKX6hDCxbGnkf6XjD9D0WZS8PyJAq6ppIiNs-zKSt4WKPqczJZ90gZ5_Qe1gdSN2s5QgmmV8gEVmJqHpq4Pt6d4tZ86XX0zNvj3qQDpX2Ed3bHPtPOWKqHs0sB4.AhoLfcgQR5zxMfhFDDjA0Y3qeezjehWKgBN7rG0qeSI pragma: - no-cache request-id: - - 32789ab9-82c9-4423-9055-168b537d26d7 + - 623c18b0-854b-4db9-b5db-8619ae854106 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -200,10 +200,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/b58d79bd-eb31-4392-83cf-59596276ff76?api-version=2018-09-01-preview + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/d4005011-a0af-440f-8f54-78956824b74b?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001","createdOn":"2020-03-04T17:52:40.5456392Z","updatedOn":"2020-03-04T17:52:40.5456392Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/b58d79bd-eb31-4392-83cf-59596276ff76","type":"Microsoft.Authorization/roleAssignments","name":"b58d79bd-eb31-4392-83cf-59596276ff76"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c","principalId":"6d61a178-3216-4ba7-bdc3-0fbc62b65ac9","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001","createdOn":"2020-03-05T16:50:40.7511308Z","updatedOn":"2020-03-05T16:50:40.7511308Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.Authorization/roleAssignments/d4005011-a0af-440f-8f54-78956824b74b","type":"Microsoft.Authorization/roleAssignments","name":"d4005011-a0af-440f-8f54-78956824b74b"}' headers: cache-control: - no-cache @@ -212,7 +212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 04 Mar 2020 17:52:43 GMT + - Thu, 05 Mar 2020 16:50:41 GMT expires: - '-1' pragma: @@ -224,7 +224,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -290,13 +290,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 04 Mar 2020 17:52:47 GMT + - Thu, 05 Mar 2020 16:50:44 GMT etag: - W/"308e89bcda38ef882050e78cdcfd78831d14d5d81ceba87b02fbf2215c092add" expires: - - Wed, 04 Mar 2020 17:57:47 GMT + - Thu, 05 Mar 2020 16:55:44 GMT source-age: - - '131' + - '0' strict-transport-security: - max-age=31536000 vary: @@ -311,17 +311,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 73494f2e5af94b47cae7ce5f698e544dbe60b8a9 + - 2efd22d2bf8716f6db6737f969d118912da10c3e x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - B8B2:4279:29251:2C6BE:5E5FC6EE + - 8960:4279:121A5A:13727F:5E612834 x-served-by: - - cache-tyo19930-TYO + - cache-tyo19948-TYO x-timer: - - S1583344367.157399,VS0,VE1 + - S1583427045.523581,VS0,VE277 x-xss-protection: - 1; mode=block status: @@ -389,7 +389,7 @@ interactions: }\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76fdde29-ba6b-4628-86c1-71e52f8de51e?api-version=2019-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d2689fb3-6594-4b72-83d4-31bc7b1b2895?api-version=2019-05-01-preview cache-control: - no-cache content-length: @@ -397,7 +397,7 @@ interactions: content-type: - application/json date: - - Wed, 04 Mar 2020 17:52:57 GMT + - Thu, 05 Mar 2020 16:50:53 GMT expires: - '-1' pragma: @@ -409,7 +409,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -430,21 +430,21 @@ interactions: - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 method: GET - uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/76fdde29-ba6b-4628-86c1-71e52f8de51e?api-version=2019-05-01-preview + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d2689fb3-6594-4b72-83d4-31bc7b1b2895?api-version=2019-05-01-preview response: body: - string: "{\n \"name\": \"76FDDE29-BA6B-4628-86C1-71E52F8DE51E\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-03-04T17:52:55.755823Z\",\n \"endTime\": - \"2020-03-04T17:53:28.0833551Z\"\n}" + string: "{\n \"name\": \"D2689FB3-6594-4B72-83D4-31BC7B1B2895\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-05T16:50:51.6808794Z\",\n \"endTime\": + \"2020-03-05T16:51:24.7130669Z\"\n}" headers: cache-control: - no-cache content-length: - - '164' + - '165' content-type: - application/json date: - - Wed, 04 Mar 2020 17:53:30 GMT + - Thu, 05 Mar 2020 16:51:26 GMT expires: - '-1' pragma: @@ -514,7 +514,260 @@ interactions: content-type: - application/json date: - - Wed, 04 Mar 2020 17:53:33 GMT + - Thu, 05 Mar 2020 16:51:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {"imagebuilderTemplate": "ubuntu1804"}, + "properties": {"source": {"type": "PlatformImage", "publisher": "Canonical", + "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "18.04.201903060"}, + "customize": [{"name": "RunScriptFromSource", "type": "Shell", "scriptUri": + "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh"}, + {"name": "CheckSumCompareShellScript", "type": "Shell", "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh"}, + {"name": "downloadBuildArtifacts", "type": "File", "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "destination": "/tmp/index.html"}, {"name": "setupBuildPath", "type": "Shell", + "inline": ["sudo mkdir /buildArtifacts", "sudo cp /tmp/index.html /buildArtifacts/index.html"]}, + {"name": "InstallUpgrades", "type": "Shell", "inline": ["sudo apt install unattended-upgrades"]}], + "distribute": [{"runOutputName": "runOutputName", "artifactTags": {"source": + "azVmImageBuilder", "baseosimg": "ubuntu1804"}, "type": "ManagedImage", "imageId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image", + "location": "westus"}], "buildTimeoutInMinutes": 80}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + Content-Length: + - '1406' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + accept-language: + - en-US + method: PUT + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp2?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201903060\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {\n \"baseosimg\": \"ubuntu1804\",\n + \ \"source\": \"azVmImageBuilder\"\n },\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"runOutputName\",\n + \ \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Creating\",\n + \ \"buildTimeoutInMinutes\": 80\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp2\",\n + \"name\": \"tmp2\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {\n \"imagebuilderTemplate\": \"ubuntu1804\"\n + }\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d0778259-67c2-4df9-8de1-304aa76da0ba?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '1953' + content-type: + - application/json + date: + - Thu, 05 Mar 2020 16:51:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d0778259-67c2-4df9-8de1-304aa76da0ba?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"D0778259-67C2-4DF9-8DE1-304AA76DA0BA\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2020-03-05T16:51:37.1809038Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '122' + content-type: + - application/json + date: + - Thu, 05 Mar 2020 16:52:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages/locations/westus/operations/d0778259-67c2-4df9-8de1-304aa76da0ba?api-version=2019-05-01-preview + response: + body: + string: "{\n \"name\": \"D0778259-67C2-4DF9-8DE1-304AA76DA0BA\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2020-03-05T16:51:37.1809038Z\",\n \"endTime\": + \"2020-03-05T16:52:13.5853583Z\"\n}" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Thu, 05 Mar 2020 16:52:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - image builder create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-template + User-Agent: + - python/3.8.1 (Windows-10-10.0.17763-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-imagebuilder/0.2.1 Azure-SDK-For-Python AZURECLI/2.1.0 + method: GET + uri: https://localhost:1080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp2?api-version=2019-05-01-preview + response: + body: + string: "{\n \"properties\": {\n \"source\": {\n \"offer\": \"UbuntuServer\",\n + \ \"publisher\": \"Canonical\",\n \"sku\": \"18.04-LTS\",\n \"type\": + \"PlatformImage\",\n \"version\": \"18.04.201903060\"\n },\n \"customize\": + [\n {\n \"name\": \"RunScriptFromSource\",\n \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh\",\n + \ \"sha256Checksum\": \"2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8\",\n + \ \"type\": \"Shell\"\n },\n {\n \"name\": \"CheckSumCompareShellScript\",\n + \ \"scriptUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh\",\n + \ \"sha256Checksum\": \"ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93\",\n + \ \"type\": \"Shell\"\n },\n {\n \"destination\": \"/tmp/index.html\",\n + \ \"name\": \"downloadBuildArtifacts\",\n \"sha256Checksum\": \"d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58\",\n + \ \"sourceUri\": \"https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html\",\n + \ \"type\": \"File\"\n },\n {\n \"inline\": [\n \"sudo mkdir + /buildArtifacts\",\n \"sudo cp /tmp/index.html /buildArtifacts/index.html\"\n + \ ],\n \"name\": \"setupBuildPath\",\n \"type\": \"Shell\"\n },\n + \ {\n \"inline\": [\n \"sudo apt install unattended-upgrades\"\n ],\n + \ \"name\": \"InstallUpgrades\",\n \"type\": \"Shell\"\n }\n ],\n + \ \"distribute\": [\n {\n \"artifactTags\": {\n \"baseosimg\": \"ubuntu1804\",\n + \ \"source\": \"azVmImageBuilder\"\n },\n \"imageId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Compute/images/image\",\n + \ \"location\": \"westus\",\n \"runOutputName\": \"runOutputName\",\n + \ \"type\": \"ManagedImage\"\n }\n ],\n \"provisioningState\": \"Succeeded\",\n + \ \"buildTimeoutInMinutes\": 80\n },\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_image_builder_template_file_000001/providers/Microsoft.VirtualMachineImages/imageTemplates/tmp2\",\n + \"name\": \"tmp2\",\n \"type\": \"Microsoft.VirtualMachineImages/imageTemplates\",\n + \"location\": \"westus\",\n \"tags\": {\n \"imagebuilderTemplate\": \"ubuntu1804\"\n + }\n}" + headers: + cache-control: + - no-cache + content-length: + - '2224' + content-type: + - application/json + date: + - Thu, 05 Mar 2020 16:52:46 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py index b2cdf2a031e..f92367968e3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_image_builder_commands.py @@ -51,18 +51,28 @@ def _assign_ib_permissions(self, rg): # need to manually give IB service permi def test_image_builder_template_file(self, resource_group): self._assign_ib_permissions(resource_group) - self.kwargs.update({ - 'tmp': 'tmp1' - }) + # URL + self.cmd('image builder create -g {rg} -n tmp1 --image-template "https://raw.githubusercontent.com/qwordy/azvmimagebuilder/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/example.json"', + checks=[ + self.check('source.offer', 'UbuntuServer'), + self.check('source.publisher', 'Canonical'), + self.check('source.sku', '18.04-LTS'), + self.check('source.version', '18.04.201903060'), + self.check('source.type', 'PlatformImage'), + self.check('length(customize)', 5), + self.check('distribute[0].type', 'ManagedImage') + ]) - self.cmd('image builder create -g {rg} -n {tmp} --image-template "https://raw.githubusercontent.com/qwordy/azvmimagebuilder/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/example.json"', + # Local file + self.cmd('image builder create -g {rg} -n tmp2 --image-template image_template.json', checks=[ self.check('source.offer', 'UbuntuServer'), self.check('source.publisher', 'Canonical'), self.check('source.sku', '18.04-LTS'), self.check('source.version', '18.04.201903060'), self.check('source.type', 'PlatformImage'), - self.check('length(customize)', 5) + self.check('length(customize)', 5), + self.check('distribute[0].type', 'ManagedImage') ]) @ResourceGroupPreparer(name_prefix='img_tmpl_basic') From 7f9aaf6229ff8b8f51ba19002edd81c028d5de86 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Mar 2020 01:07:24 +0800 Subject: [PATCH 17/19] Add example --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 8c335107fff..a0884bc1478 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -184,6 +184,10 @@ --scripts $scripts --managed-image-destinations image_1=westus \\ --shared-image-destinations my_shared_gallery/linux_image_def=westus,brazilsouth + - name: Create an image builder template using an image template file. + text: | + az image builder create -g my-group -n mytemplate --image-template filename + - name: > [Advanced] Create an image template with multiple customizers and distributors using the CLI's object cache via --defer. Supports features such as: customizer and output names, powershell exit codes, inline scripts, windows restart, file customizers, artifact tags and vhd output distributors. text: | From 8c1b812dbb9c352841a3c7b32bb9a88986f894c3 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Mar 2020 01:26:32 +0800 Subject: [PATCH 18/19] error handle --- .../azure/cli/command_modules/vm/_image_builder.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py index 1d2a6d71040..5bb55a945d6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_image_builder.py @@ -393,16 +393,20 @@ def create_image_template( # pylint: disable=too-many-locals, too-many-branches content = f.read() else: # It should be an URL - r = requests.get(image_template) + msg = '\nusage error: --image-template is not a correct local path or URL' + try: + r = requests.get(image_template) + except Exception: + raise CLIError(traceback.format_exc() + msg) if r.status_code != 200: - raise CLIError('usage error: --image-template is not a valid local path or URL') + raise CLIError(traceback.format_exc() + msg) content = r.content try: obj = json.loads(content) except json.JSONDecodeError: - raise CLIError('usage error: Content of --image-template is not a valid JSON string\n' + - traceback.format_exc()) + raise CLIError(traceback.format_exc() + + '\nusage error: Content of --image-template is not a valid JSON string') content = {} if 'properties' in obj: content = obj['properties'] From b7ce3611cb2fbf4b18305a0dd155e64cc3c2f749 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Mar 2020 10:09:02 +0800 Subject: [PATCH 19/19] help --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 67fb9849940..c060123e0d6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -188,7 +188,7 @@ def load_arguments(self, _): ib_cutput_type = CLIArgumentType(arg_group="Output") c.argument('build_timeout', type=int, help="The Maximum duration to wait while building the image template, in minutes. Default is 60.") - c.argument('image_template', help='Local path or URL to an image template file. When using --image-template, all other parameters are ignored except -g and -n. Example file: https://github.com/danielsollondon/azvmimagebuilder/blob/master/quickquickstarts/0_Creating_a_Custom_Linux_Managed_Image/helloImageTemplateLinux.json') + c.argument('image_template', help='Local path or URL to an image template file. When using --image-template, all other parameters are ignored except -g and -n. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-json') # Image Source Arguments c.argument('source', arg_type=ib_source_type)