diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 08176a209fc7..4eeea466074b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -643,6 +643,9 @@ sdk/loadtestservice/arm-loadtestservice @qiaozha @dw511214992 # PRLabel: %Mgmt sdk/purview/arm-purview @qiaozha @dw511214992 +# PRLabel: %Mgmt +sdk/imagebuilder/arm-imagebuilder @qiaozha @dw511214992 + # PRLabel: %Monitor /sdk/monitor/ @hectorhdzg @applicationinsights-js-owners /sdk/monitor/monitor-query @KarishmaGhiya @maorleger diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d77bac151bc2..509b41035ec3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -40,6 +40,7 @@ specifiers: '@rush-temp/arm-extendedlocation': file:./projects/arm-extendedlocation.tgz '@rush-temp/arm-features': file:./projects/arm-features.tgz '@rush-temp/arm-hdinsight': file:./projects/arm-hdinsight.tgz + '@rush-temp/arm-imagebuilder': file:./projects/arm-imagebuilder.tgz '@rush-temp/arm-iothub': file:./projects/arm-iothub.tgz '@rush-temp/arm-keyvault': file:./projects/arm-keyvault.tgz '@rush-temp/arm-links': file:./projects/arm-links.tgz @@ -222,6 +223,7 @@ dependencies: '@rush-temp/arm-extendedlocation': file:projects/arm-extendedlocation.tgz '@rush-temp/arm-features': file:projects/arm-features.tgz '@rush-temp/arm-hdinsight': file:projects/arm-hdinsight.tgz + '@rush-temp/arm-imagebuilder': file:projects/arm-imagebuilder.tgz '@rush-temp/arm-iothub': file:projects/arm-iothub.tgz '@rush-temp/arm-keyvault': file:projects/arm-keyvault.tgz '@rush-temp/arm-links': file:projects/arm-links.tgz @@ -8626,6 +8628,28 @@ packages: uglify-js: 3.14.5 dev: false + file:projects/arm-imagebuilder.tgz: + resolution: {integrity: sha512-B799VwkrNiyXYwO50wx8MUAixrwU14vIOD/zW01n/i2Dxa8nYggsoGMFbqk8itwj35VpaoZ3u542uzhkqzubbw==, tarball: file:projects/arm-imagebuilder.tgz} + name: '@rush-temp/arm-imagebuilder' + version: 0.0.0 + dependencies: + '@microsoft/api-extractor': 7.19.2 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + '@types/node': 12.20.40 + cross-env: 7.0.3 + mkdirp: 1.0.4 + mocha: 7.2.0 + rimraf: 3.0.2 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 + tslib: 2.3.1 + typescript: 4.2.4 + uglify-js: 3.14.5 + dev: false + file:projects/arm-iothub.tgz: resolution: {integrity: sha512-PzFOxAYNZCA5fFinZSNlhYM6Z5GYX/yJkJAKycsLISLkEDrj70v3ihSJqSoyI3o9y0oxM1GqeijIgfPgvj4zWg==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' diff --git a/eng/ignore-links.txt b/eng/ignore-links.txt index 48442fcc3361..b2f4274fef5c 100644 --- a/eng/ignore-links.txt +++ b/eng/ignore-links.txt @@ -8,13 +8,6 @@ https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-cha https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-changefeed/samples/typescript https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-changefeed/test/ https://github.com/Azure/azure-digital-twins/blob/private-preview/Documentation/how-to-manage-routes.md -https://docs.microsoft.com/javascript/api/@azure/arm-portal?view=azure-node-preview -https://docs.microsoft.com/javascript/api/@azure/arm-portal -https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/portal/arm-portal -https://docs.microsoft.com/javascript/api/@azure/arm-loadtestservice -https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtestservice/arm-loadtestservice -https://docs.microsoft.com/javascript/api/@azure/arm-attestation -https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/attestation/arm-attestation -https://docs.microsoft.com/javascript/api/@azure/arm-changeanalysis -https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changeanalysis/arm-changeanalysis https://docs.microsoft.com/javascript/api/@azure/arm-confluent?view=azure-node-preview +https://docs.microsoft.com/javascript/api/@azure/arm-imagebuilder +https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/imagebuilder/arm-imagebuilder diff --git a/rush.json b/rush.json index 979caf63e5da..a15a45580340 100644 --- a/rush.json +++ b/rush.json @@ -1220,6 +1220,11 @@ "packageName": "@azure/arm-confluent", "projectFolder": "sdk/confluent/arm-confluent", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-imagebuilder", + "projectFolder": "sdk/imagebuilder/arm-imagebuilder", + "versionPolicyName": "management" } ] } \ No newline at end of file diff --git a/sdk/imagebuilder/arm-imagebuilder/CHANGELOG.md b/sdk/imagebuilder/arm-imagebuilder/CHANGELOG.md new file mode 100644 index 000000000000..e3605a0242e0 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/CHANGELOG.md @@ -0,0 +1,5 @@ +# Release History + +## 1.0.0 (2022-01-10) + +The package of @azure/arm-imagebuilder is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/imagebuilder/arm-imagebuilder/LICENSE b/sdk/imagebuilder/arm-imagebuilder/LICENSE new file mode 100644 index 000000000000..5d1d36e0af80 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/imagebuilder/arm-imagebuilder/README.md b/sdk/imagebuilder/arm-imagebuilder/README.md new file mode 100644 index 000000000000..cc428893f990 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/README.md @@ -0,0 +1,98 @@ +# Azure ImageBuilder client library for JavaScript + +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ImageBuilder client. + +Azure Virtual Machine Image Builder Client + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/imagebuilder/arm-imagebuilder) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-imagebuilder) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-imagebuilder) | +[Samples](https://github.com/Azure-Samples/azure-samples-js-management) + +## Getting started + +### Currently supported environments + +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. + +### Prerequisites + +- An [Azure subscription][azure_sub]. + +### Install the `@azure/arm-imagebuilder` package + +Install the Azure ImageBuilder client library for JavaScript with `npm`: + +```bash +npm install @azure/arm-imagebuilder +``` + +### Create and authenticate a `ImageBuilderClient` + +To create a client object to access the Azure ImageBuilder API, you will need the `endpoint` of your Azure ImageBuilder resource and a `credential`. The Azure ImageBuilder client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure ImageBuilder resource in the [Azure Portal][azure_portal]. + +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). + +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: + +```bash +npm install @azure/identity +``` + +You will also need to **register a new AAD application and grant access to Azure ImageBuilder** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. + +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). + +```javascript +const { ImageBuilderClient } = require("@azure/arm-imagebuilder"); +const { DefaultAzureCredential } = require("@azure/identity"); +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new ImageBuilderClient(new DefaultAzureCredential(), subscriptionId); +``` + + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +## Key concepts + +### ImageBuilderClient + +`ImageBuilderClient` is the primary interface for developers using the Azure ImageBuilder client library. Explore the methods on this client object to understand the different features of the Azure ImageBuilder service that you can access. + +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); +``` + +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + +## Related projects + +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fimagebuilder%2Farm-imagebuilder%2FREADME.png) + +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/imagebuilder/arm-imagebuilder/_meta.json b/sdk/imagebuilder/arm-imagebuilder/_meta.json new file mode 100644 index 000000000000..9a0c81533242 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "409af02e5ca217c7e7ec2acf50f4976c053496f8", + "readme": "specification/imagebuilder/resource-manager/readme.md", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/imagebuilder/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" +} \ No newline at end of file diff --git a/sdk/imagebuilder/arm-imagebuilder/api-extractor.json b/sdk/imagebuilder/arm-imagebuilder/api-extractor.json new file mode 100644 index 000000000000..58511f7dcf0a --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-imagebuilder.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/imagebuilder/arm-imagebuilder/package.json b/sdk/imagebuilder/arm-imagebuilder/package.json new file mode 100644 index 000000000000..b183437bfb29 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/package.json @@ -0,0 +1,95 @@ +{ + "name": "@azure/arm-imagebuilder", + "sdk-type": "mgmt", + "author": "Microsoft Corporation", + "description": "A generated SDK for ImageBuilderClient.", + "version": "1.0.0", + "engines": { "node": ">=12.0.0" }, + "dependencies": { + "@azure/core-lro": "^2.2.0", + "@azure/abort-controller": "^1.0.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.1.0", + "tslib": "^2.2.0" + }, + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "license": "MIT", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-imagebuilder.d.ts", + "devDependencies": { + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", + "mkdirp": "^1.0.4", + "rollup": "^1.16.3", + "rollup-plugin-sourcemaps": "^0.4.2", + "typescript": "~4.2.0", + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2", + "@azure/arm-compute": "^17.0.0", + "@azure/arm-msi": "^2.0.0", + "@types/node": "^12.0.0" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/imagebuilder/arm-imagebuilder", + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" + }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "LICENSE", + "rollup.config.js", + "tsconfig.json", + "review/*", + "CHANGELOG.md", + "types/*" + ], + "scripts": { + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "api-extractor run --local", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "npm run integration-test", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:browser": "echo skipped", + "docs": "echo skipped" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.js new file mode 100644 index 000000000000..7c60f4a65a10 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_create_parameter_for_virtualmachineimagetemplates_test.js @@ -0,0 +1,685 @@ +let nock = require('nock'); + +module.exports.hash = "2d17776248a6b03730757de132d13649"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd520a97a-ddb7-43bb-9fc5-d3d747d50200', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AqLfLOFke19ClAJ_zqnTdiU; expires=Sat, 05-Feb-2022 03:01:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrwq3mFGMB9byJcnHMGESz7ro_3wXkJJoUmIW10WjmgCXKJiM-bRWUKkfd2two3jhwcECNUPlvooqX2k9LczbsIr-PELQRXzWiJPOWmOeYq81ot8NGvEslha2g-IuCWG5o1VDlBk88Sec1W5hiVif46MaD0kx-lKweAoH8TUmgt7EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:01:10 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c11f8f9a-6879-4d56-8cc3-1fb27ce68400', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AtKOtoa3QRlJq_uxktCnNUo; expires=Sat, 05-Feb-2022 03:01:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT0NdByZ9u3_7KCXq-E6SlpbqbtrCC7DTAZ8D5ocVIQnNgbZL65yU-R03Yc8zrwrNcKPAbj8xs4f3NqelrVtyGg4IAiRqVbaJWh_Z5iZ8oBqYwO7-g6Mm_Epx9vN2kroSgXw5c4N8PnKhEeAE86ffpHsaYDzIbB-hP91jJZxKiR4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:01:10 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=0c91b555-66c0-4909-9f27-599fe92d1383&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9dd0c33e-2a73-4b99-a0e0-506faa8c8300', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AkMc0sIhwThNs9qa1vm30v3Lj78gAQAAAHZSaNkOAAAA; expires=Sat, 05-Feb-2022 03:01:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:01:10 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa', {"location":"eastus"}) + .query(true) + .reply(201, {"id":"/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa","name":"mymsiaaa","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"eastus","tags":{},"properties":{"tenantId":"88888888-8888-8888-8888-888888888888","principalId":"1fd4c4d5-1c5c-41c6-8010-01776c52c7ec","clientId":"b62fef0e-e59f-46aa-a612-7f98abcd5825"}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '426', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Location', + '/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-ratelimit-remaining-subscription-writes', + '1199', + 'x-ms-request-id', + 'd676bc2b-ae6f-4f3f-9f12-35a493d2b944', + 'x-ms-correlation-request-id', + 'd676bc2b-ae6f-4f3f-9f12-35a493d2b944', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030119Z:d676bc2b-ae6f-4f3f-9f12-35a493d2b944', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:18 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa', {"location":"eastus","properties":{"creationData":{"createOption":"Empty"},"diskSizeGB":200}}) + .query(true) + .reply(202, {"name":"mydiskaaa","location":"eastus","properties":{"creationData":{"createOption":"Empty"},"diskSizeGB":200,"provisioningState":"Updating","isArmResource":true}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '228', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/9db13725-9034-4244-818b-555eeaf07c79?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&monitor=true&api-version=2021-04-01', + 'Retry-After', + '0', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/9db13725-9034-4244-818b-555eeaf07c79?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&api-version=2021-04-01', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7998', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '9db13725-9034-4244-818b-555eeaf07c79', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1198', + 'x-ms-correlation-request-id', + 'd1526c97-f4cc-4808-bb5f-54263f1f021b', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030122Z:d1526c97-f4cc-4808-bb5f-54263f1f021b', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:21 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/9db13725-9034-4244-818b-555eeaf07c79') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3edadb1bef1eec3eb87fb0fbc9cecea39d9d8f46fc52be9c6d7ae5decea70feedffb347885fa69d70dde78bd9e4ef37c96cff49b555dadf2ba2d727ccb48d187d5ba5dad5bf3c147cb4c7a5b5ccf8ae66d9665fa6e31c3a7779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabb84cd6531cbebe6ee17c5b4ae9aeabc1d9f540b4226bf8bbed1143f1d0eedf58a711b68afadca6a9a013db4ccb306b4902f9ab76bfa8c87497f9981be6eb3e52cab67bffff357afa5217d4934aafd2f3fc2e7bf84bf8d53715ae7dce9d3accddcc7e68bfc4b26187df1d1e962d55e333803901a01fdd7c50ff2cf9f5093bd9d1dfff3b32f5fbe7e9567b3efd6450b84ef875f7ff164d5f85f7f6abfcd97d3fadaf4eb1032443cb55f1fb7af683ebe5bb4f39765d69e57f5e2f7ca7b282ef3f6aaaadf1e134735cdcbaa2ca6d780725c96d515fd6329b75a4fe8bb177e6bb43b5d6693d23022356b89a94f9834cc5731dede7df8e0dec1a78138d08b44fdcba221ac8be505cd0e8fb9cbe8d40ca4b15f7fb5ccda369bcebbdf13c59f5c132f529bbdddfd07fb07f73edd3f70e45d2f8b5fb4cecf18c1f3fdbde9839dddd9f683d9cec1f67ebe4b4cbe439cfef0e0e1eeeefd6cefd3fdfc8049f64b7ee384fe473f198ae5b287b3c9eebd077bf7b71feedcdbdfdedfdbdfdf3ed83d986cdfbf7f3fcf3348cb8387f4fe2f","f97f008b2eb3cd2b040000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399984', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'e9cdb340-5f68-4d55-a52e-649aa57acd11', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-correlation-request-id', + '33c16b83-87f4-4d88-9300-ca85e4df03ca', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030122Z:33c16b83-87f4-4d88-9300-ca85e4df03ca', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:21 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fd68713d2b9ab759967d34e2cf8b193ebddbac27cdb42e566d512d9bbb0ff7ce1fde9f1d9c6fdf9b7efa607b7f776f7ffbe1eef4c1f6c1f47ce7c1743639dfdbdfbd5be74db5aea7f9e775b55e357717d73fddb479d3de5dd5d56531cbebe6ee17c5b4ae9aeabc1d9f548bd5bacdefa26f34c54f87437bbd62dc06da6babb29a66400f2df3ac69d7e68be6ed9a3ee361d25f66a0afdb6c39cbead9effffcd56b69485fb6455efb5f7e84cf7f097ffb11e1bdca6b6ad1500b036d5ae7dce9d3accddcc7e68bfc4b26187df1d1e962d55e333803901a01fdd7c50ff2cf9f5093bd9d1dfff3b32f5fbe7e9567b3efd6450b84ef875f7ff164d5f85f7f6abfcd97d3fadaf4eb1032443cb55f1fb7af683ebe5bb4f39765d69e57f5e2f7ca7b282ef3f6aaaadf1e4fa779d3bcacca627a0d28c765595dd13f9672abf584be7be1b746bbd3653629f3996dd6168bfc8449c37cb5b7b3b7b7bdb3bbbdf3e99b9d7b8f76761feded8d771f3eb877f0e9ee273b3b8f7676ec8b44fdcba221ac8be505cd0e8ff9a3d76bea289f112cd30ca4b15f7fb5ccda369bcebbdf13c59f5c132f529bbdddfd07fb07f73edd3f70e45d2f8b5fb4cecf18c1f3fdbde9839dddd9f683d9cec1f67ebe4b4cbe439cfef0e0e1eeeefd6cefd3fdfc8049f64b7ee3e497","fc3ff92787fd4a030000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39986', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '524e7ae8-1590-49f9-bb82-fa52417e5f00', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-correlation-request-id', + 'd699ceda-1d1f-4495-a7cb-2e968b3cec32', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030125Z:d699ceda-1d1f-4495-a7cb-2e968b3cec32', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:24 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa', {"location":"eastus","properties":{"creationData":{"createOption":"Copy","sourceUri":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa"}}}) + .query(true) + .reply(202, {"location":"eastus","properties":{"creationData":{"createOption":"Copy","sourceUri":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa","sourceUniqueId":"f42c701d-7d08-4e17-80c7-989115a264e8"},"publicNetworkAccess":"Enabled","provisioningState":"Updating","isArmResource":true}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '426', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b899f8e1-c87c-461b-abd0-27a807883413?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&monitor=true&api-version=2021-04-01', + 'Retry-After', + '0', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b899f8e1-c87c-461b-abd0-27a807883413?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&api-version=2021-04-01', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'b899f8e1-c87c-461b-abd0-27a807883413', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1197', + 'x-ms-correlation-request-id', + '37f01a1c-d5ab-4bca-8f6a-e03a65c95b59', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030128Z:37f01a1c-d5ab-4bca-8f6a-e03a65c95b59', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:27 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b899f8e1-c87c-461b-abd0-27a807883413') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3eda7b307e786ff7c183fb0f3ed9d979b4b3f3d1c8bcd4ae1bbc71b67c59571775de34fad53213509383870fcf0ff2ddede9c183e9f6fea7bb93ed6c32dbd9de7b901dec3c3838b8b7bf7befa3df38f9","25ff0f6a50c22a86000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Retry-After', + '0', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399983', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '139b6b78-e252-4eb1-af54-87792605d55d', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11997', + 'x-ms-correlation-request-id', + '11bf16f2-92c8-4205-8280-f72f884d6b3f', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030128Z:11bf16f2-92c8-4205-8280-f72f884d6b3f', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:27 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b899f8e1-c87c-461b-abd0-27a807883413') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3eda7b307e786ff7c183fb0f3ed9d979b4b3f3d1c8bcd4ae1bbc71b67c59571775de34fad53213509383870fcf0ff2ddede9c183e9f6fea7bb93ed6c32dbd9de7b901dec3c3838b8b7bf7befa3df38f9","25ff0f6a50c22a86000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399982', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'dec43fed-448f-4fda-ad98-6ac8fe25e00c', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11996', + 'x-ms-correlation-request-id', + 'f647653f-8b8e-4bee-88cc-d2e3771626a0', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030128Z:f647653f-8b8e-4bee-88cc-d2e3771626a0', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:27 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b899f8e1-c87c-461b-abd0-27a807883413') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3eda7b307e786ff7c183fb0f3ed9d979b4b3f3d1885fca97b3e1570ec60f773fddbd7fb01bbc42fdb4eb066fbc5e4fa7793ecb67facdaaae5679dd1639be65a4e8c36addaed6adf9e0a36526bd2dae9b65b66ae6559b6599be5fccf0cddd663d69a675b16a8b6ad9dc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fee9a6cd9bf62e617459ccf2bab9fb4531adaba63a6fc727d58210caef9afed1dcfcee7069af578ce786f7b465594d33a08ad679d68036f245f3764d9ff1b0e92f33f0d76db69c65f5ecf77ffeeab534a42f8966b5ffe547f8fc97f0b771aa4eeb9c3b7d9ab599fbd87c917fc9c4a32f3e3aa956d7a61bfa5ac8f44ac975f64325f8ac68dea2297e5a42e351acbe5a16bf68ad389defef4d1fececceb61fcc760eb6f7f35dea7f87907878f07077f77eb6f7e97e7ec0443264222880fbbaf841fef91382b0b7b3633ecf97d3fa9a07479f3b4a99193eb55f1fb74498f6bb453b7f5966ed79552f7eaffcbadb4b41cdf345be6cb392de3ecfca26375f2df3f6aaaadf1e935434cdcbaa2ca6d7d4e4a3e3b2acaee81f33e08f56eb097df7c26f8d76a7cb6c521a61a2662d09e6094f2793a42f9f5191a61779121a1a50b1bc208e6a79981d61a5664c2ff3f557cbac6db3e9bcfb3dd1f3c9354d2db5d9dbdd7fb07f70efd3fd0347dbb5376707b3bdfb7bb39d7bdbfbb309cdd9bdece1f6e4d36cb2fd606f6f77763e79b04b23606afe92df38a1ffd14f8662256372f0f0e1f941bebb3d3d7830dddeff7477b29d4d663bdb7b0fb2839d070707f7f677efd1fb","bfe4ff0154b66e63ef040000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399980', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '18092b83-1e48-457f-9f1b-d45e1f5ca87f', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11995', + 'x-ms-correlation-request-id', + '1de0e550-721b-4aab-9da5-2d12a094f265', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030129Z:1de0e550-721b-4aab-9da5-2d12a094f265', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:28 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fd6871dd2cb35533afda2ccb3e1af177c50cdfdc6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4faac56adde6774dff686e7e77b8b4d72bc673c37bdab2aca6195045eb3c6bdab5f9a279bba6cf78d8f49719f8eb365bceb27af6fb3f7ff55a1ad2976d91d7fe971fe1f35fc2df7e446358e535b568a8858136ad73eef469d666ee63f345fe25138fbef8e8a45a5d9b6ee86b21d32b25d7d90f95e0b3a2798ba6f869098d47b1fa6a59fca2b5e274bebf377db0b33bdb7e30db39d8decf77a9ff1d42e2e1c1c3ddddfbd9dea7fbf90113c99089a000eeebe207f9e74f08c2dece8ef93c5f4eeb6b1e1c7dee286566f8d47e7ddc1261daef16edfc6599b5e755bdf8bdf2eb6e2f0535cf17f9b2cd4a7afb3c2b9bdc7cb5ccdbabaa7e7b3c9de64df3b22a8be93535f9e8b82cab2bfac70cf8a3d57a42dfbdf05ba3dde9329b94f9cc366b8b457ec2d3c924d9dbd9dbdbded9dddef9f4cdcebd473bbb8ff61e8c1fdedb7df0e0fe834f76761eedecd81779121a1a50b1bc208e6a7998afd7d4513e2358a619d3cb7cfdd5326bdb6c3aef7e4ff47c724d534b6df676f71fec1fdcfb74ffc0d176edcdd9c16ceffede6ce7def6fe6c4273762f7bb83df9349b6c3fd8dbdb9d9d4f1eecd208989abfe4374e","7ec9ff03d7ec26030e040000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/LowCostGet3Min;4997,Microsoft.Compute/LowCostGet30Min;39984', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '21cc13b4-e414-45d8-ac70-f2e9ce1472af', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11994', + 'x-ms-correlation-request-id', + '76b5bd8b-03e7-4556-8553-744324334ad2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030129Z:76b5bd8b-03e7-4556-8553-744324334ad2', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:28 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimagesaaa', {"location":"eastus","properties":{"storageProfile":{"osDisk":{"snapshot":{"id":"subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa"},"osType":"Linux","osState":"Generalized"}},"hyperVGeneration":"V1"}}) + .query(true) + .reply(201, {"name":"myimagesaaa","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimagesaaa","type":"Microsoft.Compute/images","location":"eastus","properties":{"storageProfile":{"osDisk":{"osType":"Linux","osState":"Generalized","snapshot":{"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa"},"caching":"None","storageAccountType":"Standard_LRS"},"dataDisks":[]},"provisioningState":"Creating","hyperVGeneration":"V1"}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '725', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/operations/a0076468-3b86-43bb-983b-a0e34e471797?p=f8cfeb74-5cf7-40e0-89b1-3d95a1060fe7&api-version=2021-07-01', + 'Azure-AsyncNotification', + 'Enabled', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;198', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + 'a0076468-3b86-43bb-983b-a0e34e471797', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1196', + 'x-ms-correlation-request-id', + '5641803d-f857-47d3-a856-f80934b77959', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030132Z:5641803d-f857-47d3-a856-f80934b77959', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:31 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/operations/a0076468-3b86-43bb-983b-a0e34e471797') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3ebab73bdedffbf4e1c1fe273b3b8f76763e1a9977da758317ce962febeaa2ce9b46bf5a660229dbd979f0e9fea707dbf726079f6eefdf9b4cb61f1edc9b6c673bf9bdfd7cffc1ee83870f3efa8d935f","f2ff00c592e12585000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29989', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + 'eba83bc3-3d10-4e37-ac03-8381527fb3e5', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11993', + 'x-ms-correlation-request-id', + '11cc72a2-15b4-4856-8e8f-6499e1e19aac', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030133Z:11cc72a2-15b4-4856-8e8f-6499e1e19aac', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/operations/a0076468-3b86-43bb-983b-a0e34e471797') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3ebab73bdedffbf4e1c1fe273b3b8f76763e1a9977da758317ce962febeaa2ce9b46bf5a660229dbd979f0e9fea707dbf726079f6eefdf9b4cb61f1edc9b6c673bf9bdfd7cffc1ee83870f3efa8d935f","f2ff00c592e12585000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29988', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + 'dd085a05-7f39-4ce0-ba38-5de13fbb8a98', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11992', + 'x-ms-correlation-request-id', + 'de5a6ad2-853e-4ddb-8e8a-1b0f7745adbc', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030136Z:de5a6ad2-853e-4ddb-8e8a-1b0f7745adbc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:35 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/operations/a0076468-3b86-43bb-983b-a0e34e471797') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedec3ebab73bdedffbf4e1c1fe273b3b8f76763e1af13bf97236fcc6a7e3fbf73efdf4e1cebde015eaa65d3778e3f57a3acdf3593ed36f969940ca76761e7cbaffe9c1f6bdc9c1a7dbfbf72693ed8707f726dbd94e7e6f3fdf7fb0fbe0e1838f7ee3e497","fc3fd846f2c8b7000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29987', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '0b676460-c7fe-4a26-8108-fc6448d95755', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11991', + 'x-ms-correlation-request-id', + '349d6bac-8440-4a90-aa6b-f9a8e5de9da1', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030138Z:349d6bac-8440-4a90-aa6b-f9a8e5de9da1', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:37 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimagesaaa') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fd68715d2cb28bbcc9b2eca3117f53ccf0f9dd663d69a675b16a8b6ad9dc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fee9a6cd9bf6eeaaae2e8b595e3777bf28a675d554e7edf8a45aacd66d7e577aa7b6f28b43a3bd5e318243af68b3b29a6640114df3ac69d7e60bea7495d76d412d1fa53c66fab069ab9a5e7e5957e74509f0fa057d55354f8be6adff117ff846d1785e2cd7ef04b43cf4ddeb366bf9cbcff3655e6765f1837c16349911c4d7f4e9e74fa8d5dece8eff5db3cc56cdbc6ae91baf47fae2874b7f83069a9bdf31090ea55fe2633dcda6f36279010c5f54cb3c18ad12f7783aadd6cbd6108e88b49c65f5ecf77ffeeab585ea607e34cbda0c94c7347deffbf2b1f91a937859344401ea930009b55fafa7d33c9f395a7f34a7beea9f945900bdd0ea2777b9b75ff21b27bf","e4ff01567b6880f2020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetImages3Min;359,Microsoft.Compute/GetImages30Min;1793', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '024e986a-ebc0-4d69-9d82-6d17098289d4', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11990', + 'x-ms-correlation-request-id', + 'b794df46-43d1-4fbc-a35c-4ddd2aeae1ad', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T030140Z:b794df46-43d1-4fbc-a35c-4ddd2aeae1ad', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:01:39 GMT' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.js new file mode 100644 index 000000000000..22d34e2f3a0a --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_delete_parameter_for_virtualmachineimagetemplates_test.js @@ -0,0 +1,329 @@ +let nock = require('nock'); + +module.exports.hash = "55b5a3cf987798d93e3f5fcd5d1dadc3"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'bd7cce1a-504f-4080-b015-662ec5310800', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AjYcG5AP6Z5Ig9PUThAYd14; expires=Sat, 05-Feb-2022 03:14:29 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ0-uXxrwJlnJ8aA_xqW3gfQ-8yrKYfV7tsOlZegSyvkvdN7rEjECBG0FpJPRXcRNTZd-NkdS8gaRHWHIFhijA-HronJBeNyxeq0A8bgUHxOqnz0lcVkuMU300rIS66ZQGI_atgq20icTas1128XH8fhvnIbXWSsKJo7RMrPloS8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:14:29 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'bd7cce1a-504f-4080-b015-662ec8310800', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=ArInSGlKmCdJlQHrrBoC2pw; expires=Sat, 05-Feb-2022 03:14:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUlb0Bx7MSgpQhnV-FChLkzkSzv8VNPqb0euXXL4AFyitSWs8OdVZDsi4V3YofnGf4yxvTWW65NyPKdzdQl0XJqxyzzGla5wOR3VL1b5fTcN7F49lu6JUslMLhTfXUqqE_PdO8FVwVUYwPn8l-LtwCRYADYhe_9KBLgC2uWFfl2ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:14:29 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=9281122d-42fc-445d-a2da-5fe512f27c8f&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a229268-50b8-4df0-8d9c-388eab3b6c00', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Apn15HcetTpCsKALtA_c_pXLj78gAQAAAJVVaNkOAAAA; expires=Sat, 05-Feb-2022 03:14:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:14:29 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimagesaaa') + .query(true) + .reply(204, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14999', + 'x-ms-request-id', + 'bbc6320d-4a96-488c-8215-ef4af122d6e2', + 'x-ms-correlation-request-id', + 'bbc6320d-4a96-488c-8215-ef4af122d6e2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031431Z:bbc6320d-4a96-488c-8215-ef4af122d6e2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:31 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/snapshots/mysnapshotaaa') + .query(true) + .reply(202, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/f644f03e-747a-4f8d-bb43-c11077ff5864?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&monitor=true&api-version=2021-04-01', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/f644f03e-747a-4f8d-bb43-c11077ff5864?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&api-version=2021-04-01', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/DeleteDisks3Min;999,Microsoft.Compute/DeleteDisks30Min;7997', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'f644f03e-747a-4f8d-bb43-c11077ff5864', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14998', + 'x-ms-correlation-request-id', + '5177044c-64ed-4497-a67d-f7d23446309c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031433Z:5177044c-64ed-4497-a67d-f7d23446309c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:32 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/f644f03e-747a-4f8d-bb43-c11077ff5864') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedee3fbab7377eb8b7776fe7e1bd4f76761eedec7c34e297f2e56cf8957be39d0707f73fbdb71fbc42fdb4eb066fbc5e4fa7793ecb67facd321348e79feeef9fefdccbb71fec3fc8b6f7cf0f66db93c9febdede9eeeece8307e7e7f70f3eddffe8374e7e","c9ff0369f0ba74b8000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399976', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + '9a1208a7-6c44-4e8e-970a-1ee4c0775a91', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-correlation-request-id', + 'eaf21854-f7a0-41a0-bdbd-5535fe584798', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031433Z:eaf21854-f7a0-41a0-bdbd-5535fe584798', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/disks/mydiskaaa') + .query(true) + .reply(202, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b730958d-35bb-41d3-99a1-e18462368493?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&monitor=true&api-version=2021-04-01', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b730958d-35bb-41d3-99a1-e18462368493?p=46f2ba6c-4ad8-4d14-a912-d9914b2fcabd&api-version=2021-04-01', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/DeleteDisks3Min;998,Microsoft.Compute/DeleteDisks30Min;7996', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'b730958d-35bb-41d3-99a1-e18462368493', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14997', + 'x-ms-correlation-request-id', + '7b87db1a-3b36-4174-a47e-41d41eab0f08', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031434Z:7b87db1a-3b36-4174-a47e-41d41eab0f08', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:33 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Compute/locations/eastus/DiskOperations/b730958d-35bb-41d3-99a1-e18462368493') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bd5ed9b62917ff428fd686f676f6f7b67777be7d3373bf71eedee3fbab73fde7db0776f6fefe1273b3b8f76763e1af14bf972b6e9957bf71f3e78b81fbc41ddb4eb062fbc5e4fa7793ecb67facd3213409307f7761ede3f986ddfbb3f996cefefceee6d3f7c98ed6ee7bb07fb9feeddfbf460ffe1bd8f7ee3e497","fc3f3bdd0dc4b7000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-resource', + 'Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399975', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-served-by', + '46f2ba6c-4ad8-4d14-a912-d9914b2fcabd_132720953397422156', + 'x-ms-request-id', + 'c172c4c3-57ba-4749-8154-26f770042571', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-correlation-request-id', + 'aceab760-144e-4a4f-84eb-b2380ad60f4c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031434Z:aceab760-144e-4a4f-84eb-b2380ad60f4c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:34 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14996', + 'x-ms-request-id', + '658574b4-4f20-4fb5-a818-869586f782a1', + 'x-ms-correlation-request-id', + '658574b4-4f20-4fb5-a818-869586f782a1', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031442Z:658574b4-4f20-4fb5-a818-869586f782a1', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:41 GMT', + 'Content-Length', + '0' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_create_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_create_test.js new file mode 100644 index 000000000000..da24d8df82c2 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_create_test.js @@ -0,0 +1,685 @@ +let nock = require('nock'); + +module.exports.hash = "f93e9f4cecccf4cdda3d1b30f8e8b80d"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'cc627666-e0af-4a19-bdb7-d110fa677a00', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Au8CDml-7AZMoJmEumxprI4; expires=Sat, 05-Feb-2022 03:10:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSTsMi4_YXiWBzb18H2xZHZ91V9_9ANQlhDIMl06hI8sHDRKNi-zl8nZZne4GDquRNBFk0ZOW6AOTI0X7dLnitXIsGo5NPung8w3gYn38JmMBYveN3zI0CTa9XpcnzqFHB5V8X8gwTE3V0cjuB2i4JyZVqqAxrOqA1VX3Vmn4LVEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:10:20 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '47af5f47-bd6e-4acd-b8d8-aa9623c08000', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Aq5XsRYQtE9AlDbuEUwUfiQ; expires=Sat, 05-Feb-2022 03:10:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlbwsyQya5r-d4wfkGj4D2yPxU2QsBu5JvP4azHu11EJkQ50ZCF2-cjc507jX1BXFyjHwcs0el2AEB5-4fWSeu2B2PGif8DFOTDS7gkecwgFkCl4rRcFyj3wojuyobojCDtAecSh3RR14_3RhidNWUfWC0tlfjIyI6aXsPbEnLdsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:10:21 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=6edf518a-ada3-47ab-a3ac-942dea3228db&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '70f2d6e6-a657-4463-8780-712401e59000', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=ApN_HtYxWZ1BjJFCz6aXSn7Lj78gAQAAAJ1UaNkOAAAA; expires=Sat, 05-Feb-2022 03:10:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:10:21 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.VirtualMachineImages/imageTemplates/myimageTemplatexxxz', {"tags":{"tag1":"IT_T1","tag2":"IT2_T2"},"location":"eastus","identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa":{}}},"properties":{"source":{"type":"ManagedImage","imageId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimageaaa"},"customize":[{"type":"Shell","name":"Shell Customizer Example","scriptUri":"https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.compute/vm-msi/scripts/install-and-run-cli-2.sh"}],"distribute":[{"type":"ManagedImage","runOutputName":"image_it_pir_1","artifactTags":{"tagName":"value"},"imageId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimageaaa","location":"eastus"}]}}) + .query(true) + .reply(201, {"properties":{"source":{"imageId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimageaaa","type":"ManagedImage"},"customize":[{"name":"Shell Customizer Example","scriptUri":"https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.compute/vm-msi/scripts/install-and-run-cli-2.sh","type":"Shell"}],"distribute":[{"artifactTags":{"tagName":"value"},"imageId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Compute/images/myimageaaa","location":"eastus","runOutputName":"image_it_pir_1","type":"ManagedImage"}],"provisioningState":"Creating","buildTimeoutInMinutes":0},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa":{}}},"id":"/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.VirtualMachineImages/imageTemplates/myimageTemplatexxxz","name":"myimageTemplatexxxz","type":"Microsoft.VirtualMachineImages/imageTemplates","location":"eastus","tags":{"tag1":"IT_T1","tag2":"IT2_T2"}}, [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Length', + '1395', + 'Content-Type', + 'application/json', + 'Expires', + '-1', + 'x-ms-ratelimit-remaining-subscription-writes', + '1199', + 'azure-asyncoperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272?api-version=2021-10-01', + 'x-ms-correlation-request-id', + '30bdd91e-a73b-46d2-a381-1731b263fbd0', + 'x-ms-request-id', + '735bc5c5-58ff-4587-b5ea-011ab2746272', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031032Z:30bdd91e-a73b-46d2-a381-1731b263fbd0', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-correlation-request-id', + '0f8a796c-7b21-48c8-a42f-99b5abbe78fd', + 'x-ms-request-id', + '7f3a4960-e188-4d7c-9c14-442137a1e40d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031032Z:0f8a796c-7b21-48c8-a42f-99b5abbe78fd', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-correlation-request-id', + 'e284992f-92a6-4db6-88ce-1233834812c2', + 'x-ms-request-id', + '2759a4fe-15de-4491-b10c-a256551a9ba5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031035Z:e284992f-92a6-4db6-88ce-1233834812c2', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:34 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11997', + 'x-ms-correlation-request-id', + '3d1c5d8d-a4f4-47f4-9772-11118bf56041', + 'x-ms-request-id', + '897ab430-5ac2-43b7-bb7b-d723ae6bffc0', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031037Z:3d1c5d8d-a4f4-47f4-9772-11118bf56041', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:37 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11996', + 'x-ms-correlation-request-id', + 'f4a6ab5d-e8bb-4f9f-9c48-1d9cd5f071f1', + 'x-ms-request-id', + 'ddcc2ce0-770e-4ad0-ab9b-e7f290817919', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031039Z:f4a6ab5d-e8bb-4f9f-9c48-1d9cd5f071f1', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:39 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11995', + 'x-ms-correlation-request-id', + '6d677261-950a-4803-af29-417dec3f23aa', + 'x-ms-request-id', + 'ebe8cafd-94cd-41f4-bf17-0785f4cb97d9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031042Z:6d677261-950a-4803-af29-417dec3f23aa', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:41 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11994', + 'x-ms-correlation-request-id', + '080a423a-ef4b-4e7e-9ea6-791adceba6c5', + 'x-ms-request-id', + 'c51e37b3-e8fa-4176-ab7b-8bc5c80116a7', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031044Z:080a423a-ef4b-4e7e-9ea6-791adceba6c5', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:44 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11993', + 'x-ms-correlation-request-id', + 'fbff1ee4-03ed-4bc0-a8f8-a8b438484f34', + 'x-ms-request-id', + '7aa7f6c8-ce11-430f-9e36-f8c3dd6e4a3f', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031046Z:fbff1ee4-03ed-4bc0-a8f8-a8b438484f34', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:46 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11992', + 'x-ms-correlation-request-id', + 'a8dde3ee-87f1-481f-9bd2-5ade5a707ca7', + 'x-ms-request-id', + 'f22ba0c2-0b4e-4496-95e7-0b3f3236168e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031049Z:a8dde3ee-87f1-481f-9bd2-5ade5a707ca7', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:49 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11991', + 'x-ms-correlation-request-id', + 'd1e6217e-3a08-4bab-b9f1-317c1087d776', + 'x-ms-request-id', + '6ee67ceb-9d69-4985-bafe-9ef53ca3b387', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031051Z:d1e6217e-3a08-4bab-b9f1-317c1087d776', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:51 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11990', + 'x-ms-correlation-request-id', + '2c113dc0-8180-4922-a1ff-dddc84db686e', + 'x-ms-request-id', + 'cfe2cdcd-dd7f-42d7-89f1-c42024d3a1d8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031053Z:2c113dc0-8180-4922-a1ff-dddc84db686e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:53 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11989', + 'x-ms-correlation-request-id', + '80367f21-4e7e-48f8-951d-41d5e8fc0a90', + 'x-ms-request-id', + '90e00b2d-5dbf-4ab9-b892-9666f686f8f3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031056Z:80367f21-4e7e-48f8-951d-41d5e8fc0a90', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:56 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11988', + 'x-ms-correlation-request-id', + 'e85e179e-f1c8-4dbd-ac7c-489008cb7526', + 'x-ms-request-id', + 'aaca1c7b-2d37-481e-ad0f-5a69257f30d4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031058Z:e85e179e-f1c8-4dbd-ac7c-489008cb7526', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:10:58 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11987', + 'x-ms-correlation-request-id', + '5386acb4-25be-4ce8-8b85-da7bba4b271d', + 'x-ms-request-id', + '60ae90ca-6a4c-4ed9-84fa-269faacf43cc', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031100Z:5386acb4-25be-4ce8-8b85-da7bba4b271d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:00 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbc72b67c59571775de34e68bba7d5308b8bd9dbd3d7a777be7d3373bf71eedee3cbab733be77f0531f25","bfe4ff01a92edaad75000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11986', + 'x-ms-correlation-request-id', + 'eabef78e-1821-46a4-a3ca-3c9886cbd112', + 'x-ms-request-id', + 'b2f0bd18-488d-4e9e-b934-a64cb19b2bb9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031103Z:eabef78e-1821-46a4-a3ca-3c9886cbd112', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:02 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/735bc5c5-58ff-4587-b5ea-011ab2746272') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1edcbbffe4e4fec9fdedfb07cf9e6defdf3f78b0fde4fee9f1f6ceeeeef193bd07fb9fee3dd8fb68442f346dd6ae1bbcf27a3d9de6f92c9f99cfebf64d21d0f676f6f6e8d5ed9d4fdfecdc7bb4bbf3e8decef8dec14f71c37c391b68b6fb68677ffce9c1c1eeeecefd9ffa28f9","25ff0ff7ebf360a0000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11985', + 'x-ms-correlation-request-id', + 'bac4b655-8fa3-4b6c-85bb-76c2967c8e8d', + 'x-ms-request-id', + 'd432fc0e-0e67-4245-9594-747a87388cae', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031105Z:bac4b655-8fa3-4b6c-85bb-76c2967c8e8d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:05 GMT' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_delete_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_delete_test.js new file mode 100644 index 000000000000..6ed9da944d41 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_delete_test.js @@ -0,0 +1,3241 @@ +let nock = require('nock'); + +module.exports.hash = "0d9493f2933e16a3bd6b8dec9af7b24c"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'cc627666-e0af-4a19-bdb7-d11097697a00', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Ai5w1m2BBx1Cl0jehxGFKGA; expires=Sat, 05-Feb-2022 03:11:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7VFeu034X-XREHGvhb356Hf8JfIMs2Lfi3lcM2fJycSWrjoa1yq-NOYNycWo68ywKG6ayru53JZThfXAn0eG_jFaLmjPraTZ445LnieeLWT56XvPPTBXs0_fFVqL-WfkI4CEyKbdj-lotuNqgBpQsooW71rOzVkz7HURynI4kM0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:09 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'cc627666-e0af-4a19-bdb7-d11099697a00', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Amu4Z-emvRVGs_iztMYVZpE; expires=Sat, 05-Feb-2022 03:11:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGoLEQMiRPV1oy-cHi4QAv73LLyOxSGlf-2pHQZIaXendRuX6By_Un0xOnl101YbFz17_7pV5IBKphGP_A-ZO97FnUTxVz07q7GgjCvLVmLOWB5kOC5tjtAzBUuqLDEosDfE7bt9wuprL5sLqkpdzVrMdlO98WDgacd95cTkh2zcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:09 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=28053b19-a18a-4f72-a933-4b9893528242&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f3edfea5-2534-40e9-bc13-f4ee5dcc8600', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AmJ1gT5SPLpGqbAIxmDld6fLj78gAQAAAM1UaNkOAAAA; expires=Sat, 05-Feb-2022 03:11:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:09 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.VirtualMachineImages/imageTemplates/myimageTemplatexxxz') + .query(true) + .reply(202, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Location', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd?api-version=2021-10-01', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14999', + 'azure-asyncoperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd?api-version=2021-10-01', + 'x-ms-correlation-request-id', + '7728b82e-430a-4064-9145-69aae7cdda18', + 'x-ms-request-id', + '9cdda530-9daf-4d1c-a164-cb099600b5fd', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031111Z:7728b82e-430a-4064-9145-69aae7cdda18', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:11 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11982', + 'x-ms-correlation-request-id', + 'cc5785cc-623f-49f4-8c7f-f2efabdafea4', + 'x-ms-request-id', + '817b4d1c-8742-408c-ba78-fbbe9ea6bcba', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031111Z:cc5785cc-623f-49f4-8c7f-f2efabdafea4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:11 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11981', + 'x-ms-correlation-request-id', + 'a54c0375-af51-4a86-adc4-0579153f9f24', + 'x-ms-request-id', + '0570fc6c-b241-471c-b2f9-f246eaf26f0e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031114Z:a54c0375-af51-4a86-adc4-0579153f9f24', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:13 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11980', + 'x-ms-correlation-request-id', + '8af07b90-c881-4a81-976d-24623b76a3b6', + 'x-ms-request-id', + 'fd749db1-0856-47f5-86d9-ad0bf97428e9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031116Z:8af07b90-c881-4a81-976d-24623b76a3b6', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:16 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11979', + 'x-ms-correlation-request-id', + 'fd8c64ce-f47b-4ed3-b66d-9463a3aea621', + 'x-ms-request-id', + '5bbeb424-7d0d-4c92-9272-bf5b63bb75ce', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031118Z:fd8c64ce-f47b-4ed3-b66d-9463a3aea621', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:18 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11978', + 'x-ms-correlation-request-id', + '1048790a-ac98-4e9d-9408-b9fa717e9d76', + 'x-ms-request-id', + '8a1a7bf1-16c0-418a-a062-f8387835d1dd', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031121Z:1048790a-ac98-4e9d-9408-b9fa717e9d76', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:20 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11977', + 'x-ms-correlation-request-id', + '7e612a9a-51c7-49ea-8c2f-41faca3f0df3', + 'x-ms-request-id', + '956813e1-fb38-40f7-86e8-6a9e6349cb81', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031123Z:7e612a9a-51c7-49ea-8c2f-41faca3f0df3', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:23 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11976', + 'x-ms-correlation-request-id', + 'baf06c0b-338c-400a-ac86-7053a723cef3', + 'x-ms-request-id', + '74889f39-1544-45d1-a772-f3e9fc7b2aea', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031125Z:baf06c0b-338c-400a-ac86-7053a723cef3', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:25 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11975', + 'x-ms-correlation-request-id', + '9507acf3-9225-48a1-abfa-505c09980ec4', + 'x-ms-request-id', + '80fe83dd-047c-4bac-baf2-02c752e0856d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031128Z:9507acf3-9225-48a1-abfa-505c09980ec4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:27 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11974', + 'x-ms-correlation-request-id', + 'b137b7f9-fb28-448e-8552-dfc298253bfa', + 'x-ms-request-id', + '128464e6-f5e2-4a35-8dd3-b6f7a8eb9c9b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031130Z:b137b7f9-fb28-448e-8552-dfc298253bfa', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:29 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11973', + 'x-ms-correlation-request-id', + '158d4da9-0b9d-4fa9-a9c3-d02f6f5b607e', + 'x-ms-request-id', + '5b80cc8b-ae89-4454-ab9d-d2d97fdc7567', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031132Z:158d4da9-0b9d-4fa9-a9c3-d02f6f5b607e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11972', + 'x-ms-correlation-request-id', + 'df7ec760-45e4-471a-ae38-b39aae97d988', + 'x-ms-request-id', + 'c7ec97de-2aff-4c1a-9cdc-85d0a236adcd', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031135Z:df7ec760-45e4-471a-ae38-b39aae97d988', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:34 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11971', + 'x-ms-correlation-request-id', + 'b031ba59-c1c7-4044-839f-6b811a081d0e', + 'x-ms-request-id', + '8d75b3e9-656c-433a-ae74-72316dde3e48', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031137Z:b031ba59-c1c7-4044-839f-6b811a081d0e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:36 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11970', + 'x-ms-correlation-request-id', + '6edbe0ab-2a70-4a30-a6a9-3c75edfa3e75', + 'x-ms-request-id', + '5b5e6400-8348-4d5a-9583-8736989c29d4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031139Z:6edbe0ab-2a70-4a30-a6a9-3c75edfa3e75', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:39 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11969', + 'x-ms-correlation-request-id', + '92f4b849-246a-4897-9a4b-576b3b26584b', + 'x-ms-request-id', + 'fef7ecd3-ac95-47a3-a59d-0ab471d88ba5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031142Z:92f4b849-246a-4897-9a4b-576b3b26584b', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:41 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11968', + 'x-ms-correlation-request-id', + 'da9cb74b-89b1-4cb0-81fb-c2d066dd307c', + 'x-ms-request-id', + 'b0bb0709-74bb-43a8-aadd-90d582197157', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031144Z:da9cb74b-89b1-4cb0-81fb-c2d066dd307c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:43 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11967', + 'x-ms-correlation-request-id', + 'dfe46359-b71f-4b17-a990-cd57959fff17', + 'x-ms-request-id', + 'e0148636-9ae2-4368-a88e-de524d1ae5d5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031146Z:dfe46359-b71f-4b17-a990-cd57959fff17', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:46 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11966', + 'x-ms-correlation-request-id', + '16e43aa2-791d-4507-9328-a610ddb434bc', + 'x-ms-request-id', + 'a936664a-ba3a-4e16-a2c2-ccbd92b030d0', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031149Z:16e43aa2-791d-4507-9328-a610ddb434bc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:48 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11965', + 'x-ms-correlation-request-id', + 'a71f178a-1447-4cdf-bbba-ab801b00cdf6', + 'x-ms-request-id', + '5c7e3632-a23e-40e4-88cf-a6adf9237479', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031151Z:a71f178a-1447-4cdf-bbba-ab801b00cdf6', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:50 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11964', + 'x-ms-correlation-request-id', + 'ab5dc77e-6557-450d-a882-179724ea432f', + 'x-ms-request-id', + '4513f93f-0b5a-4a3a-9d19-7c52f13127a3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031153Z:ab5dc77e-6557-450d-a882-179724ea432f', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:53 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11963', + 'x-ms-correlation-request-id', + '3611b255-33a8-4c9e-9f79-d09beaa28134', + 'x-ms-request-id', + '0e36eba6-b3e5-4a12-ba17-bef347979cde', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031156Z:3611b255-33a8-4c9e-9f79-d09beaa28134', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:55 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11962', + 'x-ms-correlation-request-id', + '23b2aae7-3728-4c04-bbc5-d636668cc57b', + 'x-ms-request-id', + 'eb654254-d0ab-440f-9dc8-bcd8f9d7c21d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031158Z:23b2aae7-3728-4c04-bbc5-d636668cc57b', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:57 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11961', + 'x-ms-correlation-request-id', + 'a9c2dc07-fd7a-4745-ae32-2b145c1dd5ec', + 'x-ms-request-id', + 'acd83ec8-ff44-482a-8d54-357883127c91', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031200Z:a9c2dc07-fd7a-4745-ae32-2b145c1dd5ec', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:00 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11960', + 'x-ms-correlation-request-id', + '54786d9d-13f6-41e8-ad1a-e5cdd35a8690', + 'x-ms-request-id', + 'e1f612a6-406a-4042-a2e7-ead9591c54e4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031203Z:54786d9d-13f6-41e8-ad1a-e5cdd35a8690', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:02 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11959', + 'x-ms-correlation-request-id', + '2838de2e-ff1e-4055-952a-b10e263d9f76', + 'x-ms-request-id', + 'bcf28a70-0a49-4bc0-b237-2b6300778319', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031205Z:2838de2e-ff1e-4055-952a-b10e263d9f76', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:04 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11958', + 'x-ms-correlation-request-id', + 'c644a561-85da-40a1-894a-388fbed3df6e', + 'x-ms-request-id', + '2dca15f4-c5ea-4d93-9389-a60f852d852d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031207Z:c644a561-85da-40a1-894a-388fbed3df6e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:07 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11957', + 'x-ms-correlation-request-id', + '982e6983-cc99-4bd3-80bb-37f30c9b0d16', + 'x-ms-request-id', + 'f40f3a34-8f99-4f09-b6ab-c1f61d1061c1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031210Z:982e6983-cc99-4bd3-80bb-37f30c9b0d16', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:09 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11956', + 'x-ms-correlation-request-id', + 'e8c869c7-9252-44a2-87bc-07e3197e34c3', + 'x-ms-request-id', + 'a7a14fad-4a9c-4ac1-b635-0a3e70af7f1a', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031212Z:e8c869c7-9252-44a2-87bc-07e3197e34c3', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:11 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11955', + 'x-ms-correlation-request-id', + 'cb10ab88-4a35-4566-aadc-842d7f31365c', + 'x-ms-request-id', + '4b8eee4c-a312-4a44-910f-9144272737c4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031214Z:cb10ab88-4a35-4566-aadc-842d7f31365c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:14 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11954', + 'x-ms-correlation-request-id', + 'c8f502a4-2d43-41d1-80c9-f672e010ea4d', + 'x-ms-request-id', + 'da8fd214-cc4c-456f-aa35-1d5a4e9902c5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031217Z:c8f502a4-2d43-41d1-80c9-f672e010ea4d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:16 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11953', + 'x-ms-correlation-request-id', + '2e375a6c-9df3-44c1-a07f-9fdb83f428ff', + 'x-ms-request-id', + '9be89086-87bf-4720-8eca-6ecc5ba82a84', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031219Z:2e375a6c-9df3-44c1-a07f-9fdb83f428ff', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:18 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11952', + 'x-ms-correlation-request-id', + 'edca69ee-979c-4f84-9ea0-88d8b51f4a93', + 'x-ms-request-id', + '9a5c191c-ea9a-40d8-b162-0e3ff4a15aa5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031221Z:edca69ee-979c-4f84-9ea0-88d8b51f4a93', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:21 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11951', + 'x-ms-correlation-request-id', + '5a6869a9-c725-43bc-b02d-31ecc7729b67', + 'x-ms-request-id', + '72eb324a-282a-4989-8bd8-77b216d185a7', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031224Z:5a6869a9-c725-43bc-b02d-31ecc7729b67', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:23 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11950', + 'x-ms-correlation-request-id', + '569603f1-97d2-43ef-bf79-34e45613f1a5', + 'x-ms-request-id', + 'cd441f9b-576c-4e25-a303-6921e2e41687', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031226Z:569603f1-97d2-43ef-bf79-34e45613f1a5', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:25 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11949', + 'x-ms-correlation-request-id', + '20941122-f963-4760-9c1d-0de03f10b4cc', + 'x-ms-request-id', + '4176ca7a-6eb7-4d6f-808c-6f5f4a0ae5c9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031228Z:20941122-f963-4760-9c1d-0de03f10b4cc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:28 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11948', + 'x-ms-correlation-request-id', + 'ca1b3f55-372c-43e4-9ab4-bf695b1d8393', + 'x-ms-request-id', + '67796ada-496c-4802-8f90-a81bfc144272', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031231Z:ca1b3f55-372c-43e4-9ab4-bf695b1d8393', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:30 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11947', + 'x-ms-correlation-request-id', + '6ab6075f-e2a9-4afd-b84f-dd823d29bcbd', + 'x-ms-request-id', + '8d1f6118-5441-496c-b0e8-fe11235a4ed3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031233Z:6ab6075f-e2a9-4afd-b84f-dd823d29bcbd', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:32 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11946', + 'x-ms-correlation-request-id', + '6c21e206-646b-414f-9825-0f80b5f761f4', + 'x-ms-request-id', + 'c5c280ca-5426-492b-9e6d-c0a3c4863bad', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031235Z:6c21e206-646b-414f-9825-0f80b5f761f4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:35 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11945', + 'x-ms-correlation-request-id', + '2cfefd02-615f-4388-aaca-ce4e0ca4870e', + 'x-ms-request-id', + '87e54c30-ce26-41de-bbab-35e0e64f2d54', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031238Z:2cfefd02-615f-4388-aaca-ce4e0ca4870e', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:37 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11944', + 'x-ms-correlation-request-id', + 'c7360e3a-d67f-4903-9ab1-6a0926b7d36d', + 'x-ms-request-id', + 'db9dd14d-05c3-4421-ba16-0e45497b23c5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031240Z:c7360e3a-d67f-4903-9ab1-6a0926b7d36d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:39 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11943', + 'x-ms-correlation-request-id', + '9eef3b5f-3ddb-49b6-a119-ce07ab1a7b0a', + 'x-ms-request-id', + '09b3d388-35a4-4289-a0ee-7b0866ed7424', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031243Z:9eef3b5f-3ddb-49b6-a119-ce07ab1a7b0a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:42 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11942', + 'x-ms-correlation-request-id', + 'a36740e6-40a2-4169-a383-353a75d3eecf', + 'x-ms-request-id', + '8a31ea36-e971-464d-8686-e04db6af8e9c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031245Z:a36740e6-40a2-4169-a383-353a75d3eecf', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:44 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11941', + 'x-ms-correlation-request-id', + 'a918ed79-e67a-4b20-9991-205a8bf4d839', + 'x-ms-request-id', + 'd59f3d14-b62e-4b7c-846b-086f84e33cfc', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031247Z:a918ed79-e67a-4b20-9991-205a8bf4d839', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:46 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11940', + 'x-ms-correlation-request-id', + '7d7eb8cf-13fd-432b-9597-57f2171f805d', + 'x-ms-request-id', + '517bb28e-05c4-47e2-ac37-a1bd308c683c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031250Z:7d7eb8cf-13fd-432b-9597-57f2171f805d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:49 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11939', + 'x-ms-correlation-request-id', + '9ac6526c-7a5f-46f7-a594-44006848ddfb', + 'x-ms-request-id', + '9124be90-5140-409e-a5bb-aa1fac0b08cd', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031252Z:9ac6526c-7a5f-46f7-a594-44006848ddfb', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:51 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11938', + 'x-ms-correlation-request-id', + 'b8eb58eb-f5c4-4558-9a6e-4bbe8e5040cc', + 'x-ms-request-id', + '9e62d503-05a1-4b42-b825-3301c5e1dbef', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031254Z:b8eb58eb-f5c4-4558-9a6e-4bbe8e5040cc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:53 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11937', + 'x-ms-correlation-request-id', + 'b388d8c6-dc00-4273-be4a-958798ade468', + 'x-ms-request-id', + 'c0681137-88da-4004-85f6-ed5c6c513d70', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031257Z:b388d8c6-dc00-4273-be4a-958798ade468', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:56 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11936', + 'x-ms-correlation-request-id', + 'c82ab87f-c6bf-45ac-bf63-c912e46af515', + 'x-ms-request-id', + 'c572cca8-7d30-4cbd-867f-9da7567ef82b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031259Z:c82ab87f-c6bf-45ac-bf63-c912e46af515', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:12:58 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11935', + 'x-ms-correlation-request-id', + '67ef8b08-af5e-4804-90c2-5c9dc2187965', + 'x-ms-request-id', + '17d45cab-a5f0-4f2c-868c-1d7faa0efed5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031301Z:67ef8b08-af5e-4804-90c2-5c9dc2187965', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:01 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11934', + 'x-ms-correlation-request-id', + '22a2c0f3-2989-4839-8691-00f913685652', + 'x-ms-request-id', + '65432287-26d4-4fd9-bf3d-0f70ef159606', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031304Z:22a2c0f3-2989-4839-8691-00f913685652', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:04 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11933', + 'x-ms-correlation-request-id', + 'dae7e1fc-bb23-4682-a8c8-7abc51b05068', + 'x-ms-request-id', + 'b170f31c-0f4b-4ca0-a85c-fa2f7095cb18', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031306Z:dae7e1fc-bb23-4682-a8c8-7abc51b05068', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:06 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11932', + 'x-ms-correlation-request-id', + 'd2f10628-64b6-442d-b9b2-f7c9e9b59c37', + 'x-ms-request-id', + '6ba66df0-c834-4b07-8be7-d990a43fe8a2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031308Z:d2f10628-64b6-442d-b9b2-f7c9e9b59c37', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:08 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11931', + 'x-ms-correlation-request-id', + 'b4b90f44-7a88-4da6-a23d-d6af876b2645', + 'x-ms-request-id', + 'ef83af49-1fab-4ed6-9223-dbe3da6c4b02', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031311Z:b4b90f44-7a88-4da6-a23d-d6af876b2645', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:11 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11930', + 'x-ms-correlation-request-id', + 'ef412b26-26e5-47dd-bacf-e71e5080b6bd', + 'x-ms-request-id', + 'f64ca1c8-5249-42de-bf10-2e1d65d9e47b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031313Z:ef412b26-26e5-47dd-bacf-e71e5080b6bd', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:13 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11929', + 'x-ms-correlation-request-id', + '989bfb27-e81e-492c-b33e-909d6044907a', + 'x-ms-request-id', + '72706703-37ff-4ecc-b4c3-b9a19b598b95', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031315Z:989bfb27-e81e-492c-b33e-909d6044907a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:15 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11928', + 'x-ms-correlation-request-id', + '53effda7-5aa0-4c5f-9819-89377fc7c6b4', + 'x-ms-request-id', + '05c3c1e5-1ab6-44b8-af18-39d3920d1466', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031318Z:53effda7-5aa0-4c5f-9819-89377fc7c6b4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:18 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11927', + 'x-ms-correlation-request-id', + '9f0eeb50-06be-449e-a000-03675b586c39', + 'x-ms-request-id', + 'b981f0cd-16d1-48a5-8402-d0a507a9e8e9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031320Z:9f0eeb50-06be-449e-a000-03675b586c39', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:20 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11926', + 'x-ms-correlation-request-id', + '8a28b64a-19fd-45e5-9490-420c0be749db', + 'x-ms-request-id', + '586f6f41-f0d5-4627-a19f-1cda5e0a77c3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031322Z:8a28b64a-19fd-45e5-9490-420c0be749db', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:22 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11925', + 'x-ms-correlation-request-id', + '1f71a436-dc2d-408a-b84d-089c5d4c87cf', + 'x-ms-request-id', + 'e84932e2-8019-45ac-8f57-474de81a3cb7', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031325Z:1f71a436-dc2d-408a-b84d-089c5d4c87cf', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:25 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11924', + 'x-ms-correlation-request-id', + '615e8cd3-9787-4fcd-92e0-b6dd7bbbb89a', + 'x-ms-request-id', + 'df3a1e8d-f2ab-4388-a7c7-7df3c7f57133', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031327Z:615e8cd3-9787-4fcd-92e0-b6dd7bbbb89a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:27 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11923', + 'x-ms-correlation-request-id', + '0c26872d-8083-4169-aeca-6ca774d87417', + 'x-ms-request-id', + '352c16e7-4750-4fb6-9b4a-4784732004a0', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031329Z:0c26872d-8083-4169-aeca-6ca774d87417', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:29 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11922', + 'x-ms-correlation-request-id', + '4208f104-5d84-4945-ac0c-de5687a7b609', + 'x-ms-request-id', + '4008dec1-d0c2-410b-a5a9-359ea8664c90', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031332Z:4208f104-5d84-4945-ac0c-de5687a7b609', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:31 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11921', + 'x-ms-correlation-request-id', + '7b9fe3f3-5a24-4f68-a462-60d98d2b4bec', + 'x-ms-request-id', + '83c020da-aa44-4eae-a535-cd1ab755b740', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031334Z:7b9fe3f3-5a24-4f68-a462-60d98d2b4bec', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:34 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11920', + 'x-ms-correlation-request-id', + '26ed1e10-0303-4a44-b14d-34b8ccfd63a4', + 'x-ms-request-id', + 'cbaded09-e3e4-432a-b907-5a1ce0203892', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031337Z:26ed1e10-0303-4a44-b14d-34b8ccfd63a4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:36 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11919', + 'x-ms-correlation-request-id', + '5b2ecbb3-f40d-47e3-a7f7-23281fa8bbfa', + 'x-ms-request-id', + '1064f185-1575-47a7-91c2-593b5233210e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031339Z:5b2ecbb3-f40d-47e3-a7f7-23281fa8bbfa', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:38 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11918', + 'x-ms-correlation-request-id', + 'c93e1089-5986-4433-aa0e-2d01a27d07c7', + 'x-ms-request-id', + 'e5d4f6ee-0d8c-463a-9ef5-c50d10e5013d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031341Z:c93e1089-5986-4433-aa0e-2d01a27d07c7', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:41 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11917', + 'x-ms-correlation-request-id', + '5f847f21-a629-4c37-82fa-42cccd078f67', + 'x-ms-request-id', + '2f43eb24-5fae-41bf-8553-7c205004eaa5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031344Z:5f847f21-a629-4c37-82fa-42cccd078f67', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:43 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11916', + 'x-ms-correlation-request-id', + '42033dfc-6f63-4810-8de6-036f0212eafc', + 'x-ms-request-id', + '8e9d454a-c1f6-4ccb-9a14-08a58478ce33', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031346Z:42033dfc-6f63-4810-8de6-036f0212eafc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:45 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11915', + 'x-ms-correlation-request-id', + 'b0bd02ec-032d-4302-b161-70d6e45bd5a1', + 'x-ms-request-id', + 'a7a7baf6-c770-422a-ae11-9be8542bf729', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031348Z:b0bd02ec-032d-4302-b161-70d6e45bd5a1', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:48 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11914', + 'x-ms-correlation-request-id', + '82fff9a8-51f7-45b2-876b-5646d3fd9318', + 'x-ms-request-id', + '8e5b6b26-e135-4caf-a8a1-1f63fe41369c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031351Z:82fff9a8-51f7-45b2-876b-5646d3fd9318', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:50 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11913', + 'x-ms-correlation-request-id', + '9f7e54fb-5c2e-4f9c-9c0f-ff71b165e3dc', + 'x-ms-request-id', + '1aa36346-f491-48cb-9f54-a4bcdde25730', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031353Z:9f7e54fb-5c2e-4f9c-9c0f-ff71b165e3dc', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:52 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11912', + 'x-ms-correlation-request-id', + 'f9ac1494-722a-4877-98bd-86d2ad86b170', + 'x-ms-request-id', + '885bb2d5-804a-408a-8361-8e38748c9039', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031355Z:f9ac1494-722a-4877-98bd-86d2ad86b170', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:55 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11911', + 'x-ms-correlation-request-id', + '17e517b0-2c77-48d6-9d31-1243f17a9d24', + 'x-ms-request-id', + '2bdb8d24-dc91-409a-a27d-cf7dece5d009', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031358Z:17e517b0-2c77-48d6-9d31-1243f17a9d24', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:57 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11910', + 'x-ms-correlation-request-id', + 'bf468163-a8e6-44f1-b4e1-907afeec2d54', + 'x-ms-request-id', + '63987ad2-47a5-44e4-8a14-9e5c946fb813', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031400Z:bf468163-a8e6-44f1-b4e1-907afeec2d54', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:13:59 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11909', + 'x-ms-correlation-request-id', + 'ac7ef5b2-f0b8-4978-9eab-0c807ae796fb', + 'x-ms-request-id', + 'c11f074c-21cf-41ff-8aee-5b4f0d5ef6b0', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031402Z:ac7ef5b2-f0b8-4978-9eab-0c807ae796fb', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:02 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11908', + 'x-ms-correlation-request-id', + '3aff3be6-ab20-4c1c-ab8c-676fa10bce7c', + 'x-ms-request-id', + '69822764-1aef-4099-9009-ce6a1b3ac2cc', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031405Z:3aff3be6-ab20-4c1c-ab8c-676fa10bce7c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:04 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11907', + 'x-ms-correlation-request-id', + '01b8a549-83f0-47dc-b425-b5ad3d3cde58', + 'x-ms-request-id', + 'c99b4bac-c05c-40bc-9d0e-bb33fcbd1658', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031407Z:01b8a549-83f0-47dc-b425-b5ad3d3cde58', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:06 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11906', + 'x-ms-correlation-request-id', + 'f366bdcd-e594-4e05-8adb-dad26026b747', + 'x-ms-request-id', + '98f9f104-0f11-4343-815f-86b49c60cfc6', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031409Z:f366bdcd-e594-4e05-8adb-dad26026b747', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:09 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11905', + 'x-ms-correlation-request-id', + 'a8a62ebf-0204-499b-bdc3-eee5dc612985', + 'x-ms-request-id', + '9dbec79e-120f-4d23-b69a-38b4fb752b9e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031412Z:a8a62ebf-0204-499b-bdc3-eee5dc612985', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:11 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11904', + 'x-ms-correlation-request-id', + '1969f4df-9e14-4a1f-9924-929c1796ea65', + 'x-ms-request-id', + 'ad2c1480-21f1-4df0-a020-89ada32db3eb', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031414Z:1969f4df-9e14-4a1f-9924-929c1796ea65', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:13 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11903', + 'x-ms-correlation-request-id', + 'b4baa215-965e-4d26-98fa-1a5b69fda6d2', + 'x-ms-request-id', + 'ec59c714-48ab-4b74-837b-cdee6eb43418', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031416Z:b4baa215-965e-4d26-98fa-1a5b69fda6d2', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:16 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11902', + 'x-ms-correlation-request-id', + '89f912e7-406d-4a4d-9513-ea5ab9f0b558', + 'x-ms-request-id', + 'fc70c64a-044e-4703-8e03-a3787fd1b9cc', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031419Z:89f912e7-406d-4a4d-9513-ea5ab9f0b558', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:18 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11901', + 'x-ms-correlation-request-id', + 'b8ccf19f-a2d8-49ab-8142-30873d02c2ee', + 'x-ms-request-id', + 'e0d54618-e5da-429b-b6e3-dea3242f9455', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031422Z:b8ccf19f-a2d8-49ab-8142-30873d02c2ee', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:21 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11900', + 'x-ms-correlation-request-id', + 'b043ef4c-6d31-427d-9265-690efc61560c', + 'x-ms-request-id', + '7b93a684-aa9c-45df-8874-ec2792256f44', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031424Z:b043ef4c-6d31-427d-9265-690efc61560c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:23 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0cad9f2655d5dd479d3982feaf64d21e0f676f6f6b67776b7773e7db373efd1ee2efd6fbcbb730fcf4f7d94","fc92ff07e3268b937a000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11899', + 'x-ms-correlation-request-id', + 'e13c639c-e125-42b5-997f-59a6c2a075cb', + 'x-ms-request-id', + '2800e6db-5388-43cc-acc9-219041662575', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031426Z:e13c639c-e125-42b5-997f-59a6c2a075cb', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:26 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/locations/eastus/operations/9cdda530-9daf-4d1c-a164-cb099600b5fd') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4cc16f9478fd28f1e9e3c7d7a7cffdecef6c3a7c7cfb6f79fee9e6c1fef7ebabf7df264e7e1c34f77769edc7ff6f4a311bdd0b459bb6ef0caebf5749ae7b37c663eafdb378540dbdbd9dbdbded9dddef9f4cdcebd47bbbbf4bff1eece3d3c3fc5adf3e56ca0edfea3bd83f1c1c1fec1eebd839ffa28f9","25ff0f74653531a5000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11898', + 'x-ms-correlation-request-id', + '7e948dce-e9bb-41a7-8f74-f6c043826ed4', + 'x-ms-request-id', + '491dcdf1-57f1-4c45-9d96-de615257a543', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031429Z:7e948dce-e9bb-41a7-8f74-f6c043826ed4', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:28 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/imageTemplates') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927e749995ebfca347e9f7be9f","fc92ff07e77ab73310000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11897', + 'x-ms-correlation-request-id', + '7f2a58f6-d0ee-4b33-9915-e3ffb2f1d1a2', + 'x-ms-request-id', + 'd5f5aceb-0583-40fe-a992-e56e22df2dd5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031429Z:7f2a58f6-d0ee-4b33-9915-e3ffb2f1d1a2', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:14:28 GMT' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_get_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_get_test.js new file mode 100644 index 000000000000..27d6ad3a88db --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_get_test.js @@ -0,0 +1,147 @@ +let nock = require('nock'); + +module.exports.hash = "daa28e891c2c76bbcb338d13dbfcf750"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f3edfea5-2534-40e9-bc13-f4ee47cc8600', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AuOfk344ff5Lm-GIDMTpVx0; expires=Sat, 05-Feb-2022 03:11:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBMhObAn4wwgQDLpIBtdTOHO-hLQzvnGZ9a48GjP9mYx_DNXdwGsUV6LbnGlVo-7oM3IzOJXDEtqIVbObh68n3UHUTHNF_U866v_G8C-egRBO33y0AdKYgV01umVVroHFMVTijiGqVG_j_4EPPZOHXj3hRXn5YOzfIFkrBv7tSaUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:07 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '89e2e4b5-6ede-4472-8671-6d7ef26b0800', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Ark47qff-hBJkPDWqv4BM5g; expires=Sat, 05-Feb-2022 03:11:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrhjT8Uoh-imw2lT2LTPhMotw4RmudF6lMrkvroD58Lqe0aCy_40ckOGI9TEK1_ChJo0oAqKbRsJSMz8SNhiiMpakwmqJae5lDDCdiGxS0jpGaJLGAC3QQTZMXUzEmkKNsUS5EqvW2BpMeVK-WRzsywFZ0ycUchJBMDNZzIrcuktogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:07 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=fb78dec8-820f-4d36-84ef-6232aef14b90&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '70f2d6e6-a657-4463-8780-7124ace69000', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AtvDdcWBw3BLsZbVF4MkwMDLj78gAQAAAMtUaNkOAAAA; expires=Sat, 05-Feb-2022 03:11:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:07 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.VirtualMachineImages/imageTemplates/myimageTemplatexxxz') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927eb4aaab555eb745de7cf428a50fd28f9a6a5d4f73fd2bfda8586417f9d98cfefee86eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff76e9d0bbccfeb6abd6aee2eae7fba69f3a6bd4bfd5e16b3bc6eee7e514cebaaa9cedbf149b558addbfc2e7789b6fc4b96651f8d1895f67a05bc3efa225bd2e7b3337cfb117df34bf0f547d375d3568be20768f23dfa40f04f3f5a660b7cf4d1eb795e96e9896955a7a7efb2c5aacc05388d9b47f6555da0f1bc6d57cda3bb772f8a76be9e8ca7d5e2eef10fd6757e37c3bfdbbf685d4cdf366d56b7db6d4e40321ad3dd49594dee2e321a5f7dd735a071d80112181ee0e5627bd11477a5c7e66eb1a49665b99d2d67dbf57ab93d2d8bedbd7133b798cdb3bdfb9f9ecc7302b95e00bdbdf3dd7b3b937bd9e4e0fe838793f3fd87b3fbe7e7d9fee4def9cea793fbbb3bf70e669f3e3c98dc9bdd9bed9eefef7dfae9f96e3e393fb837d9cbee4d1ecc760d644351a60d4899fe12fae7fbf8f6a359d1b47531217ca9854f501a54719e4ddb37d985611a7a3e6ab38b174aeacbac5cf3cc103cc0a26f792aff5fc146e9476535cdd03790c969bed68df986a8ffe5baa5b7cd48f8d5dfbf687fff5551fffe3db27519d1a31e23d65027c5f2e2754bfc81f6afd7d3699ecff21903fa68b22ecad99b629157ebf66cf945b124ac41d19d84c9f6110d6cd916ed357d0422db6ebf6af2fab8698a8ba581b4f63e3993b79c447f18c52f6e41714307e9f9fa6e1c1d82415c8f7950bc40a562392d5659299cb1bfbb3bdd994c77b6f3dddd6c7bffe15ebe9de5d37bdbd3839d83d983fd7b0f1fde3be001d3ab24240458defb746f763e7d983fdc7eb8373ddfdedfdf3bd8ce76a6f7b7f77626f7679f4ef3d9c1fd033b3ff47fa52e5ebdfbb34c9a9f2cea769d955f64d379b1cc995348e0f1e38d551ccaa1e68377efdefd00a3b49a6be87bc30fefd51bbf19970088b0611afcbe4bbf7f74f6e6f77f238c8f8ff6e4a3bddfffcd1e11f49724bf","e4ff01faa5cf6944060000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11984', + 'x-ms-correlation-request-id', + 'a1152c5a-7f28-4d44-aa6b-4b28a4a05526', + 'x-ms-request-id', + 'c24f6348-4286-4ba3-85d0-0c013d921008', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031108Z:a1152c5a-7f28-4d44-aa6b-4b28a4a05526', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:08 GMT' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_list_test.js b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_list_test.js new file mode 100644 index 000000000000..cf664719b6c7 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/recordings/node/imagebuilder_test/recording_virtualmachineimagetemplates_list_test.js @@ -0,0 +1,147 @@ +let nock = require('nock'); + +module.exports.hash = "32347a6f8c41608a7d3181ddfe2fa089"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f3edfea5-2534-40e9-bc13-f4ee4fcc8600', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Ajji4T42eJpLr0Vna9mkcbI; expires=Sat, 05-Feb-2022 03:11:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6HJl-qxLgurL53QWe3bmTwZ4LdYNPks_Qo7V0HkkATiEPnOYXYGBxAPMEhEGzj3RQjmJNCA5zCzMIgUhRdJfUz-YW7O5NWaVyjtBxKFyUb248JsFMmfkYvNQCmE6_4aia75Ccv7aNNw-78cUfRkytvY4AWROMCtSO5jvcfMKlRIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:08 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'af698745-0a52-46a4-b823-085140810b00', + 'x-ms-ests-server', + '2.1.12261.17 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AlF8H5Kv3Q9FiJUaCg3hN80; expires=Sat, 05-Feb-2022 03:11:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1aDj16RQaGhuxFWfJEos9M_TolMKZ9xSpcrG83DSxuLtyUtEDB9JnRTou4zYw6IOiryB8-npwHUPGWjQRCizp_rJ-DchJ2OsRJMH9PI_nILX21uXlGqhixA7fHmA22AQstn0NQNkYK6Z52h_9JRdUmXcMgsg9R1n1nuQJtFq6WwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:08 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=55aebeda-1aad-4304-959a-2753af64bd4a&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '47af5f47-bd6e-4acd-b8d8-aa96a0c18000', + 'x-ms-ests-server', + '2.1.12261.17 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AtdfzaC85nZOsZm_LVQpJ67Lj78gAQAAAMxUaNkOAAAA; expires=Sat, 05-Feb-2022 03:11:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Thu, 06 Jan 2022 03:11:08 GMT', + 'Content-Length', + '1393' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.VirtualMachineImages/imageTemplates') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227e71927e749995ebfca347e9f79234a5bfd3f4a3555dadf2ba2df2863ee68fd28f9a6a5d4fd14cfe4e3f2a16d9457e36a34f3ebadbac27cdb42e566d512d9bbb0ff7ce1fde9f1d9c6fdf9b7efa607b7f776f7ffbe1eef4c1f6c1f47ce7c1743639dfdbdfbd5be702f1f3ba5aaf9abb8beb9f6edabc69ef52df97c52caf9bbb5f14d3ba6aaaf3767c522d56eb36bfcb5da22dff9265d9472345a6bd5e01b78fbec896f4cdec0cdf7fc4dffd1269f2d174ddb4d5a2f8019a61a4f4e848d28f96d9021f7ff47a9e97657a625ad6e9e9bb6cb12a73d30d518147f9555da0f9bc6d57cda3bb772f8a76be9e8ca7d5e2eef10fd6757e37c3bfdbbf685d4cdf366d56b7db6d4e60321adfdd49594dee2e321a6b7dd735a031d9c112181eece5627bd11477a5c7e66eb1a49665b99d2d67dbf57ab93d2d8bedbd7133f7709b677bf73f3d99e70474bd00827be7bbf77626f7b2c9c1fd070f27e7fb0f67f7cfcfb3fdc9bdf39d4f27f77777ee1dcc3e7d7830b937bb37db3ddfdffbf4d3f3dd7c727e706fb297dd9b3c98ed3ad886be4c21216cfa4bf8c7f7a5cd47b3a269eb62429853bb2e816988c579366ddf64178ea5e8f9a8cd2e5e28f1850df51b9d356ac153fdff12364b3f2aab6986de814e4eb3b86edc77342b5fae5b826046c4affffe45fbfbaf8afaf78f10b3cfac1d9a32920d75572c2f5eb7c43f78ebf57a3acdf3593e53801f4dd645397b532cf26add9e2dbf289634065079075f0b213fa2a12edba2bda68f85f81689af9abc3e6e9ae262e920aebdcfcee44d5f177cd84c5cdc62260c65a4efebbb718408064908e6c762069a15cb69b1ca4ae199fddddde9ce64bab39defee66dbfb0ff7f2ed2c9fdedb9e1eec1ccc1eecdf7bf8f0de810e9b5e26a122e0f2e6a77bb3f3e9c3fce1f6c3bde9f9f6fefedec176b633bdbfbdb733b93ffb749acf0eee1f04b3c6ff5a7a03c4dd9f6532fd6451b7ebacfc229bce8b65ce7c448a023fde5885a35c6c3e78f7eedd0f64bc56eb0db7303cf25e3deabb4392029177ac84bf76e9af8fcedefcfe6f8c88e0c33df970eff77fb3c7440671e9ffdf4f7e","c9ff03b51eaea9b3060000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11983', + 'x-ms-correlation-request-id', + '076e0580-905c-4d21-981a-a4f72926aeab', + 'x-ms-request-id', + 'a91928d3-a926-432a-8594-bdb46625b9de', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'nginx', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20220106T031109Z:076e0580-905c-4d21-981a-a4f72926aeab', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Thu, 06 Jan 2022 03:11:09 GMT' +]); diff --git a/sdk/imagebuilder/arm-imagebuilder/review/arm-imagebuilder.api.md b/sdk/imagebuilder/arm-imagebuilder/review/arm-imagebuilder.api.md new file mode 100644 index 000000000000..10dd08c3c9a9 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/review/arm-imagebuilder.api.md @@ -0,0 +1,509 @@ +## API Report File for "@azure/arm-imagebuilder" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import * as coreAuth from '@azure/core-auth'; +import * as coreClient from '@azure/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; + +// @public +export interface CloudError { + error?: CloudErrorBody; +} + +// @public +export interface CloudErrorBody { + code?: string; + details?: CloudErrorBody[]; + message?: string; + target?: string; +} + +// @public (undocumented) +export interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export type CreatedByType = string; + +// @public (undocumented) +export class ImageBuilderClient extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ImageBuilderClientOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + operations: Operations; + // (undocumented) + subscriptionId: string; + // (undocumented) + virtualMachineImageTemplates: VirtualMachineImageTemplates; +} + +// @public +export interface ImageBuilderClientOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export type ImageTemplate = TrackedResource & { + identity: ImageTemplateIdentity; + readonly systemData?: SystemData; + source?: ImageTemplateSourceUnion; + customize?: ImageTemplateCustomizerUnion[]; + distribute?: ImageTemplateDistributorUnion[]; + readonly provisioningState?: ProvisioningState; + readonly provisioningError?: ProvisioningError; + readonly lastRunStatus?: ImageTemplateLastRunStatus; + buildTimeoutInMinutes?: number; + vmProfile?: ImageTemplateVmProfile; +}; + +// @public +export interface ImageTemplateCustomizer { + name?: string; + type: "Shell" | "WindowsRestart" | "WindowsUpdate" | "PowerShell" | "File"; +} + +// @public (undocumented) +export type ImageTemplateCustomizerUnion = ImageTemplateCustomizer | ImageTemplateShellCustomizer | ImageTemplateRestartCustomizer | ImageTemplateWindowsUpdateCustomizer | ImageTemplatePowerShellCustomizer | ImageTemplateFileCustomizer; + +// @public +export interface ImageTemplateDistributor { + artifactTags?: { + [propertyName: string]: string; + }; + runOutputName: string; + type: "ManagedImage" | "SharedImage" | "VHD"; +} + +// @public (undocumented) +export type ImageTemplateDistributorUnion = ImageTemplateDistributor | ImageTemplateManagedImageDistributor | ImageTemplateSharedImageDistributor | ImageTemplateVhdDistributor; + +// @public +export type ImageTemplateFileCustomizer = ImageTemplateCustomizer & { + type: "File"; + sourceUri?: string; + sha256Checksum?: string; + destination?: string; +}; + +// @public +export interface ImageTemplateIdentity { + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties; + }; +} + +// @public +export interface ImageTemplateLastRunStatus { + endTime?: Date; + message?: string; + runState?: RunState; + runSubState?: RunSubState; + startTime?: Date; +} + +// @public +export interface ImageTemplateListResult { + nextLink?: string; + value?: ImageTemplate[]; +} + +// @public +export type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & { + type: "ManagedImage"; + imageId: string; + location: string; +}; + +// @public +export type ImageTemplateManagedImageSource = ImageTemplateSource & { + type: "ManagedImage"; + imageId: string; +}; + +// @public +export type ImageTemplatePlatformImageSource = ImageTemplateSource & { + type: "PlatformImage"; + publisher?: string; + offer?: string; + sku?: string; + version?: string; + readonly exactVersion?: string; + planInfo?: PlatformImagePurchasePlan; +}; + +// @public +export type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & { + type: "PowerShell"; + scriptUri?: string; + sha256Checksum?: string; + inline?: string[]; + runElevated?: boolean; + runAsSystem?: boolean; + validExitCodes?: number[]; +}; + +// @public +export type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & { + type: "WindowsRestart"; + restartCommand?: string; + restartCheckCommand?: string; + restartTimeout?: string; +}; + +// @public +export type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & { + type: "SharedImage"; + galleryImageId: string; + replicationRegions: string[]; + excludeFromLatest?: boolean; + storageAccountType?: SharedImageStorageAccountType; +}; + +// @public +export type ImageTemplateSharedImageVersionSource = ImageTemplateSource & { + type: "SharedImageVersion"; + imageVersionId: string; +}; + +// @public +export type ImageTemplateShellCustomizer = ImageTemplateCustomizer & { + type: "Shell"; + scriptUri?: string; + sha256Checksum?: string; + inline?: string[]; +}; + +// @public +export interface ImageTemplateSource { + type: "PlatformImage" | "ManagedImage" | "SharedImageVersion"; +} + +// @public (undocumented) +export type ImageTemplateSourceUnion = ImageTemplateSource | ImageTemplatePlatformImageSource | ImageTemplateManagedImageSource | ImageTemplateSharedImageVersionSource; + +// @public +export interface ImageTemplateUpdateParameters { + identity?: ImageTemplateIdentity; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type ImageTemplateVhdDistributor = ImageTemplateDistributor & { + type: "VHD"; +}; + +// @public +export interface ImageTemplateVmProfile { + osDiskSizeGB?: number; + userAssignedIdentities?: string[]; + vmSize?: string; + vnetConfig?: VirtualNetworkConfig; +} + +// @public +export type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & { + type: "WindowsUpdate"; + searchCriteria?: string; + filters?: string[]; + updateLimit?: number; +}; + +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + +// @public +export enum KnownProvisioningErrorCode { + // (undocumented) + BadCustomizerType = "BadCustomizerType", + // (undocumented) + BadDistributeType = "BadDistributeType", + // (undocumented) + BadManagedImageSource = "BadManagedImageSource", + // (undocumented) + BadPIRSource = "BadPIRSource", + // (undocumented) + BadSharedImageDistribute = "BadSharedImageDistribute", + // (undocumented) + BadSharedImageVersionSource = "BadSharedImageVersionSource", + // (undocumented) + BadSourceType = "BadSourceType", + // (undocumented) + NoCustomizerScript = "NoCustomizerScript", + // (undocumented) + Other = "Other", + // (undocumented) + ServerError = "ServerError", + // (undocumented) + UnsupportedCustomizerType = "UnsupportedCustomizerType" +} + +// @public +export enum KnownSharedImageStorageAccountType { + // (undocumented) + StandardLRS = "Standard_LRS", + // (undocumented) + StandardZRS = "Standard_ZRS" +} + +// @public +export interface Operation { + display?: OperationDisplay; + isDataAction?: boolean; + name?: string; + origin?: string; + properties?: Record; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface OperationListResult { + nextLink?: string; + value?: Operation[]; +} + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListNextResponse = OperationListResult; + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + +// @public +export interface PlatformImagePurchasePlan { + planName: string; + planProduct: string; + planPublisher: string; +} + +// @public +export interface ProvisioningError { + message?: string; + provisioningErrorCode?: ProvisioningErrorCode; +} + +// @public +export type ProvisioningErrorCode = string; + +// @public +export type ProvisioningState = "Creating" | "Updating" | "Succeeded" | "Failed" | "Deleting"; + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export type ResourceIdentityType = "UserAssigned" | "None"; + +// @public +export type RunOutput = SubResource & { + artifactId?: string; + artifactUri?: string; + readonly provisioningState?: ProvisioningState; +}; + +// @public +export interface RunOutputCollection { + nextLink?: string; + value?: RunOutput[]; +} + +// @public +export type RunState = "Running" | "Canceling" | "Succeeded" | "PartiallySucceeded" | "Failed" | "Canceled"; + +// @public +export type RunSubState = "Queued" | "Building" | "Customizing" | "Distributing"; + +// @public +export type SharedImageStorageAccountType = string; + +// @public +export interface SubResource { + readonly id?: string; + name: string; + readonly type?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export type TrackedResource = Resource & { + tags?: { + [propertyName: string]: string; + }; + location: string; +}; + +// @public +export interface VirtualMachineImageTemplates { + beginCancel(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise, void>>; + beginCancelAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise, VirtualMachineImageTemplatesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise; + beginRun(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise, void>>; + beginRunAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise; + beginUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise, VirtualMachineImageTemplatesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise; + get(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesGetOptionalParams): Promise; + getRunOutput(resourceGroupName: string, imageTemplateName: string, runOutputName: string, options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams): Promise; + list(options?: VirtualMachineImageTemplatesListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listRunOutputs(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface VirtualMachineImageTemplatesCancelOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate; + +// @public +export interface VirtualMachineImageTemplatesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface VirtualMachineImageTemplatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesGetResponse = ImageTemplate; + +// @public +export interface VirtualMachineImageTemplatesGetRunOutputOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput; + +// @public +export interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult; + +// @public +export interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult; + +// @public +export interface VirtualMachineImageTemplatesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult; + +// @public +export interface VirtualMachineImageTemplatesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult; + +// @public +export interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection; + +// @public +export interface VirtualMachineImageTemplatesListRunOutputsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection; + +// @public +export interface VirtualMachineImageTemplatesRunOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface VirtualMachineImageTemplatesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate; + +// @public +export interface VirtualNetworkConfig { + proxyVmSize?: string; + subnetId?: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/imagebuilder/arm-imagebuilder/rollup.config.js b/sdk/imagebuilder/arm-imagebuilder/rollup.config.js new file mode 100644 index 000000000000..9be1955eb7f1 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/rollup.config.js @@ -0,0 +1,188 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + +// #region Warning Handler + +/** + * A function that can determine whether a rollupwarning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEvalWarnings(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependencyWarnings(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false +}; + +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve(), cjs()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/imagebuilder/arm-imagebuilder/src/imageBuilderClient.ts b/sdk/imagebuilder/arm-imagebuilder/src/imageBuilderClient.ts new file mode 100644 index 000000000000..ce624ee305f5 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/imageBuilderClient.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { VirtualMachineImageTemplatesImpl, OperationsImpl } from "./operations"; +import { + VirtualMachineImageTemplates, + Operations +} from "./operationsInterfaces"; +import { ImageBuilderClientOptionalParams } from "./models"; + +export class ImageBuilderClient extends coreClient.ServiceClient { + $host: string; + subscriptionId: string; + apiVersion: string; + + /** + * Initializes a new instance of the ImageBuilderClient class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. + * The subscription Id forms part of the URI for every service call. + * @param options The parameter options + */ + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: ImageBuilderClientOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: ImageBuilderClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-imagebuilder/1.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-10-01"; + this.virtualMachineImageTemplates = new VirtualMachineImageTemplatesImpl( + this + ); + this.operations = new OperationsImpl(this); + } + + virtualMachineImageTemplates: VirtualMachineImageTemplates; + operations: Operations; +} diff --git a/sdk/imagebuilder/arm-imagebuilder/src/index.ts b/sdk/imagebuilder/arm-imagebuilder/src/index.ts new file mode 100644 index 000000000000..f9da195219ef --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/index.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +/// +export * from "./models"; +export { ImageBuilderClient } from "./imageBuilderClient"; +export * from "./operationsInterfaces"; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/lroImpl.ts b/sdk/imagebuilder/arm-imagebuilder/src/lroImpl.ts new file mode 100644 index 000000000000..518d5f053b4e --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/lroImpl.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; + +export class LroImpl implements LongRunningOperation { + constructor( + private sendOperationFn: (args: any, spec: any) => Promise>, + private args: Record, + private spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record, + public requestPath: string = spec.path!, + public requestMethod: string = spec.httpMethod + ) {} + public async sendInitialRequest(): Promise> { + return this.sendOperationFn(this.args, this.spec); + } + public async sendPollRequest(path: string): Promise> { + const { requestBody, ...restSpec } = this.spec; + return this.sendOperationFn(this.args, { + ...restSpec, + path, + httpMethod: "GET" + }); + } +} diff --git a/sdk/imagebuilder/arm-imagebuilder/src/models/index.ts b/sdk/imagebuilder/arm-imagebuilder/src/models/index.ts new file mode 100644 index 000000000000..6a1093d31bd2 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/models/index.ts @@ -0,0 +1,668 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; + +export type ImageTemplateSourceUnion = + | ImageTemplateSource + | ImageTemplatePlatformImageSource + | ImageTemplateManagedImageSource + | ImageTemplateSharedImageVersionSource; +export type ImageTemplateCustomizerUnion = + | ImageTemplateCustomizer + | ImageTemplateShellCustomizer + | ImageTemplateRestartCustomizer + | ImageTemplateWindowsUpdateCustomizer + | ImageTemplatePowerShellCustomizer + | ImageTemplateFileCustomizer; +export type ImageTemplateDistributorUnion = + | ImageTemplateDistributor + | ImageTemplateManagedImageDistributor + | ImageTemplateSharedImageDistributor + | ImageTemplateVhdDistributor; + +/** The result of List image templates operation */ +export interface ImageTemplateListResult { + /** An array of image templates */ + value?: ImageTemplate[]; + /** The continuation token. */ + nextLink?: string; +} + +/** Describes a virtual machine image source for building, customizing and distributing */ +export interface ImageTemplateSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PlatformImage" | "ManagedImage" | "SharedImageVersion"; +} + +/** Describes a unit of image customization */ +export interface ImageTemplateCustomizer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Shell" | "WindowsRestart" | "WindowsUpdate" | "PowerShell" | "File"; + /** Friendly Name to provide context on what this customization step does */ + name?: string; +} + +/** Generic distribution object */ +export interface ImageTemplateDistributor { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ManagedImage" | "SharedImage" | "VHD"; + /** The name to be used for the associated RunOutput. */ + runOutputName: string; + /** Tags that will be applied to the artifact once it has been created/updated by the distributor. */ + artifactTags?: { [propertyName: string]: string }; +} + +/** Describes the error happened when create or update an image template */ +export interface ProvisioningError { + /** Error code of the provisioning failure */ + provisioningErrorCode?: ProvisioningErrorCode; + /** Verbose error message about the provisioning failure */ + message?: string; +} + +/** Describes the latest status of running an image template */ +export interface ImageTemplateLastRunStatus { + /** Start time of the last run (UTC) */ + startTime?: Date; + /** End time of the last run (UTC) */ + endTime?: Date; + /** State of the last run */ + runState?: RunState; + /** Sub-state of the last run */ + runSubState?: RunSubState; + /** Verbose information about the last run state */ + message?: string; +} + +/** Describes the virtual machine used to build, customize and capture images */ +export interface ImageTemplateVmProfile { + /** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D2ds_v4). */ + vmSize?: string; + /** Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. */ + osDiskSizeGB?: number; + /** Optional array of resource IDs of user assigned managed identities to be configured on the build VM. This may include the identity of the image template. */ + userAssignedIdentities?: string[]; + /** Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used. */ + vnetConfig?: VirtualNetworkConfig; +} + +/** Virtual Network configuration. */ +export interface VirtualNetworkConfig { + /** Resource id of a pre-existing subnet. */ + subnetId?: string; + /** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images). */ + proxyVmSize?: string; +} + +/** Identity for the image template. */ +export interface ImageTemplateIdentity { + /** The type of identity used for the image template. The type 'None' will remove any identities from the image template. */ + type?: ResourceIdentityType; + /** The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties; + }; +} + +export interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** An error response from the Azure VM Image Builder service. */ +export interface CloudError { + /** Details about the error. */ + error?: CloudErrorBody; +} + +/** An error response from the Azure VM Image Builder service. */ +export interface CloudErrorBody { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A message describing the error, intended to be suitable for display in a user interface. */ + message?: string; + /** The target of the particular error. For example, the name of the property in error. */ + target?: string; + /** A list of additional details about the error. */ + details?: CloudErrorBody[]; +} + +/** Parameters for updating an image template. */ +export interface ImageTemplateUpdateParameters { + /** The identity of the image template, if configured. */ + identity?: ImageTemplateIdentity; + /** The user-specified tags associated with the image template. */ + tags?: { [propertyName: string]: string }; +} + +/** The result of List run outputs operation */ +export interface RunOutputCollection { + /** An array of run outputs */ + value?: RunOutput[]; + /** The continuation token. */ + nextLink?: string; +} + +/** The Sub Resource model definition. */ +export interface SubResource { + /** + * Resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** Resource name */ + name: string; + /** + * Resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results. */ +export interface OperationListResult { + /** The list of operations supported by the resource provider. */ + value?: Operation[]; + /** The URL to get the next set of operation list results if there are any. */ + nextLink?: string; +} + +/** A REST API operation */ +export interface Operation { + /** This is of the format {provider}/{resource}/{operation} */ + name?: string; + /** The object that describes the operation. */ + display?: OperationDisplay; + /** The intended executor of the operation. */ + origin?: string; + /** Any object */ + properties?: Record; + /** The flag that indicates whether the operation applies to data plane. */ + isDataAction?: boolean; +} + +/** The object that describes the operation. */ +export interface OperationDisplay { + /** Friendly name of the resource provider. */ + provider?: string; + /** For example: read, write, delete, or listKeys/action */ + operation?: string; + /** The resource type on which the operation is performed. */ + resource?: string; + /** The friendly name of the operation */ + description?: string; +} + +/** Purchase plan configuration for platform image. */ +export interface PlatformImagePurchasePlan { + /** Name of the purchase plan. */ + planName: string; + /** Product of the purchase plan. */ + planProduct: string; + /** Publisher of the purchase plan. */ + planPublisher: string; +} + +/** Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */ +export type ImageTemplatePlatformImageSource = ImageTemplateSource & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PlatformImage"; + /** Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */ + publisher?: string; + /** Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */ + offer?: string; + /** Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */ + sku?: string; + /** Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. */ + version?: string; + /** + * Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly exactVersion?: string; + /** Optional configuration of purchase plan for platform image. */ + planInfo?: PlatformImagePurchasePlan; +}; + +/** Describes an image source that is a managed image in customer subscription. */ +export type ImageTemplateManagedImageSource = ImageTemplateSource & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ManagedImage"; + /** ARM resource id of the managed image in customer subscription */ + imageId: string; +}; + +/** Describes an image source that is an image version in a shared image gallery. */ +export type ImageTemplateSharedImageVersionSource = ImageTemplateSource & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SharedImageVersion"; + /** ARM resource id of the image version in the shared image gallery */ + imageVersionId: string; +}; + +/** Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */ +export type ImageTemplateShellCustomizer = ImageTemplateCustomizer & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Shell"; + /** URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */ + scriptUri?: string; + /** SHA256 checksum of the shell script provided in the scriptUri field */ + sha256Checksum?: string; + /** Array of shell commands to execute */ + inline?: string[]; +}; + +/** Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner */ +export type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WindowsRestart"; + /** Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"'] */ + restartCommand?: string; + /** Command to check if restart succeeded [Default: ''] */ + restartCheckCommand?: string; + /** Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] */ + restartTimeout?: string; +}; + +/** Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update) */ +export type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "WindowsUpdate"; + /** Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field. */ + searchCriteria?: string; + /** Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field. */ + filters?: string[]; + /** Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) */ + updateLimit?: number; +}; + +/** Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */ +export type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PowerShell"; + /** URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */ + scriptUri?: string; + /** SHA256 checksum of the power shell script provided in the scriptUri field above */ + sha256Checksum?: string; + /** Array of PowerShell commands to execute */ + inline?: string[]; + /** If specified, the PowerShell script will be run with elevated privileges */ + runElevated?: boolean; + /** If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true. */ + runAsSystem?: boolean; + /** Valid exit codes for the PowerShell script. [Default: 0] */ + validExitCodes?: number[]; +}; + +/** Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner */ +export type ImageTemplateFileCustomizer = ImageTemplateCustomizer & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "File"; + /** The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc */ + sourceUri?: string; + /** SHA256 checksum of the file provided in the sourceUri field above */ + sha256Checksum?: string; + /** The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM */ + destination?: string; +}; + +/** Distribute as a Managed Disk Image. */ +export type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ManagedImage"; + /** Resource Id of the Managed Disk Image */ + imageId: string; + /** Azure location for the image, should match if image already exists */ + location: string; +}; + +/** Distribute via Shared Image Gallery. */ +export type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SharedImage"; + /** Resource Id of the Shared Image Gallery image */ + galleryImageId: string; + /** A list of regions that the image will be replicated to */ + replicationRegions: string[]; + /** Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). */ + excludeFromLatest?: boolean; + /** Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). */ + storageAccountType?: SharedImageStorageAccountType; +}; + +/** Distribute via VHD in a storage account. */ +export type ImageTemplateVhdDistributor = ImageTemplateDistributor & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "VHD"; +}; + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export type TrackedResource = Resource & { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +}; + +/** Represents an output that was created by running an image template. */ +export type RunOutput = SubResource & { + /** The resource id of the artifact. */ + artifactId?: string; + /** The location URI of the artifact. */ + artifactUri?: string; + /** + * Provisioning state of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +}; + +/** Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider */ +export type ImageTemplate = TrackedResource & { + /** The identity of the image template, if configured. */ + identity: ImageTemplateIdentity; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Specifies the properties used to describe the source image. */ + source?: ImageTemplateSourceUnion; + /** Specifies the properties used to describe the customization steps of the image, like Image source etc */ + customize?: ImageTemplateCustomizerUnion[]; + /** The distribution targets where the image output needs to go to. */ + distribute?: ImageTemplateDistributorUnion[]; + /** + * Provisioning state of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Provisioning error, if any + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningError?: ProvisioningError; + /** + * State of 'run' that is currently executing or was last executed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRunStatus?: ImageTemplateLastRunStatus; + /** Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). */ + buildTimeoutInMinutes?: number; + /** Describes how virtual machine is set up to build images */ + vmProfile?: ImageTemplateVmProfile; +}; + +/** Known values of {@link ProvisioningErrorCode} that the service accepts. */ +export enum KnownProvisioningErrorCode { + BadSourceType = "BadSourceType", + BadPIRSource = "BadPIRSource", + BadManagedImageSource = "BadManagedImageSource", + BadSharedImageVersionSource = "BadSharedImageVersionSource", + BadCustomizerType = "BadCustomizerType", + UnsupportedCustomizerType = "UnsupportedCustomizerType", + NoCustomizerScript = "NoCustomizerScript", + BadDistributeType = "BadDistributeType", + BadSharedImageDistribute = "BadSharedImageDistribute", + ServerError = "ServerError", + Other = "Other" +} + +/** + * Defines values for ProvisioningErrorCode. \ + * {@link KnownProvisioningErrorCode} can be used interchangeably with ProvisioningErrorCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BadSourceType** \ + * **BadPIRSource** \ + * **BadManagedImageSource** \ + * **BadSharedImageVersionSource** \ + * **BadCustomizerType** \ + * **UnsupportedCustomizerType** \ + * **NoCustomizerScript** \ + * **BadDistributeType** \ + * **BadSharedImageDistribute** \ + * **ServerError** \ + * **Other** + */ +export type ProvisioningErrorCode = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link SharedImageStorageAccountType} that the service accepts. */ +export enum KnownSharedImageStorageAccountType { + StandardLRS = "Standard_LRS", + StandardZRS = "Standard_ZRS" +} + +/** + * Defines values for SharedImageStorageAccountType. \ + * {@link KnownSharedImageStorageAccountType} can be used interchangeably with SharedImageStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Standard_ZRS** + */ +export type SharedImageStorageAccountType = string; +/** Defines values for ProvisioningState. */ +export type ProvisioningState = + | "Creating" + | "Updating" + | "Succeeded" + | "Failed" + | "Deleting"; +/** Defines values for RunState. */ +export type RunState = + | "Running" + | "Canceling" + | "Succeeded" + | "PartiallySucceeded" + | "Failed" + | "Canceled"; +/** Defines values for RunSubState. */ +export type RunSubState = + | "Queued" + | "Building" + | "Customizing" + | "Distributing"; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = "UserAssigned" | "None"; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualMachineImageTemplatesGetResponse = ImageTemplate; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesRunOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesCancelOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListRunOutputsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRunOutputs operation. */ +export type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesGetRunOutputOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getRunOutput operation. */ +export type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult; + +/** Optional parameters. */ +export interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRunOutputsNext operation. */ +export type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface ImageBuilderClientOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/imagebuilder/arm-imagebuilder/src/models/mappers.ts b/sdk/imagebuilder/arm-imagebuilder/src/models/mappers.ts new file mode 100644 index 000000000000..f4e9534c4ea1 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/models/mappers.ts @@ -0,0 +1,1214 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; + +export const ImageTemplateListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageTemplate" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateSource", + uberParent: "ImageTemplateSource", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateCustomizer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateDistributor: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateDistributor", + uberParent: "ImageTemplateDistributor", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + runOutputName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-_.]{1,64}$") + }, + serializedName: "runOutputName", + required: true, + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ProvisioningError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisioningError", + modelProperties: { + provisioningErrorCode: { + serializedName: "provisioningErrorCode", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateLastRunStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateLastRunStatus", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + runState: { + serializedName: "runState", + type: { + name: "Enum", + allowedValues: [ + "Running", + "Canceling", + "Succeeded", + "PartiallySucceeded", + "Failed", + "Canceled" + ] + } + }, + runSubState: { + serializedName: "runSubState", + type: { + name: "Enum", + allowedValues: ["Queued", "Building", "Customizing", "Distributing"] + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateVmProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateVmProfile", + modelProperties: { + vmSize: { + defaultValue: "", + serializedName: "vmSize", + type: { + name: "String" + } + }, + osDiskSizeGB: { + defaultValue: 0, + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "osDiskSizeGB", + type: { + name: "Number" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vnetConfig: { + serializedName: "vnetConfig", + type: { + name: "Composite", + className: "VirtualNetworkConfig" + } + } + } + } +}; + +export const VirtualNetworkConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkConfig", + modelProperties: { + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + proxyVmSize: { + defaultValue: "", + serializedName: "proxyVmSize", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["UserAssigned", "None"] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: + "ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties" + } + } + } + } + } + } +}; + +export const ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CloudError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CloudErrorBody" + } + } + } + } +}; + +export const CloudErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudErrorBody" + } + } + } + } + } + } +}; + +export const ImageTemplateUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplateUpdateParameters", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ImageTemplateIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const RunOutputCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunOutputCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunOutput" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SubResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SubResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const PlatformImagePurchasePlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PlatformImagePurchasePlan", + modelProperties: { + planName: { + serializedName: "planName", + required: true, + type: { + name: "String" + } + }, + planProduct: { + serializedName: "planProduct", + required: true, + type: { + name: "String" + } + }, + planPublisher: { + serializedName: "planPublisher", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplatePlatformImageSource: coreClient.CompositeMapper = { + serializedName: "PlatformImage", + type: { + name: "Composite", + className: "ImageTemplatePlatformImageSource", + uberParent: "ImageTemplateSource", + polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateSource.type.modelProperties, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + exactVersion: { + serializedName: "exactVersion", + readOnly: true, + type: { + name: "String" + } + }, + planInfo: { + serializedName: "planInfo", + type: { + name: "Composite", + className: "PlatformImagePurchasePlan" + } + } + } + } +}; + +export const ImageTemplateManagedImageSource: coreClient.CompositeMapper = { + serializedName: "ManagedImage", + type: { + name: "Composite", + className: "ImageTemplateManagedImageSource", + uberParent: "ImageTemplateSource", + polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateSource.type.modelProperties, + imageId: { + serializedName: "imageId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateSharedImageVersionSource: coreClient.CompositeMapper = { + serializedName: "SharedImageVersion", + type: { + name: "Composite", + className: "ImageTemplateSharedImageVersionSource", + uberParent: "ImageTemplateSource", + polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateSource.type.modelProperties, + imageVersionId: { + serializedName: "imageVersionId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateShellCustomizer: coreClient.CompositeMapper = { + serializedName: "Shell", + type: { + name: "Composite", + className: "ImageTemplateShellCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: + ImageTemplateCustomizer.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateCustomizer.type.modelProperties, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String" + } + }, + sha256Checksum: { + defaultValue: "", + serializedName: "sha256Checksum", + type: { + name: "String" + } + }, + inline: { + serializedName: "inline", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ImageTemplateRestartCustomizer: coreClient.CompositeMapper = { + serializedName: "WindowsRestart", + type: { + name: "Composite", + className: "ImageTemplateRestartCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: + ImageTemplateCustomizer.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateCustomizer.type.modelProperties, + restartCommand: { + serializedName: "restartCommand", + type: { + name: "String" + } + }, + restartCheckCommand: { + serializedName: "restartCheckCommand", + type: { + name: "String" + } + }, + restartTimeout: { + serializedName: "restartTimeout", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateWindowsUpdateCustomizer: coreClient.CompositeMapper = { + serializedName: "WindowsUpdate", + type: { + name: "Composite", + className: "ImageTemplateWindowsUpdateCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: + ImageTemplateCustomizer.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateCustomizer.type.modelProperties, + searchCriteria: { + serializedName: "searchCriteria", + type: { + name: "String" + } + }, + filters: { + serializedName: "filters", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + updateLimit: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "updateLimit", + type: { + name: "Number" + } + } + } + } +}; + +export const ImageTemplatePowerShellCustomizer: coreClient.CompositeMapper = { + serializedName: "PowerShell", + type: { + name: "Composite", + className: "ImageTemplatePowerShellCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: + ImageTemplateCustomizer.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateCustomizer.type.modelProperties, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String" + } + }, + sha256Checksum: { + defaultValue: "", + serializedName: "sha256Checksum", + type: { + name: "String" + } + }, + inline: { + serializedName: "inline", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + runElevated: { + defaultValue: false, + serializedName: "runElevated", + type: { + name: "Boolean" + } + }, + runAsSystem: { + defaultValue: false, + serializedName: "runAsSystem", + type: { + name: "Boolean" + } + }, + validExitCodes: { + serializedName: "validExitCodes", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const ImageTemplateFileCustomizer: coreClient.CompositeMapper = { + serializedName: "File", + type: { + name: "Composite", + className: "ImageTemplateFileCustomizer", + uberParent: "ImageTemplateCustomizer", + polymorphicDiscriminator: + ImageTemplateCustomizer.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateCustomizer.type.modelProperties, + sourceUri: { + serializedName: "sourceUri", + type: { + name: "String" + } + }, + sha256Checksum: { + defaultValue: "", + serializedName: "sha256Checksum", + type: { + name: "String" + } + }, + destination: { + serializedName: "destination", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateManagedImageDistributor: coreClient.CompositeMapper = { + serializedName: "ManagedImage", + type: { + name: "Composite", + className: "ImageTemplateManagedImageDistributor", + uberParent: "ImageTemplateDistributor", + polymorphicDiscriminator: + ImageTemplateDistributor.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateDistributor.type.modelProperties, + imageId: { + serializedName: "imageId", + required: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateSharedImageDistributor: coreClient.CompositeMapper = { + serializedName: "SharedImage", + type: { + name: "Composite", + className: "ImageTemplateSharedImageDistributor", + uberParent: "ImageTemplateDistributor", + polymorphicDiscriminator: + ImageTemplateDistributor.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateDistributor.type.modelProperties, + galleryImageId: { + serializedName: "galleryImageId", + required: true, + type: { + name: "String" + } + }, + replicationRegions: { + serializedName: "replicationRegions", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + excludeFromLatest: { + defaultValue: false, + serializedName: "excludeFromLatest", + type: { + name: "Boolean" + } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } + } + } + } +}; + +export const ImageTemplateVhdDistributor: coreClient.CompositeMapper = { + serializedName: "VHD", + type: { + name: "Composite", + className: "ImageTemplateVhdDistributor", + uberParent: "ImageTemplateDistributor", + polymorphicDiscriminator: + ImageTemplateDistributor.type.polymorphicDiscriminator, + modelProperties: { + ...ImageTemplateDistributor.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const RunOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunOutput", + modelProperties: { + ...SubResource.type.modelProperties, + artifactId: { + serializedName: "properties.artifactId", + type: { + name: "String" + } + }, + artifactUri: { + serializedName: "properties.artifactUri", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Creating", + "Updating", + "Succeeded", + "Failed", + "Deleting" + ] + } + } + } + } +}; + +export const ImageTemplate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageTemplate", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ImageTemplateIdentity" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ImageTemplateSource" + } + }, + customize: { + serializedName: "properties.customize", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageTemplateCustomizer" + } + } + } + }, + distribute: { + serializedName: "properties.distribute", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageTemplateDistributor" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Creating", + "Updating", + "Succeeded", + "Failed", + "Deleting" + ] + } + }, + provisioningError: { + serializedName: "properties.provisioningError", + type: { + name: "Composite", + className: "ProvisioningError" + } + }, + lastRunStatus: { + serializedName: "properties.lastRunStatus", + type: { + name: "Composite", + className: "ImageTemplateLastRunStatus" + } + }, + buildTimeoutInMinutes: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 960, + InclusiveMinimum: 0 + }, + serializedName: "properties.buildTimeoutInMinutes", + type: { + name: "Number" + } + }, + vmProfile: { + serializedName: "properties.vmProfile", + type: { + name: "Composite", + className: "ImageTemplateVmProfile" + } + } + } + } +}; + +export let discriminators = { + ImageTemplateSource: ImageTemplateSource, + ImageTemplateCustomizer: ImageTemplateCustomizer, + ImageTemplateDistributor: ImageTemplateDistributor, + "ImageTemplateSource.PlatformImage": ImageTemplatePlatformImageSource, + "ImageTemplateSource.ManagedImage": ImageTemplateManagedImageSource, + "ImageTemplateSource.SharedImageVersion": ImageTemplateSharedImageVersionSource, + "ImageTemplateCustomizer.Shell": ImageTemplateShellCustomizer, + "ImageTemplateCustomizer.WindowsRestart": ImageTemplateRestartCustomizer, + "ImageTemplateCustomizer.WindowsUpdate": ImageTemplateWindowsUpdateCustomizer, + "ImageTemplateCustomizer.PowerShell": ImageTemplatePowerShellCustomizer, + "ImageTemplateCustomizer.File": ImageTemplateFileCustomizer, + "ImageTemplateDistributor.ManagedImage": ImageTemplateManagedImageDistributor, + "ImageTemplateDistributor.SharedImage": ImageTemplateSharedImageDistributor, + "ImageTemplateDistributor.VHD": ImageTemplateVhdDistributor +}; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/models/parameters.ts b/sdk/imagebuilder/arm-imagebuilder/src/models/parameters.ts new file mode 100644 index 000000000000..e700cb32404f --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/models/parameters.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + ImageTemplate as ImageTemplateMapper, + ImageTemplateUpdateParameters as ImageTemplateUpdateParametersMapper +} from "../models/mappers"; + +export const accept: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; + +export const $host: OperationURLParameter = { + parameterPath: "$host", + mapper: { + serializedName: "$host", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + type: { + name: "String" + } + } +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-10-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + serializedName: "resourceGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ImageTemplateMapper +}; + +export const imageTemplateName: OperationURLParameter = { + parameterPath: "imageTemplateName", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-_.]{1,64}$") + }, + serializedName: "imageTemplateName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ImageTemplateUpdateParametersMapper +}; + +export const runOutputName: OperationURLParameter = { + parameterPath: "runOutputName", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-_.]{1,64}$") + }, + serializedName: "runOutputName", + required: true, + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operations/index.ts b/sdk/imagebuilder/arm-imagebuilder/src/operations/index.ts new file mode 100644 index 000000000000..b5c1987cf3fc --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operations/index.ts @@ -0,0 +1,10 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./virtualMachineImageTemplates"; +export * from "./operations"; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operations/operations.ts b/sdk/imagebuilder/arm-imagebuilder/src/operations/operations.ts new file mode 100644 index 000000000000..b2a2d214e9c8 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operations/operations.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ImageBuilderClient } from "../imageBuilderClient"; +import { + Operation, + OperationsListNextOptionalParams, + OperationsListOptionalParams, + OperationsListResponse, + OperationsListNextResponse +} from "../models"; + +/// +/** Class containing Operations operations. */ +export class OperationsImpl implements Operations { + private readonly client: ImageBuilderClient; + + /** + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client + */ + constructor(client: ImageBuilderClient) { + this.client = client; + } + + /** + * Lists available operations for the Microsoft.VirtualMachineImages provider + * @param options The options parameters. + */ + public list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: OperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: OperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Lists available operations for the Microsoft.VirtualMachineImages provider + * @param options The options parameters. + */ + private _list( + options?: OperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: OperationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.VirtualMachineImages/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operations/virtualMachineImageTemplates.ts b/sdk/imagebuilder/arm-imagebuilder/src/operations/virtualMachineImageTemplates.ts new file mode 100644 index 000000000000..97c5256da84d --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operations/virtualMachineImageTemplates.ts @@ -0,0 +1,1085 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { VirtualMachineImageTemplates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ImageBuilderClient } from "../imageBuilderClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ImageTemplate, + VirtualMachineImageTemplatesListNextOptionalParams, + VirtualMachineImageTemplatesListOptionalParams, + VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams, + VirtualMachineImageTemplatesListByResourceGroupOptionalParams, + RunOutput, + VirtualMachineImageTemplatesListRunOutputsNextOptionalParams, + VirtualMachineImageTemplatesListRunOutputsOptionalParams, + VirtualMachineImageTemplatesListResponse, + VirtualMachineImageTemplatesListByResourceGroupResponse, + VirtualMachineImageTemplatesCreateOrUpdateOptionalParams, + VirtualMachineImageTemplatesCreateOrUpdateResponse, + ImageTemplateUpdateParameters, + VirtualMachineImageTemplatesUpdateOptionalParams, + VirtualMachineImageTemplatesUpdateResponse, + VirtualMachineImageTemplatesGetOptionalParams, + VirtualMachineImageTemplatesGetResponse, + VirtualMachineImageTemplatesDeleteOptionalParams, + VirtualMachineImageTemplatesRunOptionalParams, + VirtualMachineImageTemplatesCancelOptionalParams, + VirtualMachineImageTemplatesListRunOutputsResponse, + VirtualMachineImageTemplatesGetRunOutputOptionalParams, + VirtualMachineImageTemplatesGetRunOutputResponse, + VirtualMachineImageTemplatesListNextResponse, + VirtualMachineImageTemplatesListByResourceGroupNextResponse, + VirtualMachineImageTemplatesListRunOutputsNextResponse +} from "../models"; + +/// +/** Class containing VirtualMachineImageTemplates operations. */ +export class VirtualMachineImageTemplatesImpl + implements VirtualMachineImageTemplates { + private readonly client: ImageBuilderClient; + + /** + * Initialize a new instance of the class VirtualMachineImageTemplates class. + * @param client Reference to the service client + */ + constructor(client: ImageBuilderClient) { + this.client = client; + } + + /** + * Gets information about the VM image templates associated with the subscription. + * @param options The options parameters. + */ + public list( + options?: VirtualMachineImageTemplatesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: VirtualMachineImageTemplatesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: VirtualMachineImageTemplatesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Gets information about the VM image templates associated with the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * List all run outputs for the specified Image Template resource + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + public listRunOutputs( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listRunOutputsPagingAll( + resourceGroupName, + imageTemplateName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listRunOutputsPagingPage( + resourceGroupName, + imageTemplateName, + options + ); + } + }; + } + + private async *listRunOutputsPagingPage( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams + ): AsyncIterableIterator { + let result = await this._listRunOutputs( + resourceGroupName, + imageTemplateName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listRunOutputsNext( + resourceGroupName, + imageTemplateName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listRunOutputsPagingAll( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listRunOutputsPagingPage( + resourceGroupName, + imageTemplateName, + options + )) { + yield* page; + } + } + + /** + * Gets information about the VM image templates associated with the subscription. + * @param options The options parameters. + */ + private _list( + options?: VirtualMachineImageTemplatesListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * Gets information about the VM image templates associated with the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Create or update a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Parameters supplied to the CreateImageTemplate operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplate, + options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualMachineImageTemplatesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, imageTemplateName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Parameters supplied to the CreateImageTemplate operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplate, + options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + imageTemplateName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update the tags for this Virtual Machine Image Template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Additional parameters for Image Template update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplateUpdateParameters, + options?: VirtualMachineImageTemplatesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualMachineImageTemplatesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, imageTemplateName, parameters, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Update the tags for this Virtual Machine Image Template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Additional parameters for Image Template update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplateUpdateParameters, + options?: VirtualMachineImageTemplatesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + imageTemplateName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get information about a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + get( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, imageTemplateName, options }, + getOperationSpec + ); + } + + /** + * Delete a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, imageTemplateName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + imageTemplateName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create artifacts from a existing image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginRun( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesRunOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, imageTemplateName, options }, + runOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create artifacts from a existing image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginRunAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesRunOptionalParams + ): Promise { + const poller = await this.beginRun( + resourceGroupName, + imageTemplateName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Cancel the long running image build based on the image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginCancel( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesCancelOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, imageTemplateName, options }, + cancelOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Cancel the long running image build based on the image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + async beginCancelAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesCancelOptionalParams + ): Promise { + const poller = await this.beginCancel( + resourceGroupName, + imageTemplateName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List all run outputs for the specified Image Template resource + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + private _listRunOutputs( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, imageTemplateName, options }, + listRunOutputsOperationSpec + ); + } + + /** + * Get the specified run output for the specified image template resource + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param runOutputName The name of the run output + * @param options The options parameters. + */ + getRunOutput( + resourceGroupName: string, + imageTemplateName: string, + runOutputName: string, + options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, imageTemplateName, runOutputName, options }, + getRunOutputOperationSpec + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: VirtualMachineImageTemplatesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListRunOutputsNext + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param nextLink The nextLink from the previous successful call to the ListRunOutputs method. + * @param options The options parameters. + */ + private _listRunOutputsNext( + resourceGroupName: string, + imageTemplateName: string, + nextLink: string, + options?: VirtualMachineImageTemplatesListRunOutputsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, imageTemplateName, nextLink, options }, + listRunOutputsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplateListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplateListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplate + }, + 201: { + bodyMapper: Mappers.ImageTemplate + }, + 202: { + bodyMapper: Mappers.ImageTemplate + }, + 204: { + bodyMapper: Mappers.ImageTemplate + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplate + }, + 201: { + bodyMapper: Mappers.ImageTemplate + }, + 202: { + bodyMapper: Mappers.ImageTemplate + }, + 204: { + bodyMapper: Mappers.ImageTemplate + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplate + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const runOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listRunOutputsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RunOutputCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getRunOutputOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RunOutput + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName, + Parameters.runOutputName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplateListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImageTemplateListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listRunOutputsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RunOutputCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.imageTemplateName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/index.ts b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..b5c1987cf3fc --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/index.ts @@ -0,0 +1,10 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./virtualMachineImageTemplates"; +export * from "./operations"; diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/operations.ts b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/operations.ts new file mode 100644 index 000000000000..399fe28be23a --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/operations.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, OperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a Operations. */ +export interface Operations { + /** + * Lists available operations for the Microsoft.VirtualMachineImages provider + * @param options The options parameters. + */ + list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/virtualMachineImageTemplates.ts b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/virtualMachineImageTemplates.ts new file mode 100644 index 000000000000..4b85a39168cc --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/src/operationsInterfaces/virtualMachineImageTemplates.ts @@ -0,0 +1,213 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ImageTemplate, + VirtualMachineImageTemplatesListOptionalParams, + VirtualMachineImageTemplatesListByResourceGroupOptionalParams, + RunOutput, + VirtualMachineImageTemplatesListRunOutputsOptionalParams, + VirtualMachineImageTemplatesCreateOrUpdateOptionalParams, + VirtualMachineImageTemplatesCreateOrUpdateResponse, + ImageTemplateUpdateParameters, + VirtualMachineImageTemplatesUpdateOptionalParams, + VirtualMachineImageTemplatesUpdateResponse, + VirtualMachineImageTemplatesGetOptionalParams, + VirtualMachineImageTemplatesGetResponse, + VirtualMachineImageTemplatesDeleteOptionalParams, + VirtualMachineImageTemplatesRunOptionalParams, + VirtualMachineImageTemplatesCancelOptionalParams, + VirtualMachineImageTemplatesGetRunOutputOptionalParams, + VirtualMachineImageTemplatesGetRunOutputResponse +} from "../models"; + +/// +/** Interface representing a VirtualMachineImageTemplates. */ +export interface VirtualMachineImageTemplates { + /** + * Gets information about the VM image templates associated with the subscription. + * @param options The options parameters. + */ + list( + options?: VirtualMachineImageTemplatesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets information about the VM image templates associated with the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * List all run outputs for the specified Image Template resource + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + listRunOutputs( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Create or update a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Parameters supplied to the CreateImageTemplate operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplate, + options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualMachineImageTemplatesCreateOrUpdateResponse + > + >; + /** + * Create or update a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Parameters supplied to the CreateImageTemplate operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplate, + options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams + ): Promise; + /** + * Update the tags for this Virtual Machine Image Template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Additional parameters for Image Template update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplateUpdateParameters, + options?: VirtualMachineImageTemplatesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualMachineImageTemplatesUpdateResponse + > + >; + /** + * Update the tags for this Virtual Machine Image Template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param parameters Additional parameters for Image Template update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + imageTemplateName: string, + parameters: ImageTemplateUpdateParameters, + options?: VirtualMachineImageTemplatesUpdateOptionalParams + ): Promise; + /** + * Get information about a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + get( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesGetOptionalParams + ): Promise; + /** + * Delete a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a virtual machine image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesDeleteOptionalParams + ): Promise; + /** + * Create artifacts from a existing image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginRun( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesRunOptionalParams + ): Promise, void>>; + /** + * Create artifacts from a existing image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginRunAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesRunOptionalParams + ): Promise; + /** + * Cancel the long running image build based on the image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginCancel( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesCancelOptionalParams + ): Promise, void>>; + /** + * Cancel the long running image build based on the image template + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param options The options parameters. + */ + beginCancelAndWait( + resourceGroupName: string, + imageTemplateName: string, + options?: VirtualMachineImageTemplatesCancelOptionalParams + ): Promise; + /** + * Get the specified run output for the specified image template resource + * @param resourceGroupName The name of the resource group. + * @param imageTemplateName The name of the image Template + * @param runOutputName The name of the run output + * @param options The options parameters. + */ + getRunOutput( + resourceGroupName: string, + imageTemplateName: string, + runOutputName: string, + options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams + ): Promise; +} diff --git a/sdk/imagebuilder/arm-imagebuilder/test/imagebuilder_examples.ts b/sdk/imagebuilder/arm-imagebuilder/test/imagebuilder_examples.ts new file mode 100644 index 000000000000..b9d5f2b02752 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/test/imagebuilder_examples.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder, + delay, + isPlaybackMode +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; +import { ClientSecretCredential } from "@azure/identity"; +import { ImageBuilderClient } from "../src/imageBuilderClient"; +import { ComputeManagementClient } from "@azure/arm-compute"; +import { ManagedServiceIdentityClient } from "@azure/arm-msi"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("ImageBuilder test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: ImageBuilderClient; + let compute_client: ComputeManagementClient; + let msi_client: ManagedServiceIdentityClient; + let location: string; + let resourceGroup: string; + let imageTemplateName: string; + let diskName: string; + let snapshotName: string; + let imagesName: string; + let msiName: string; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + subscriptionId = env.SUBSCRIPTION_ID; + // This is an example of how the environment variables are used + const credential = new ClientSecretCredential( + env.AZURE_TENANT_ID, + env.AZURE_CLIENT_ID, + env.AZURE_CLIENT_SECRET + ); + client = new ImageBuilderClient(credential, subscriptionId); + compute_client = new ComputeManagementClient(credential,subscriptionId); + msi_client = new ManagedServiceIdentityClient(credential,subscriptionId); + location = "eastus"; + resourceGroup = "myjstest"; + imageTemplateName = "myimageTemplatexxxz"; + diskName = "mydiskaaa"; + snapshotName = "mysnapshotaaa"; + imagesName = "myimagesaaa"; + msiName = "mymsiaaa"; + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("create parameter for virtualMachineImageTemplates test", async function() { + //create a userAssignedIdentities + const msiCreate = await msi_client.userAssignedIdentities.createOrUpdate(resourceGroup,msiName,{location: location}); + //create a disk + const diskCreate = await compute_client.disks.beginCreateOrUpdateAndWait(resourceGroup,diskName,{ + location: location, + creationData: { + createOption: "Empty" + }, + diskSizeGB: 200 + }) + //create a snapshots + const snapshotsCreate = await compute_client.snapshots.beginCreateOrUpdateAndWait(resourceGroup,snapshotName,{ + location: location, + creationData: { + createOption: "Copy", + sourceUri: "/subscriptions/" +subscriptionId +"/resourceGroups/" +resourceGroup +"/providers/Microsoft.Compute/disks/mydiskaaa", + } + }) + //create a images + const imagesCreate = await compute_client.images.beginCreateOrUpdateAndWait(resourceGroup,imagesName,{ + location: location, + storageProfile: { + osDisk: { + osType: "Linux", + osState: "Generalized", + snapshot: { + id: "subscriptions/" +subscriptionId +"/resourceGroups/" +resourceGroup +"/providers/Microsoft.Compute/snapshots/mysnapshotaaa", + } + } + }, + hyperVGeneration: "V1" + }) + }); + + it("virtualMachineImageTemplates create test", async function() { + + if(isPlaybackMode()) { + this.skip(); + } + //before create ,we need add msi owner authority for images in portal + const res = await client.virtualMachineImageTemplates.beginCreateOrUpdateAndWait(resourceGroup,imageTemplateName,{ + location: location, + tags: { + tag1: "IT_T1", + tag2: "IT2_T2" + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/92f95d8f-3c67-4124-91c7-8cf07cdbf241/resourcegroups/myjstest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymsiaaa": {} + } + }, + source: { + type: "ManagedImage", + imageId: "/subscriptions/"+subscriptionId+"/resourceGroups/"+resourceGroup+"/providers/Microsoft.Compute/images/myimageaaa" + }, + customize: [ + { + type: "Shell", + name: "Shell Customizer Example", + scriptUri: "https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.compute/vm-msi/scripts/install-and-run-cli-2.sh" + } + ], + distribute: [ + { + type: "ManagedImage", + location: location, + runOutputName: "image_it_pir_1", + imageId: "/subscriptions/"+subscriptionId+"/resourceGroups/"+resourceGroup+"/providers/Microsoft.Compute/images/myimageaaa", + artifactTags: { + tagName: "value" + } + } + ] + }) + }); + + it("virtualMachineImageTemplates get test", async function() { + const res = await client.virtualMachineImageTemplates.get(resourceGroup,imageTemplateName); + assert.equal(res.name,imageTemplateName); + }); + + it("virtualMachineImageTemplates list test", async function() { + const resArray = new Array(); + for await (let item of client.virtualMachineImageTemplates.list()){ + resArray.push(item); + } + assert.equal(resArray.length,1); + }); + + it("virtualMachineImageTemplates delete test", async function() { + const res = await client.virtualMachineImageTemplates.beginDeleteAndWait(resourceGroup,imageTemplateName); + const resArray = new Array(); + for await (let item of client.virtualMachineImageTemplates.list()){ + resArray.push(item); + } + assert.equal(resArray.length,0); + }); + + it("delete parameter for virtualMachineImageTemplates test", async function() { + const imagesDelete = await compute_client.images.beginDeleteAndWait(resourceGroup,imagesName) + const snapshotsDelete = await compute_client.snapshots.beginDeleteAndWait(resourceGroup,snapshotName) + const diskDelete = await compute_client.disks.beginDeleteAndWait(resourceGroup,diskName) + const msiDelete = await msi_client.userAssignedIdentities.delete(resourceGroup,msiName); + }); +}); diff --git a/sdk/imagebuilder/arm-imagebuilder/tsconfig.json b/sdk/imagebuilder/arm-imagebuilder/tsconfig.json new file mode 100644 index 000000000000..6e3251194117 --- /dev/null +++ b/sdk/imagebuilder/arm-imagebuilder/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, + "outDir": "./dist-esm", + "importHelpers": true + }, + "include": ["./src/**/*.ts", "./test/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/sdk/imagebuilder/ci.yml b/sdk/imagebuilder/ci.yml new file mode 100644 index 000000000000..9dfa1d3737e4 --- /dev/null +++ b/sdk/imagebuilder/ci.yml @@ -0,0 +1,29 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/imagebuilder/ + +pr: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/imagebuilder/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: imagebuilder + Artifacts: + - name: azure-arm-imagebuilder + safeName: azurearmimagebuilder + \ No newline at end of file