diff --git a/sdk/batch/azure-mgmt-batch/dev_requirements.txt b/sdk/batch/azure-mgmt-batch/dev_requirements.txt index a682651166d5..4743fed44da3 100644 --- a/sdk/batch/azure-mgmt-batch/dev_requirements.txt +++ b/sdk/batch/azure-mgmt-batch/dev_requirements.txt @@ -1,4 +1,5 @@ -e ../../../tools/azure-sdk-tools azure-mgmt-keyvault<9.0.0 azure-mgmt-network<19.0.0 --e ../../../tools/azure-devtools \ No newline at end of file +-e ../../../tools/azure-devtools +../../identity/azure-identity \ No newline at end of file diff --git a/sdk/batch/azure-mgmt-batch/tests/conftest.py b/sdk/batch/azure-mgmt-batch/tests/conftest.py new file mode 100644 index 000000000000..c7c30cea2fa7 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/conftest.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# 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. +# +# -------------------------------------------------------------------------- +import os +import platform +import pytest +import sys + +from dotenv import load_dotenv + +from devtools_testutils import test_proxy, add_general_regex_sanitizer + + +load_dotenv() + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") diff --git a/sdk/batch/azure-mgmt-batch/tests/mgmt_batch_preparers.py b/sdk/batch/azure-mgmt-batch/tests/mgmt_batch_preparers.py index c69119485959..37922e7dc4a9 100644 --- a/sdk/batch/azure-mgmt-batch/tests/mgmt_batch_preparers.py +++ b/sdk/batch/azure-mgmt-batch/tests/mgmt_batch_preparers.py @@ -92,7 +92,7 @@ def remove_resource(self, name, **kwargs): class SimpleBatchPreparer(AzureMgmtPreparer): def __init__(self, - name_prefix='batch', + name_prefix='batch11', location='westus', parameter_name='batch_account', resource_group_parameter_name=RESOURCE_GROUP_PARAM, @@ -118,7 +118,7 @@ def _get_resource_group(self, **kwargs): def create_resource(self, name, **kwargs): if self.is_live: self.client = self.create_mgmt_client( - azure.mgmt.batch.BatchManagement) + azure.mgmt.batch.BatchManagementClient) group = self._get_resource_group(**kwargs) batch_account = azure.mgmt.batch.models.BatchAccountCreateParameters( location=self.location, diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account.json new file mode 100644 index 000000000000..60fad9e2b1c9 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account.json @@ -0,0 +1,1473 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:09 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAQAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 06:59:10 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SCUS ProdSlices", + "x-ms-request-id": "bd9a45b6-37f5-43e5-b6c0-8ed9d9c09c02" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAQAAADHnZdkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:09 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAQAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 06:59:10 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR2 ProdSlices", + "x-ms-request-id": "c8a5e3e9-f35c-4dbc-a255-53419e137900" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "334333e7-1def-47b7-96e3-2adbecfec04a", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAQAAADHnZdkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "334333e7-1def-47b7-96e3-2adbecfec04a", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:10 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAgAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 06:59:10 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "9c91db29-425b-4170-92ca-2643e2132a02" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTI3OTI1MCwibmJmIjoxNjQxMjc5MjUwLCJleHAiOjE2NDEyODMxNTAsImFpbyI6IkUyWmdZR2hZOTl6SjRMdmdDYlA3ZXhocVcyMC9BUUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IktkdVJuRnRDY0VHU3lpWkQ0aE1xQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.h2wo_SMKptOvJbP-dTY2T5SxldzHHItS5U1tL6u_U2L9bLTH5duAmjNmiHHIDkKeU-mOQmv4QfTVkFpXUSEbCpYrHt8d0pMKSZ1Dj2efclDzBwsEnyUkifT3W5pvhKn60G3TEdF_1oaTemtWy3vCC_3UIS0IA3J0gWJ_4YkO5y_mAKe-pYQVenUzwJY2W_0LwfnWV103Q_cenlxfSTxn5Scqjp5kJcsXorOnHM-dqRmb_UOjRCfV0sP7TUqd0weW7wTNB-z-hLLZafxDFQma4uSMxq0waIw_ox-v2kP01bwZ21xx80g9WJmWWz9ON-a9_lD7SvTcNWL1YQrTCqyksA" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "72", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d0ff5690-6d2b-11ec-807b-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022properties\u0022: {\u0022publicNetworkAccess\u0022: \u0022Enabled\u0022}}", + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 04 Jan 2022 06:59:11 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545/operationResults/587a9cfd-6a80-462e-be4c-5498ddcbf3b8?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9b1c5b9-63d5-4256-844d-d64e0e6a437a", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "587a9cfd-6a80-462e-be4c-5498ddcbf3b8", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065911Z:c9b1c5b9-63d5-4256-844d-d64e0e6a437a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545/operationResults/587a9cfd-6a80-462e-be4c-5498ddcbf3b8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d0ff5690-6d2b-11ec-807b-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:26 GMT", + "ETag": "\u00220x8D9CF4FBF8C4F9B\u0022", + "Expires": "-1", + "Last-Modified": "Tue, 04 Jan 2022 06:59:27 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "244483b0-e87d-4ed1-8eab-b9573ed6bbcc", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "8a7eace4-bc46-49f8-9067-84ff97cba44e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065927Z:244483b0-e87d-4ed1-8eab-b9573ed6bbcc" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545", + "name": "batch3f662545", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batch3f662545.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Enabled", + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "identity": { + "type": "None" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "db756149-6d2b-11ec-afbd-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:26 GMT", + "ETag": "\u00220x8D9CF4FB87040C3\u0022", + "Expires": "-1", + "Last-Modified": "Tue, 04 Jan 2022 06:59:15 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "787cc7b5-5b4f-4be7-8f21-463f9fb2aae0", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "d5c146aa-f842-4079-9f0f-b5724e6603ed", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065927Z:787cc7b5-5b4f-4be7-8f21-463f9fb2aae0" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545", + "name": "batch3f662545", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batch3f662545.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Enabled", + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "identity": { + "type": "None" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dba9d77e-6d2b-11ec-b0d9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06db9c0d-2bcf-42ad-bd5e-a20aeb209cf9", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "b826c075-4469-4893-9867-cfb4a15631a7", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065928Z:06db9c0d-2bcf-42ad-bd5e-a20aeb209cf9" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545", + "name": "batch3f662545", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batch3f662545.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Enabled", + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "identity": { + "type": "None" + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545/listKeys?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dbe34c5a-6d2b-11ec-881a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4bb5da0d-75c6-4009-9155-a39688bd3863", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "6a034a4b-09b9-4edb-bfd9-72aeeafb9e4e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065928Z:4bb5da0d-75c6-4009-9155-a39688bd3863" + }, + "ResponseBody": { + "accountName": "batch3f662545", + "primary": "wU1Y1TcNfFRnP9jBJMVk1xe0/pmt3rzwalv0dhN/iT1EcwAVaGTkDnMYHo9QnE3uQ3jraMfHYySlWa8c4GUNQw==", + "secondary": "LC0A0XXLM/\u002B31AKvVD7Xi4FG0\u002BOqarzrBrZVEb5V4wceeg7QpwIt4s5JP8n9R5zldwczJ0TP/cKXIOZS6Hgo2A==" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545/regenerateKeys?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dc1c3ba8-6d2b-11ec-9c95-70b5e82527ff" + }, + "RequestBody": "{\u0022keyName\u0022: \u0022Secondary\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "932232bc-94ce-42c1-b196-586b9e1ce1fc", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "c28c79ca-150d-4ba0-ae4e-4b787224f81d", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065928Z:932232bc-94ce-42c1-b196-586b9e1ce1fc" + }, + "ResponseBody": { + "accountName": "batch3f662545", + "primary": "wU1Y1TcNfFRnP9jBJMVk1xe0/pmt3rzwalv0dhN/iT1EcwAVaGTkDnMYHo9QnE3uQ3jraMfHYySlWa8c4GUNQw==", + "secondary": "mVRxzFLAJUucF5w8mOExjgGRhIxSxZCYTbDe363AzlOzbbGqoXKsYU\u002BR4mYgi2KzrRmMKngjblfjhOoqA4A9xQ==" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "50", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dc5843e1-6d2b-11ec-89ec-70b5e82527ff" + }, + "RequestBody": "{\u0022tags\u0022: {\u0022Name\u0022: \u0022tagName\u0022, \u0022Value\u0022: \u0022tagValue\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:59:29 GMT", + "ETag": "\u00220x8D9CF4FC0BE32BD\u0022", + "Expires": "-1", + "Last-Modified": "Tue, 04 Jan 2022 06:59:29 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6c20631-be92-4a88-9259-bc4a267dde51", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "1cdd0eb0-a4ad-4a97-872b-251a2c2c2b77", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065929Z:e6c20631-be92-4a88-9259-bc4a267dde51" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545", + "name": "batch3f662545", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batch3f662545.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Enabled", + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "tags": { + "Name": "tagName", + "Value": "tagValue" + }, + "identity": { + "type": "None" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/3f662545/providers/Microsoft.Batch/batchAccounts/batch3f662545?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dce0b2a8-6d2b-11ec-bdf9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 04 Jan 2022 06:59:29 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3f662545-0cf29883-fd28-467a-8eb2-a960a54e32c4?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca5a7979-2d15-4ca0-97e4-00d2879b89d7", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "0cf29883-fd28-467a-8eb2-a960a54e32c4", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065930Z:ca5a7979-2d15-4ca0-97e4-00d2879b89d7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3f662545-0cf29883-fd28-467a-8eb2-a960a54e32c4?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dce0b2a8-6d2b-11ec-bdf9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 04 Jan 2022 06:59:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c6280c1-b204-4c44-8592-7d2ae041bc35", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "7256b196-91ef-48ce-9a91-45df7b686df2", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065945Z:6c6280c1-b204-4c44-8592-7d2ae041bc35" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json new file mode 100644 index 000000000000..1a26dbced9a0 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json @@ -0,0 +1,1555 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:30 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-g; expires=Sat, 05-Feb-2022 07:32:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQqprh_6XMrZVDJwvPAaCAmnfWyL0tQsbvr4yqLA7JktHqimbM4w6l59jLjipSw6eRa3yLJ-lRyB0B4ODxJ_d0K_4cj7S-zmja7eg8Lccw3bXdia1Th_YKrPlZt713EEu0_ZP2JUdvpMt1yimDoVNA3__qNwhZTqwsTZnckvOm_0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "9f3c1128-fd7f-4018-9a0d-c29ea1362a03" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=As7WQWhl7hVDjFpRH5Zfk-g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:30 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-g; expires=Sat, 05-Feb-2022 07:32:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR2 ProdSlices", + "x-ms-request-id": "882ce76a-8151-44e0-b77f-469ef6698900" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "39c1c40d-ef1a-47e8-a168-cc27ce61516e", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=As7WQWhl7hVDjFpRH5Zfk-g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "39c1c40d-ef1a-47e8-a168-cc27ce61516e", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:30 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAQAAAA6SaNkOAAAA; expires=Sat, 05-Feb-2022 07:32:31 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "5f445a24-5478-4df9-b15f-cad81b4bda02" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ1NDA1MSwibmJmIjoxNjQxNDU0MDUxLCJleHAiOjE2NDE0NTc5NTEsImFpbyI6IkUyWmdZTkJyZTc3MUFIT3U1TmxVMVZnUi9ldGNBQT09IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IkpGcEVYM2hVLVUyeFg4cllHMHZhQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.PJHmoqQl_Q6YHSdXqns12c5BVKmMPm_ym7QQuW8I6IPsIDAJ0CuQw2d_OhSfDSeedUmNGd5Ha-9j5m8UzHYO_FOA_yee4GC-KutoDQVoJ8qCCkuW2hhS4-Gbat8o770qVr4CzSA4cAODe6ojvMj0iUSBfArFgiLXqOyRwQGpAks34a-GtIAQpsEDyLbQT2Hx55PCXukOJHJzqZ9yBsk_tFCC_HPTEheKtUjsPq8Gfa43GgQmEMXEbcKLoJTvRrBcXOdExNw1380bf4I3Qm3aJU-w7o-BBz_C4u032psl31mQaYh7QW5VzMAzt3ayUbUTdPzkGhfvKn4qWFXO8vPwKg" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "113", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cd81ac08-6ec2-11ec-ab63-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022identity\u0022: {\u0022type\u0022: \u0022SystemAssigned\u0022}, \u0022properties\u0022: {\u0022publicNetworkAccess\u0022: \u0022Disabled\u0022}}", + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:32:35 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/dfd57bf2-0529-4fb0-b2b5-9fea2b0cb352?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19e7e0d3-5444-43df-8deb-3f9d33733a9c", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "dfd57bf2-0529-4fb0-b2b5-9fea2b0cb352", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073236Z:19e7e0d3-5444-43df-8deb-3f9d33733a9c" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/dfd57bf2-0529-4fb0-b2b5-9fea2b0cb352?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cd81ac08-6ec2-11ec-ab63-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:51 GMT", + "ETag": "\u00220x8D9D0E6BF67EFC8\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:32:52 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3843f062-5568-4923-b9fc-fdf86e62b430", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "db227db9-6850-4155-8148-1e9f397e3e35", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073252Z:3843f062-5568-4923-b9fc-fdf86e62b430" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", + "name": "batchpendpointa75328da", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batchpendpointa75328da.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [], + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "identity": { + "principalId": "1a56f78f-17bc-441e-be34-aca1ee1d62c5", + "tenantId": "00000000-0000-0000-0000-000000000000", + "type": "SystemAssigned" + } + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:52 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAQAAAA6SaNkOAAAA; expires=Sat, 05-Feb-2022 07:32:53 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "2f566e7d-7b05-49d7-8ff7-adc50691b702" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAQAAAA6SaNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:52 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAQAAAA6SaNkOAAAA; expires=Sat, 05-Feb-2022 07:32:53 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR2 ProdSlices", + "x-ms-request-id": "70f2d6e6-a657-4463-8780-71241b1c9300" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "1fc6f77c-2ab4-46b8-a858-67378212cf45", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAQAAAA6SaNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "1fc6f77c-2ab4-46b8-a858-67378212cf45", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:53 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=As7WQWhl7hVDjFpRH5Zfk-iZHqKEAgAAAA6SaNkOAAAA; expires=Sat, 05-Feb-2022 07:32:53 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - SCUS ProdSlices", + "x-ms-request-id": "219e0195-b73b-4a17-a6b2-3dc6ed620a03" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ1NDA3MywibmJmIjoxNjQxNDU0MDczLCJleHAiOjE2NDE0NTc5NzMsImFpbyI6IkUyWmdZQWg0VkhYcXNJMlhMNzhwNjhQN3h4bmNBQT09IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6ImxRR2VJVHUzRjBxbXNqM0c3V0lLQXciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.aeRsZ9bYwzkRD77BKW90p_0dnNY7DVkf1IS3jaNDISdY1M0SZ1XJowcHR83gFhxDfMUUvcsX6IDXcSH-73_dVV7GrtJGn4mpKCZ4LkfUM6XKquax5RDD0eI6IIeE6e_djzPOqC07Yg9-61e_TxbIm9WijRH2N8QG7Li460O8Hfcf9H9YYzhtYqU0uVupKlRb07PNFy0ctNbxamcdFouH5QBEeohSdYA1WgSBuJSAt7XXiCKuy9Fbw08DSFOGdJzoFzgyoxze5Q9zwMroi_v4_yPpPeILIesuiBd4TGA9iMXdSzT9kntyNdtMrdrgqYdc0-J6_s5k9waZLyArGLWpVg" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "287", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "daf4b082-6ec2-11ec-a59d-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022properties\u0022: {\u0022addressSpace\u0022: {\u0022addressPrefixes\u0022: [\u002210.0.0.0/16\u0022]}, \u0022subnets\u0022: [{\u0022name\u0022: \u0022subneta75328da\u0022, \u0022properties\u0022: {\u0022addressPrefix\u0022: \u002210.0.0.0/24\u0022, \u0022privateEndpointNetworkPolicies\u0022: \u0022Disabled\u0022}}], \u0022enableDdosProtection\u0022: false, \u0022enableVmProtection\u0022: false}}", + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncNotification": "Enabled", + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/50cba773-e0c5-4e88-8e1b-500c49ac4443?api-version=2020-11-01", + "Cache-Control": "no-cache", + "Content-Length": "1380", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "3", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "44f8b087-e994-486a-a196-64b541fccf68", + "x-ms-correlation-request-id": "e0b18fe2-1f30-4aa1-893b-5ccd60f6b54a", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "50cba773-e0c5-4e88-8e1b-500c49ac4443", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073256Z:e0b18fe2-1f30-4aa1-893b-5ccd60f6b54a" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022vneta75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u0022ba2aecf8-3fb1-47e1-8648-54c30319f9e0\\\u0022\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/virtualNetworks\u0022,\r\n", + " \u0022location\u0022: \u0022eastus\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Updating\u0022,\r\n", + " \u0022resourceGuid\u0022: \u002231e211d7-0c83-4e45-81d9-5aa2e72ede61\u0022,\r\n", + " \u0022addressSpace\u0022: {\r\n", + " \u0022addressPrefixes\u0022: [\r\n", + " \u002210.0.0.0/16\u0022\r\n", + " ]\r\n", + " },\r\n", + " \u0022subnets\u0022: [\r\n", + " {\r\n", + " \u0022name\u0022: \u0022subneta75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u0022ba2aecf8-3fb1-47e1-8648-54c30319f9e0\\\u0022\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Updating\u0022,\r\n", + " \u0022addressPrefix\u0022: \u002210.0.0.0/24\u0022,\r\n", + " \u0022delegations\u0022: [],\r\n", + " \u0022privateEndpointNetworkPolicies\u0022: \u0022Disabled\u0022,\r\n", + " \u0022privateLinkServiceNetworkPolicies\u0022: \u0022Enabled\u0022\r\n", + " },\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/virtualNetworks/subnets\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022virtualNetworkPeerings\u0022: [],\r\n", + " \u0022enableDdosProtection\u0022: false\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/50cba773-e0c5-4e88-8e1b-500c49ac4443?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "daf4b082-6ec2-11ec-a59d-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "b2d785ce-573b-4f4d-a27c-1e8d94d13dd1", + "x-ms-correlation-request-id": "9068c680-43d7-4b28-a94e-d028fae96bfb", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "14a80e05-fc56-4cf4-9015-c1c22dce4fb7", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073259Z:9068c680-43d7-4b28-a94e-d028fae96bfb" + }, + "ResponseBody": [ + "{\r\n", + " \u0022status\u0022: \u0022Succeeded\u0022\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "daf4b082-6ec2-11ec-a59d-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:32:59 GMT", + "ETag": "W/\u0022f2557bfd-cdcc-45f7-992b-3800ce7169ff\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "1f0e8af5-2c7a-4315-b084-b7cbd738397c", + "x-ms-correlation-request-id": "c3c1b17a-ac8c-4ff6-9ad0-b722a6fe8bfd", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "65d224ab-d677-4d6c-9106-45f108bdcde1", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073300Z:c3c1b17a-ac8c-4ff6-9ad0-b722a6fe8bfd" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022vneta75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u0022f2557bfd-cdcc-45f7-992b-3800ce7169ff\\\u0022\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/virtualNetworks\u0022,\r\n", + " \u0022location\u0022: \u0022eastus\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Succeeded\u0022,\r\n", + " \u0022resourceGuid\u0022: \u002231e211d7-0c83-4e45-81d9-5aa2e72ede61\u0022,\r\n", + " \u0022addressSpace\u0022: {\r\n", + " \u0022addressPrefixes\u0022: [\r\n", + " \u002210.0.0.0/16\u0022\r\n", + " ]\r\n", + " },\r\n", + " \u0022subnets\u0022: [\r\n", + " {\r\n", + " \u0022name\u0022: \u0022subneta75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u0022f2557bfd-cdcc-45f7-992b-3800ce7169ff\\\u0022\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Succeeded\u0022,\r\n", + " \u0022addressPrefix\u0022: \u002210.0.0.0/24\u0022,\r\n", + " \u0022delegations\u0022: [],\r\n", + " \u0022privateEndpointNetworkPolicies\u0022: \u0022Disabled\u0022,\r\n", + " \u0022privateLinkServiceNetworkPolicies\u0022: \u0022Enabled\u0022\r\n", + " },\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/virtualNetworks/subnets\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022virtualNetworkPeerings\u0022: [],\r\n", + " \u0022enableDdosProtection\u0022: false\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "637", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dfb087ed-6ec2-11ec-9d66-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022properties\u0022: {\u0022subnet\u0022: {\u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da\u0022}, \u0022manualPrivateLinkServiceConnections\u0022: [{\u0022name\u0022: \u0022peca75328da\u0022, \u0022properties\u0022: {\u0022privateLinkServiceId\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da\u0022, \u0022groupIds\u0022: [\u0022batchAccount\u0022]}}]}}", + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncNotification": "Enabled", + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c6455b23-9d95-4e68-8304-2829743fa25b?api-version=2020-11-01", + "Cache-Control": "no-cache", + "Content-Length": "2264", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "7c12ce91-53e9-488e-996e-a136d7101b84", + "x-ms-correlation-request-id": "5976f04f-026f-4ece-a63e-482a2f02dced", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "c6455b23-9d95-4e68-8304-2829743fa25b", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073303Z:5976f04f-026f-4ece-a63e-482a2f02dced" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022pea75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u00228df4e607-2d91-482e-b5e1-79eceae811af\\\u0022\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/privateEndpoints\u0022,\r\n", + " \u0022location\u0022: \u0022eastus\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Updating\u0022,\r\n", + " \u0022resourceGuid\u0022: \u0022192717af-c759-491e-8107-2ca2865a2e55\u0022,\r\n", + " \u0022privateLinkServiceConnections\u0022: [],\r\n", + " \u0022manualPrivateLinkServiceConnections\u0022: [\r\n", + " {\r\n", + " \u0022name\u0022: \u0022peca75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u00228df4e607-2d91-482e-b5e1-79eceae811af\\\u0022\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Succeeded\u0022,\r\n", + " \u0022privateLinkServiceId\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da\u0022,\r\n", + " \u0022groupIds\u0022: [\r\n", + " \u0022batchAccount\u0022\r\n", + " ],\r\n", + " \u0022privateLinkServiceConnectionState\u0022: {\r\n", + " \u0022status\u0022: \u0022Pending\u0022,\r\n", + " \u0022description\u0022: \u0022Awaiting Approval\u0022,\r\n", + " \u0022actionsRequired\u0022: \u0022None\u0022\r\n", + " }\r\n", + " },\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022subnet\u0022: {\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da\u0022\r\n", + " },\r\n", + " \u0022networkInterfaces\u0022: [\r\n", + " {\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.536baba3-c6fc-4476-b0da-644f24eede35\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022customDnsConfigs\u0022: []\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c6455b23-9d95-4e68-8304-2829743fa25b?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dfb087ed-6ec2-11ec-9d66-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "12c92c1e-d7bc-40c9-8061-9b4d50ea779f", + "x-ms-correlation-request-id": "f08c8e9d-886e-4d07-8334-39c29e9bf0dc", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "374bc9a5-da5a-4f5f-88f3-6d3162635ea5", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073313Z:f08c8e9d-886e-4d07-8334-39c29e9bf0dc" + }, + "ResponseBody": [ + "{\r\n", + " \u0022status\u0022: \u0022InProgress\u0022\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c6455b23-9d95-4e68-8304-2829743fa25b?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dfb087ed-6ec2-11ec-9d66-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "4c19e1a6-6c7f-4318-b6cf-c656919edcb0", + "x-ms-correlation-request-id": "b7dac9ed-85d3-4a30-ae99-667e403540e9", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "a8a7274e-ef38-42c1-9945-7a856ada90d2", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073324Z:b7dac9ed-85d3-4a30-ae99-667e403540e9" + }, + "ResponseBody": [ + "{\r\n", + " \u0022status\u0022: \u0022InProgress\u0022\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c6455b23-9d95-4e68-8304-2829743fa25b?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dfb087ed-6ec2-11ec-9d66-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "7e33b321-8b4c-4ec6-9d7a-9584bbe0780f", + "x-ms-correlation-request-id": "a559e986-1365-4203-bc60-ea149b631b8b", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "7f970bac-f108-4b95-9407-52081ea04b7e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073344Z:a559e986-1365-4203-bc60-ea149b631b8b" + }, + "ResponseBody": [ + "{\r\n", + " \u0022status\u0022: \u0022Succeeded\u0022\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "dfb087ed-6ec2-11ec-9d66-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:44 GMT", + "ETag": "W/\u00223def95e2-a981-4db9-9e15-62deef727c81\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "1dd1db47-990b-4779-9aec-b41a35d9153d", + "x-ms-correlation-request-id": "9c81ba8a-3559-4bd7-a406-c5b44f9d08d0", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "79d0c8be-c46a-4af7-b367-992d2602b6f1", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073344Z:9c81ba8a-3559-4bd7-a406-c5b44f9d08d0" + }, + "ResponseBody": [ + "{\r\n", + " \u0022name\u0022: \u0022pea75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u00223def95e2-a981-4db9-9e15-62deef727c81\\\u0022\u0022,\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/privateEndpoints\u0022,\r\n", + " \u0022location\u0022: \u0022eastus\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Succeeded\u0022,\r\n", + " \u0022resourceGuid\u0022: \u0022192717af-c759-491e-8107-2ca2865a2e55\u0022,\r\n", + " \u0022privateLinkServiceConnections\u0022: [],\r\n", + " \u0022manualPrivateLinkServiceConnections\u0022: [\r\n", + " {\r\n", + " \u0022name\u0022: \u0022peca75328da\u0022,\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da\u0022,\r\n", + " \u0022etag\u0022: \u0022W/\\\u00223def95e2-a981-4db9-9e15-62deef727c81\\\u0022\u0022,\r\n", + " \u0022properties\u0022: {\r\n", + " \u0022provisioningState\u0022: \u0022Succeeded\u0022,\r\n", + " \u0022privateLinkServiceId\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da\u0022,\r\n", + " \u0022groupIds\u0022: [\r\n", + " \u0022batchAccount\u0022\r\n", + " ],\r\n", + " \u0022privateLinkServiceConnectionState\u0022: {\r\n", + " \u0022status\u0022: \u0022Pending\u0022,\r\n", + " \u0022description\u0022: \u0022Manual approval still required\u0022,\r\n", + " \u0022actionsRequired\u0022: \u0022Manual approval request\u0022\r\n", + " }\r\n", + " },\r\n", + " \u0022type\u0022: \u0022Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022subnet\u0022: {\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da\u0022\r\n", + " },\r\n", + " \u0022networkInterfaces\u0022: [\r\n", + " {\r\n", + " \u0022id\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.536baba3-c6fc-4476-b0da-644f24eede35\u0022\r\n", + " }\r\n", + " ],\r\n", + " \u0022customDnsConfigs\u0022: []\r\n", + " }\r\n", + "}" + ] + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fa60b26c-6ec2-11ec-8e9f-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "21b24622-613b-4ab6-9600-5ebe613e0b0c", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "29de2f95-726b-4e9f-b315-7bc9f37f5f52", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073345Z:21b24622-613b-4ab6-9600-5ebe613e0b0c" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da", + "name": "batchpendpointa75328da", + "type": "Microsoft.Batch/batchAccounts/privateLinkResources", + "properties": { + "groupId": "batchAccount", + "requiredMembers": [ + "batchAccount" + ], + "requiredZoneNames": [ + "privatelink.eastus.batch.azure.com" + ] + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "faaf8b02-6ec2-11ec-b268-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e3bbac5-ad8b-495c-a05a-3f19b501d1cc", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "7a31b5ac-0645-458d-b4ea-c94cc11ea434", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073345Z:0e3bbac5-ad8b-495c-a05a-3f19b501d1cc" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da", + "name": "batchpendpointa75328da", + "type": "Microsoft.Batch/batchAccounts/privateLinkResources", + "properties": { + "groupId": "batchAccount", + "requiredMembers": [ + "batchAccount" + ], + "requiredZoneNames": [ + "privatelink.eastus.batch.azure.com" + ] + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fae3fe31-6ec2-11ec-a99e-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "52767cc6-f32c-413a-972a-9ebd08f06533", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "a1835b28-3cb0-4831-9238-6e887b52abd6", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073346Z:52767cc6-f32c-413a-972a-9ebd08f06533" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "name": "pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", + "etag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Manual approval still required", + "actionsRequired": "Manual approval request" + } + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fb1a300f-6ec2-11ec-9ac5-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:45 GMT", + "ETag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:33:13 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "191fbfff-bdfd-4a3d-9a67-45ca25df6232", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "b68a61d6-815d-485a-aa8e-a46b93aaf333", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073346Z:191fbfff-bdfd-4a3d-9a67-45ca25df6232" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "name": "pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", + "etag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Manual approval still required", + "actionsRequired": "Manual approval request" + } + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "113", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fb507cba-6ec2-11ec-97b2-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022privateLinkServiceConnectionState\u0022: {\u0022status\u0022: \u0022Approved\u0022, \u0022description\u0022: \u0022Approved for test\u0022}}}", + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.192717af-c759-491e-8107-2ca2865a2e55$970169d7-c543-4f9d-bfb8-9ad19322673e?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "863", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:33:46 GMT", + "ETag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:33:13 GMT", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.192717af-c759-491e-8107-2ca2865a2e55$970169d7-c543-4f9d-bfb8-9ad19322673e?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e8e2244-0c4e-4ebf-92f1-89e954398301", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "970169d7-c543-4f9d-bfb8-9ad19322673e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073346Z:9e8e2244-0c4e-4ebf-92f1-89e954398301" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "name": "pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", + "etag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "properties": { + "provisioningState": "Updating", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved for test", + "actionsRequired": "Manual approval request" + } + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.192717af-c759-491e-8107-2ca2865a2e55$970169d7-c543-4f9d-bfb8-9ad19322673e?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fb507cba-6ec2-11ec-97b2-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:34:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1efb936b-44a3-4362-81ac-8fdb04c16b2a", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "74e7fd96-ac31-4775-bac4-e9c21175f40c", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073402Z:1efb936b-44a3-4362-81ac-8fdb04c16b2a" + }, + "ResponseBody": { + "status": "Succeeded", + "retryAfter": 0 + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "fb507cba-6ec2-11ec-97b2-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:34:02 GMT", + "ETag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:33:13 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "79fcec96-4034-4cd2-94c9-0f608944577f", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "7e516130-7a9c-437b-b20d-8b6e83709124", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T073402Z:79fcec96-4034-4cd2-94c9-0f608944577f" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "name": "pea75328da.192717af-c759-491e-8107-2ca2865a2e55", + "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", + "etag": "W/\u00220x8D9D0E6CBCF2201\u0022", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-ifpjvbckmeuvcqgfpclq7335h2abv6lzj5sqvthsxe2wedpacykv2ukusp2tstycc6nxjdn5nlz/providers/Microsoft.Network/privateEndpoints/pea75328da" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved for test", + "actionsRequired": "Manual approval request" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json new file mode 100644 index 000000000000..6496575798d9 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json @@ -0,0 +1,341 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Aq8c1VqzK7NDsqW75lMvqUk; expires=Sat, 05-Feb-2022 05:57:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMksyViljGYF0A1OU__XFh5wHI_97ltEr3zdiL5mccDvCnKlmUo4pBtqiuNT402hVQNb4l0vFYKO1maDNG-QEE6jxgWYRU1_9SrKftgTKRkIFDdglhLlUnA2IM-0lGAcEbp9nwz-xEbX_9_jlXIv5M70-SGdEmPtCzK5dybYZ4EwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "5f4da3e6-bf0c-4685-afeb-9519ec963e03" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Aq8c1VqzK7NDsqW75lMvqUk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Aq8c1VqzK7NDsqW75lMvqUk; expires=Sat, 05-Feb-2022 05:57:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR2 ProdSlices", + "x-ms-request-id": "9dd0c33e-2a73-4b99-a0e0-506f5ce98400" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "35df842b-b4d6-4305-8f2c-5a8797ad4620", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Aq8c1VqzK7NDsqW75lMvqUk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "35df842b-b4d6-4305-8f2c-5a8797ad4620", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:33 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Aq8c1VqzK7NDsqW75lMvqUmZHqKEAQAAAMx7aNkOAAAA; expires=Sat, 05-Feb-2022 05:57:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - SCUS ProdSlices", + "x-ms-request-id": "94ffe035-19a4-48cf-9f49-feb7ebe2f402" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ0ODM1MywibmJmIjoxNjQxNDQ4MzUzLCJleHAiOjE2NDE0NTIyNTMsImFpbyI6IkUyWmdZR0FMV2xIem1sbTY5OXdOQTBYclBadjhBQT09IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6Ik5lRF9sS1FaejBpZlNmNjM2LUwwQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.ChujKer6Wpl5BqBd595DlnHJRLvHgMnO1scxs-7agl310lB98UjG9Mf84vF1V_BOhmYpaGjFkv-XEJzpNKey_K0pEPSa1SqaeJVoxW7aqqVxmIkovy8qq_hwhdVC1nnvh2xHdRMcUoU7hkY2nOBE9SzD7tYhQd7mW3kP9jXVr6R4gpeSzMSDM92BQyxHlKddZu84XGJB-UKNkUC1o5oASiqFpU2kKbmGQICSYDzt8vJob4dqNwRD4vwadnd_DSly0quiVO5Jjpcvnxdn9ZyQ-V5DJtes4usbMS5DNWk7xrwtGg-93uhTWH_dDRmDDGY_aOEdQMI_Bc5n9PvzB4k1UA" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "89d197ab-6eb5-11ec-9e72-70b5e82527ff" + }, + "RequestBody": "{\u0022name\u0022: \u0022randombatchaccount@5^$g9873495873\u0022, \u0022type\u0022: \u0022Microsoft.Batch/batchAccounts\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "38d1cf77-b585-4da2-95f0-41ec0f6969b6", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "8ae595f7-771b-4e32-99ce-76868e9b940a", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T055735Z:38d1cf77-b585-4da2-95f0-41ec0f6969b6" + }, + "ResponseBody": { + "nameAvailable": false, + "reason": "Invalid", + "message": "Account name must be at least 3 characters and at most 24 characters." + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "68", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "8b970eed-6eb5-11ec-a517-70b5e82527ff" + }, + "RequestBody": "{\u0022name\u0022: \u0022dawatroupp2acct\u0022, \u0022type\u0022: \u0022Microsoft.Batch/batchAccounts\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "687b8136-86f2-40fd-a578-69f4f8624095", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "b30160d9-25b0-425f-a01b-283d60468f04", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T055735Z:687b8136-86f2-40fd-a578-69f4f8624095" + }, + "ResponseBody": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "An account named \u0027dawatroupp2acct\u0027 is already in use." + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "65", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "8bcc4910-6eb5-11ec-8135-70b5e82527ff" + }, + "RequestBody": "{\u0022name\u0022: \u0022batch3822745\u0022, \u0022type\u0022: \u0022Microsoft.Batch/batchAccounts\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:57:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "174e3c09-1787-4895-a4b6-be5eb1d49b04", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "e16ce4e7-a109-4d88-a38a-e12bc929561d", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T055736Z:174e3c09-1787-4895-a4b6-be5eb1d49b04" + }, + "ResponseBody": { + "nameAvailable": true + } + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json new file mode 100644 index 000000000000..ba9adc00153d --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json @@ -0,0 +1,1003 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:12:50 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AuVfMWC40YpPteVrnguKKfk; expires=Sat, 05-Feb-2022 07:12:50 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1EzS4WtgzCZgulnnpsYni8pTiQnFQBD0odtSknXow8cBnXVjqsO6h6u-_4jRd5CYA0ssJWYVEKRrkd-1gGyVym-DDIwe9mCsfYyKai2S_QkGi9sLEHj7dmNlxtxInNYpByCC2TvaFgbRZEOnux7JRGr7_GBUDW3gh3AoO6ZFQiEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "903178ec-7beb-46b8-8d2e-755d23b28c00" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AuVfMWC40YpPteVrnguKKfk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:12:50 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AuVfMWC40YpPteVrnguKKfk; expires=Sat, 05-Feb-2022 07:12:50 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR1 ProdSlices", + "x-ms-request-id": "082a842e-f639-4338-bdc5-2f31d4ae0200" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "b7f25d9d-478e-4fab-8afc-9e1700501a59", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AuVfMWC40YpPteVrnguKKfk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "b7f25d9d-478e-4fab-8afc-9e1700501a59", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:12:50 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AuVfMWC40YpPteVrnguKKfmZHqKEAQAAAHKNaNkOAAAA; expires=Sat, 05-Feb-2022 07:12:50 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "47651e57-2535-40e0-9e8d-d88f865a4e02" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ1Mjg3MCwibmJmIjoxNjQxNDUyODcwLCJleHAiOjE2NDE0NTY3NzAsImFpbyI6IkUyWmdZSGhsekNHOVc2dFFxbnJaMHhkL2IzKzlEUUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IlZ4NWxSelVsNEVDZWpkaVBobHBPQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.vSPtMdcJ2N6kYVkxOdQYvPPv1otrwfzC0-FzyJwIxNp4rbuLs5ukT-q-um31mqiReXFv1kmQ8aCypM8H537DIjhaZbQBa981BZ5iy8cTJw83L9Edr_CiAYbe-ro5zqe3jQ8HqYIPNp02fG8TussBP4HkkL2FWleoFMubst74isF4ZBdej0tdhogtwWt9JXgmPDE8AFbWhsU8adUoLT5Hulrx0b_VNIYNqnXS_AbZMeDh8j3dlwWFw3-et1DDsV_kC9-LG2eqKu1pvSWPAAGJjgeylTF7Dhk41hd8z1xHYanXrigB2lzEGyzK-tS7z9jQCO_rSrHniMRLGWVRBSv9PA" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "286", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "0dfd8482-6ec0-11ec-8504-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022properties\u0022: {\u0022autoStorage\u0022: {\u0022storageAccountId\u0022: \u0022/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Storage/storageAccounts/batch49e275f\u0022, \u0022authenticationMode\u0022: \u0022StorageKeys\u0022}, \u0022publicNetworkAccess\u0022: \u0022Enabled\u0022}}", + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:12:55 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/be5c78d3-db2e-4b53-90be-bbdf6d8aa38d?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f8c0764-34a8-445c-b2c2-e60659c6dd96", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "be5c78d3-db2e-4b53-90be-bbdf6d8aa38d", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071256Z:0f8c0764-34a8-445c-b2c2-e60659c6dd96" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/be5c78d3-db2e-4b53-90be-bbdf6d8aa38d?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "0dfd8482-6ec0-11ec-8504-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:11 GMT", + "ETag": "\u00220x8D9D0E3FFEDC453\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:11 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "faa52b7d-6985-404d-8980-ee19efbba80a", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "7c6cc9fd-3f09-42fd-a607-af53296dd4b2", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071311Z:faa52b7d-6985-404d-8980-ee19efbba80a" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11", + "name": "batch11", + "type": "Microsoft.Batch/batchAccounts", + "location": "eastus", + "properties": { + "accountEndpoint": "batch11.eastus.batch.azure.com", + "provisioningState": "Succeeded", + "dedicatedCoreQuota": 500, + "dedicatedCoreQuotaPerVMFamily": [ + { + "name": "standardAv2Family", + "coreQuota": 500 + }, + { + "name": "standardDv2Family", + "coreQuota": 250 + }, + { + "name": "standardDv3Family", + "coreQuota": 500 + }, + { + "name": "standardEv3Family", + "coreQuota": 500 + }, + { + "name": "standardDSv2Family", + "coreQuota": 250 + }, + { + "name": "standardDSv3Family", + "coreQuota": 500 + }, + { + "name": "standardESv3Family", + "coreQuota": 500 + }, + { + "name": "standardFSv2Family", + "coreQuota": 100 + }, + { + "name": "standardNCFamily", + "coreQuota": 24 + }, + { + "name": "standardNVFamily", + "coreQuota": 24 + }, + { + "name": "standardDDv4Family", + "coreQuota": 100 + }, + { + "name": "standardDDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDv4Family", + "coreQuota": 100 + }, + { + "name": "standardEDSv4Family", + "coreQuota": 100 + }, + { + "name": "standardA0_A7Family", + "coreQuota": 0 + }, + { + "name": "standardA8_A11Family", + "coreQuota": 0 + }, + { + "name": "standardDFamily", + "coreQuota": 0 + }, + { + "name": "standardGFamily", + "coreQuota": 0 + }, + { + "name": "basicAFamily", + "coreQuota": 0 + }, + { + "name": "standardFFamily", + "coreQuota": 0 + }, + { + "name": "standardNVPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardNCPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardHFamily", + "coreQuota": 0 + }, + { + "name": "standardHPromoFamily", + "coreQuota": 0 + }, + { + "name": "standardMSFamily", + "coreQuota": 0 + }, + { + "name": "standardDSFamily", + "coreQuota": 0 + }, + { + "name": "standardFSFamily", + "coreQuota": 0 + }, + { + "name": "standardGSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSFamily", + "coreQuota": 0 + }, + { + "name": "standardLSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardNDSFamily", + "coreQuota": 0 + }, + { + "name": "standardNCSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBSFamily", + "coreQuota": 0 + }, + { + "name": "standardHCSFamily", + "coreQuota": 0 + }, + { + "name": "standardNVSv3Family", + "coreQuota": 0 + }, + { + "name": "standardHBrsv2Family", + "coreQuota": 0 + }, + { + "name": "standardDAv4Family", + "coreQuota": 0 + }, + { + "name": "standardDASv4Family", + "coreQuota": 0 + }, + { + "name": "standardEAv4Family", + "coreQuota": 0 + }, + { + "name": "standardEASv4Family", + "coreQuota": 0 + }, + { + "name": "standardMSv2Family", + "coreQuota": 0 + }, + { + "name": "standardEIv3Family", + "coreQuota": 0 + }, + { + "name": "standardNVSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NCASv3_T4 Family", + "coreQuota": 0 + }, + { + "name": "standardXEIDSv4Family", + "coreQuota": 0 + }, + { + "name": "Standard NDASv4_A100 Family", + "coreQuota": 0 + }, + { + "name": "standardDCSv2Family", + "coreQuota": 0 + }, + { + "name": "standardHBv3Family", + "coreQuota": 0 + }, + { + "name": "standardNPSFamily", + "coreQuota": 0 + }, + { + "name": "standardFXMDVSFamily", + "coreQuota": 0 + } + ], + "dedicatedCoreQuotaPerVMFamilyEnforced": true, + "lowPriorityCoreQuota": 500, + "poolQuota": 100, + "activeJobAndJobScheduleQuota": 300, + "autoStorage": { + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Storage/storageAccounts/batch49e275f", + "lastKeySync": "2022-01-06T07:12:56.4793414Z", + "authenticationMode": "StorageKeys" + }, + "poolAllocationMode": "BatchService", + "publicNetworkAccess": "Enabled", + "encryption": { + "keySource": "Microsoft.Batch" + }, + "allowedAuthenticationModes": [ + "SharedKey", + "AAD", + "TaskAuthenticationToken" + ] + }, + "identity": { + "type": "None" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/syncAutoStorageKeys?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1b7dee14-6ec0-11ec-9d79-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Thu, 06 Jan 2022 07:13:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d2288aa-940d-4a0d-9d31-7c6e0de28131", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "f552d39b-2dd4-4078-95a2-803d5052a374", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071313Z:3d2288aa-940d-4a0d-9d31-7c6e0de28131" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "76", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1c229e9d-6ec0-11ec-bd78-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022displayName\u0022: \u0022my_application_name\u0022, \u0022allowUpdates\u0022: true}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:13 GMT", + "ETag": "W/\u00220x8D9D0E400DEA5D2\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:13 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "34b626c3-55ae-4213-9189-76d76feaafd9", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "38c5c07c-6fb3-4437-a402-714c4a7ad1c1", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071313Z:34b626c3-55ae-4213-9189-76d76feaafd9" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", + "name": "my_application_id", + "etag": "W/\u00220x8D9D0E400DEA5D2\u0022", + "properties": { + "displayName": "my_application_name", + "allowUpdates": true + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1c719b63-6ec0-11ec-b55f-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:14 GMT", + "ETag": "W/\u00220x8D9D0E400DEA5D2\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:13 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7c51a4e0-511e-4c31-a868-fa867e1c8aeb", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "33575038-eb06-4fa5-9782-fc221caaa51c", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071314Z:7c51a4e0-511e-4c31-a868-fa867e1c8aeb" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", + "name": "my_application_id", + "etag": "W/\u00220x8D9D0E400DEA5D2\u0022", + "properties": { + "displayName": "my_application_name", + "allowUpdates": true + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1cd7fe2f-6ec0-11ec-90f9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "516b7b3b-e649-41b0-9556-d3c0f2244d19", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "79df997f-935f-4955-9285-3201248fc8cd", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071314Z:516b7b3b-e649-41b0-9556-d3c0f2244d19" + }, + "ResponseBody": { + "value": [ + { + "type": "Microsoft.Batch/batchAccounts/applications", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", + "name": "my_application_id", + "etag": "W/\u00220x8D9D0E400DEA5D2\u0022", + "properties": { + "displayName": "my_application_name", + "allowUpdates": true + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1d0e9546-6ec0-11ec-b039-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:14 GMT", + "ETag": "W/\u00220x8D9D0E401C19206\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:15 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84587e2a-8c6d-471b-a74f-d772d63b8d9b", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "0e6e038e-5724-49ff-ac26-b12eefd00fb0", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071315Z:84587e2a-8c6d-471b-a74f-d772d63b8d9b" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications/versions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", + "name": "v1.0", + "etag": "W/\u00220x8D9D0E401C19206\u0022", + "properties": { + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f7ef9f7ca6754c819673872bee213bb9/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=rPQSDeyNoiBOszGPMEC6Z%2FzkNw8aMuGLhfh7CLPA%2FbQ%3D\u0026st=2022-01-06T07%3A08%3A15Z\u0026se=2022-01-06T11%3A13%3A15Z\u0026sp=rw", + "storageUrlExpiry": "2022-01-06T11:13:15.0318137Z", + "state": "Pending" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0/activate?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "17", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1e23a031-6ec0-11ec-8ed8-70b5e82527ff" + }, + "RequestBody": "{\u0022format\u0022: \u0022zip\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:16 GMT", + "ETag": "W/\u00220x8D9D0E402D2657B\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:16 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e02a284-6fa5-4c48-9598-e715a72c92e5", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "97e9016d-5932-41bc-b5b3-5466e1c71566", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071316Z:9e02a284-6fa5-4c48-9598-e715a72c92e5" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications/versions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", + "name": "v1.0", + "etag": "W/\u00220x8D9D0E402D2657B\u0022", + "properties": { + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f7ef9f7ca6754c819673872bee213bb9/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=Rd0%2BM67T2w8SHra0UMQkgrhEGG3mITuAC9GyXS9aG50%3D\u0026st=2022-01-06T07%3A08%3A16Z\u0026se=2022-01-06T11%3A13%3A16Z\u0026sp=rw", + "storageUrlExpiry": "2022-01-06T11:13:16.8402096Z", + "state": "Active", + "format": "zip", + "lastActivationTime": "2022-01-06T07:13:16.802021Z" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1e64e312-6ec0-11ec-bb1f-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022displayName\u0022: \u0022my_updated_name\u0022, \u0022allowUpdates\u0022: false, \u0022defaultVersion\u0022: \u0022v1.0\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:16 GMT", + "ETag": "W/\u00220x8D9D0E40314E31A\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:17 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d566837-e21e-40ac-8e25-a5ca976e0bf0", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "295f9935-d2f5-4515-bf96-fde850ce528e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071317Z:3d566837-e21e-40ac-8e25-a5ca976e0bf0" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", + "name": "my_application_id", + "etag": "W/\u00220x8D9D0E40314E31A\u0022", + "properties": { + "displayName": "my_updated_name", + "allowUpdates": false, + "defaultVersion": "v1.0" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1ea70be0-6ec0-11ec-bef4-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:13:17 GMT", + "ETag": "W/\u00220x8D9D0E402D2657B\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:13:16 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "090d0e39-d393-4a5c-8cd7-918b83aa0201", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "245f9f61-f389-4df2-a80d-d30ea44a3b3e", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071317Z:090d0e39-d393-4a5c-8cd7-918b83aa0201" + }, + "ResponseBody": { + "type": "Microsoft.Batch/batchAccounts/applications/versions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", + "name": "v1.0", + "etag": "W/\u00220x8D9D0E402D2657B\u0022", + "properties": { + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f7ef9f7ca6754c819673872bee213bb9/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=vJ5V%2F9lO6HJe1SUQWAHJpd4IxnGqgu4bs5W73arZBjM%3D\u0026st=2022-01-06T07%3A08%3A17Z\u0026se=2022-01-06T11%3A13%3A17Z\u0026sp=r", + "storageUrlExpiry": "2022-01-06T11:13:17.6402973Z", + "state": "Active", + "format": "zip", + "lastActivationTime": "2022-01-06T07:13:16.802021Z" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1ede5bed-6ec0-11ec-98dd-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:13:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ebade6d-a7d1-4d5f-b9e7-013d28ad56a0", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "37e81099-a9f7-4786-8f9c-1e1f2d2c8fa0", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071318Z:8ebade6d-a7d1-4d5f-b9e7-013d28ad56a0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1f2f033d-6ec0-11ec-a519-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:13:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "830044bb-b520-4f21-92b5-6f0285cc270b", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "842203f0-b74f-437a-86bb-437173c390da", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071318Z:830044bb-b520-4f21-92b5-6f0285cc270b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1f70d3a7-6ec0-11ec-9563-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:13:18 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-8590d196-e405-470a-acc9-aec861a1da13?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c2b7de70-1150-48fc-bbcf-35806b0a856b", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "8590d196-e405-470a-acc9-aec861a1da13", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071319Z:c2b7de70-1150-48fc-bbcf-35806b0a856b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-8590d196-e405-470a-acc9-aec861a1da13?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1f70d3a7-6ec0-11ec-9563-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:13:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2eb4e399-2eb9-422f-aee1-eb27bd1a3fa0", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "5b4ba309-6cfe-40e4-b68d-706676a85041", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071334Z:2eb4e399-2eb9-422f-aee1-eb27bd1a3fa0" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json new file mode 100644 index 000000000000..aef21226c93e --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json @@ -0,0 +1,273 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:58:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcrg; expires=Thu, 03-Feb-2022 06:58:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkTa6knR62TSGK5-h7HMB5QyqmAygsBiJbmxb8CNcqRa0q3XSlhwgFFa3BUDS9nWXuyXCd03q-zdDHV0O3exs6dyYcb6t3GHxnMTdsT9qyqd2YpkcDB3npLvyfdcMGJJgVsU6lnbFOQTdawqbw76bktYi4JYk_byYkf8WcfMSpNcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "34f472f9-92a2-495c-9879-0775b3b02c02" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcrg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:58:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcrg; expires=Thu, 03-Feb-2022 06:58:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR2 ProdSlices", + "x-ms-request-id": "b408faf0-040e-4696-86b6-6722b7e76f00" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "5f35b6df-2037-4aa7-97fb-d3c27adaee19", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcrg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "5f35b6df-2037-4aa7-97fb-d3c27adaee19", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:58:57 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEAQAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 06:58:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "34f472f9-92a2-495c-9879-0775c1b02c02" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTI3OTIzNywibmJmIjoxNjQxMjc5MjM3LCJleHAiOjE2NDEyODMxMzcsImFpbyI6IkUyWmdZR0E4UGZ0OS9aemQrMmVMUkhvcEgxNXdEQUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6Ii1YTDBOS0tTWEVtWWVRZDF3YkFzQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.ukqi9rfI4FMN7IcDVxow_Xyj4ACbZ223be-P-4rHtA2SwH1AlZ1GPR41AI-Gr0yG0ShbMTb1v93M-r---ryBRsysJcq_XvM5D9LE06-eYmpa7dYA9WHW1otq22tzhv3po44V2r4DveE14Vl2GSw97pbQMABoDohjOakYiNs83UxoeK17blvgDMfJdu8LibQSdsiEksYQDOB0IKedO8nYr6xuf-h-cFSS6TyfW_Igc8zYhb1s3qCPy0FF-RgJq2B-vUCffv-L67xuthJdoMZzTRvhdyV7N7WQNlr7XcUbr31_n6oXWWzBfeb3PIVbokPrVQ8pk_D0PaUo6uwWWorRWw" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/4d42761/providers/Microsoft.Batch/batchAccounts/batch4d42761?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "114", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "c8f040ec-6d2b-11ec-a64a-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022eastus\u0022, \u0022properties\u0022: {\u0022poolAllocationMode\u0022: \u0022UserSubscription\u0022, \u0022publicNetworkAccess\u0022: \u0022Enabled\u0022}}", + "StatusCode": 400, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "359", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 06:58:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2c353f0-1bd3-41be-812e-6dbf24cc03d0", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "e8d4c4a7-1802-4d81-aa8a-836d61cf75a8", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T065900Z:a2c353f0-1bd3-41be-812e-6dbf24cc03d0" + }, + "ResponseBody": { + "error": { + "code": "InvalidRequestBody", + "message": "The specified Request Body is not syntactically valid.\nRequestId:e8d4c4a7-1802-4d81-aa8a-836d61cf75a8\nTime:2022-01-04T06:59:00.6526768Z", + "target": "BatchAccount", + "details": [ + { + "code": "Reason", + "message": "keyVaultReference must be set if poolAllocationMode is specified as \u0027UserSubscription\u0027 on a PUT request" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json new file mode 100644 index 000000000000..ee781d93e086 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json @@ -0,0 +1,656 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:15:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AgFcCVsbOBdEjKbcNJAl_pM; expires=Sat, 05-Feb-2022 07:15:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevraiOXr3ch-rlC_vwpkG709CGEvnCFtfhM5tg4doRIKyc5o2PqH89V7WNgtoBPux1ZsEAAnZUC4a8QtZrhkpqXRKxahGl9sfnhaKLGift4C6rmuEDWtqViBiwqpiMgpYtOWb9jix4sdjjObVvmSJnauV7Zpd8Y9K6L0xLpfmjslkUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "f9ecf26f-27a7-4221-b9b0-e02c6025ac02" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AgFcCVsbOBdEjKbcNJAl_pM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:15:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AgFcCVsbOBdEjKbcNJAl_pM; expires=Sat, 05-Feb-2022 07:15:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR2 ProdSlices", + "x-ms-request-id": "9dd0c33e-2a73-4b99-a0e0-506fb2998500" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "3e59ed52-03df-4ead-b8bb-cd85b5dd413b", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AgFcCVsbOBdEjKbcNJAl_pM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "3e59ed52-03df-4ead-b8bb-cd85b5dd413b", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:15:56 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AgFcCVsbOBdEjKbcNJAl_pOZHqKEAQAAAC2OaNkOAAAA; expires=Sat, 05-Feb-2022 07:15:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - SCUS ProdSlices", + "x-ms-request-id": "a85b0d75-1847-4c01-9e57-4ece34754d03" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ1MzA1NywibmJmIjoxNjQxNDUzMDU3LCJleHAiOjE2NDE0NTY5NTcsImFpbyI6IkUyWmdZRmh5bjZIQS9OTFBPTldQSVV1bVdRcWxBd0E9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6ImRRMWJxRWNZQVV5ZVYwN09OSFZOQXciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.NUZltkyttAiKEeuWll7PSxyY06FEh1ZmtRfGOx7vWP7xzXrEH3bmzUSJZbofX5MXW7V9S_NSydGV4-0PhMUx1HEEp4P_qISn53vlIp9zxQT3n7r-ULeS-CqpnVF57XPBOVWtasLudkHhBea5QeJDld9uGu6FI8ASw5XVswUC7rnzbyotNJywfP41R6Tan6WLmgEJjMnuyP35b76vFwALxU2YbszxaqGwizFPpAHEr6zv6SeV6TLU4lIFxplLkzfO2dNHwgSFzpvMbSC9lnXoXe7Hqxlx3BNsHV4Tu2vuZ56u1WVtlx-kRNeLQRIvA0yEAF4M0-UxlrXbvCNPgmSkTw" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "2277", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7d6b4baf-6ec0-11ec-8b5b-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022thumbprintAlgorithm\u0022: \u0022sha1\u0022, \u0022thumbprint\u0022: \u0022cff2ab63c8c955aaf71989efa641b906558d9fb7\u0022, \u0022format\u0022: \u0022Pfx\u0022, \u0022data\u0022: \u0022MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn\u002B2pEpWdMThU7xvZ6DVpwhDOQk9166z\u002BKnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN\u002BdeMGQKwbGl\u002B3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ\u002Bq9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g\u002B6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj\u002Bhq0lKEdnhtCKr03AIfukN6\u002B4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq\u002Bdghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C\u002BRTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen\u002B2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2\u002B03RKbVGw72Mr/0xKZ\u002BawAnEfoU\u002BSL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB\u002BzCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m\u002BrBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z\u002BOeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA\u002BgBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc\u002B41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg\u002BGKCr7HUsbzfvrUivw\u002BJLL7qjHAIc5phnK\u002BF5bQ8HKe0L9YXBSKl\u002BfvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=\u0022, \u0022password\u0022: \u0022nodesdk\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:15:59 GMT", + "ETag": "W/\u00220x8D9D0E463F388D1\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:15:59 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25da1469-9373-42f9-a120-c6ed01891f04", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "e36af84e-1878-41f5-89d6-72df7ed9811a", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071559Z:25da1469-9373-42f9-a120-c6ed01891f04" + }, + "ResponseBody": { + "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "type": "Microsoft.Batch/batchAccounts/certificates", + "etag": "W/\u00220x8D9D0E463F388D1\u0022", + "properties": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:15:59.7636515Z", + "format": "Pfx", + "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7f85b2df-6ec0-11ec-8b02-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:15:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "681ffdba-4b2c-4f3a-b259-534c7b9af95e", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "076bdfb5-cddb-449b-bed9-003f7ef746a4", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071600Z:681ffdba-4b2c-4f3a-b259-534c7b9af95e" + }, + "ResponseBody": { + "value": [ + { + "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "type": "Microsoft.Batch/batchAccounts/certificates", + "etag": "W/\u00220x8D9D0E463F388D1\u0022", + "properties": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:15:59.7636515Z", + "format": "Pfx", + "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7fc32c4e-6ec0-11ec-bee5-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:16:00 GMT", + "ETag": "W/\u00220x8D9D0E463F388D1\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:15:59 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8f069bfc-d960-401c-a913-8b76ccf3221d", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "fb60e70d-40fb-4836-9371-c5a4c0dce683", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071600Z:8f069bfc-d960-401c-a913-8b76ccf3221d" + }, + "ResponseBody": { + "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "type": "Microsoft.Batch/batchAccounts/certificates", + "etag": "W/\u00220x8D9D0E463F388D1\u0022", + "properties": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:15:59.7636515Z", + "format": "Pfx", + "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "2171", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80050c46-6ec0-11ec-8de4-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022data\u0022: \u0022MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn\u002B2pEpWdMThU7xvZ6DVpwhDOQk9166z\u002BKnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN\u002BdeMGQKwbGl\u002B3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ\u002Bq9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g\u002B6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj\u002Bhq0lKEdnhtCKr03AIfukN6\u002B4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq\u002Bdghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C\u002BRTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen\u002B2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2\u002B03RKbVGw72Mr/0xKZ\u002BawAnEfoU\u002BSL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB\u002BzCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m\u002BrBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z\u002BOeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA\u002BgBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc\u002B41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg\u002BGKCr7HUsbzfvrUivw\u002BJLL7qjHAIc5phnK\u002BF5bQ8HKe0L9YXBSKl\u002BfvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=\u0022, \u0022password\u0022: \u0022nodesdk\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:16:00 GMT", + "ETag": "W/\u00220x8D9D0E463F388D1\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:15:59 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "330aae12-9bc5-49de-81c4-7c3a29c06688", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "27bb00d7-2635-439e-b08a-d18bf01aabae", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071601Z:330aae12-9bc5-49de-81c4-7c3a29c06688" + }, + "ResponseBody": { + "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "type": "Microsoft.Batch/batchAccounts/certificates", + "etag": "W/\u00220x8D9D0E463F388D1\u0022", + "properties": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:15:59.7636515Z", + "format": "Pfx", + "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2021-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80451749-6ec0-11ec-9978-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:16:01 GMT", + "ETag": "W/\u00220x8D9D0E463F388D1\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:15:59 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3c797e0a-5d9c-4901-91a9-31b07a921cfe", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "b2debf0e-f77b-4f8f-a70f-b65cf430d7ee", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071601Z:3c797e0a-5d9c-4901-91a9-31b07a921cfe" + }, + "ResponseBody": { + "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", + "type": "Microsoft.Batch/batchAccounts/certificates", + "etag": "W/\u00220x8D9D0E463F388D1\u0022", + "properties": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:15:59.7636515Z", + "format": "Pfx", + "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:16:01 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9D0E4653BC0D5?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2078b7da-e36a-4d43-a9f7-1de6344dc11d", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "eea16629-9129-498f-99a0-17e9c7b30053", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071602Z:2078b7da-e36a-4d43-a9f7-1de6344dc11d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9D0E4653BC0D5?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:16:17 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f9d2b83-ca72-4194-9c4f-dc1bc56512e4", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "6a34e8ad-5752-4eb2-8bd3-f185e3e82b0a", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071617Z:4f9d2b83-ca72-4194-9c4f-dc1bc56512e4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:16:32 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e66a1511-2e8c-43e0-a640-01d1005cd8fc", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "58415e2a-9cc9-4e95-834d-bce800998c50", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071632Z:e66a1511-2e8c-43e0-a640-01d1005cd8fc" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:16:48 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb14509c-b42a-468e-b9cf-fbcf5fa7dcdd", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "6a3132f5-0fa5-4adc-b866-c043a460a3d0", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071648Z:eb14509c-b42a-468e-b9cf-fbcf5fa7dcdd" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:17:03 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "91b9c7e1-4cc0-471f-8f40-226f241babfd", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "4fd2d6a3-1630-4637-9504-9987ef0e64b5", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071703Z:91b9c7e1-4cc0-471f-8f40-226f241babfd" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9d0e4653bc0d5?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80864763-6ec0-11ec-bf60-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:17:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33368ba1-e861-4433-a8a9-7b3b72e5443d", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "3e9a7f07-765c-4990-8894-cbff076cdd04", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T071718Z:33368ba1-e861-4433-a8a9-7b3b72e5443d" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json new file mode 100644 index 000000000000..565bb797609d --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json @@ -0,0 +1,1469 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 07:02:09 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEBAAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 07:02:09 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "ce178994-95b6-4a0b-b553-802b54a32e02" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEBAAAADHnZdkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 07:02:09 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEBAAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 07:02:10 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR1 ProdSlices", + "x-ms-request-id": "eecc4b7d-edeb-42ed-9476-136551a26b00" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "9623cce9-b26b-4455-990f-4a0df1eb7a7b", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEBAAAADHnZdkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "9623cce9-b26b-4455-990f-4a0df1eb7a7b", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 07:02:09 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsNLgXfXYbJOtMgxrT2mcriZHqKEBQAAADHnZdkOAAAA; expires=Thu, 03-Feb-2022 07:02:10 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "df0d1d23-30a5-48b6-b3b7-83c50a2fb501" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTI3OTQzMCwibmJmIjoxNjQxMjc5NDMwLCJleHAiOjE2NDEyODMzMzAsImFpbyI6IkUyWmdZSmcwTzV2djM3eW5HbUhYVjJUZDkwdjVEd0E9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6Ikl4ME4zNlV3dGtpenQ0UEZDaS0xQVEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.T6gilnykaA-ptOsaeY3KPkTBussqH-SRfYRdrj_M1GrcNODPOkRj4QfejeFrS4fQe1kMr87esMb7zLcdGdEjy6uF5NvSAQU4fpVrtztx9wD02e_7vN9aiAz5-osQj5z1wpfmBNxzjVC4uuKfQZ-c2Xzz0a1c2nwIsdGdBs050xrNQBdG-EwMqRJ_Im3SYl_gRiNjDdQj0QoKRsWWQ4Tn2RZiiYd4uZoUZBGasEI0-SESwmmd2dmXmv4dAuXuo9nRrKeQpwe-8_L1LtLeHscW4NH7j7z3CJMdFkYhLipjDlToy3TkVh3_Dk0TeZwRQihGGcu9HCBKq6512TwxF07SfA" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/providers/Microsoft.Batch/operations?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "3c248546-6d2c-11ec-86e4-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 04 Jan 2022 07:02:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f65d1d1b-cfd9-4df8-9576-9a210c3ed344", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "f21977b9-574e-487f-9de0-f2f9e43edd98", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220104T070211Z:f65d1d1b-cfd9-4df8-9576-9a210c3ed344" + }, + "ResponseBody": { + "value": [ + { + "name": "Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Account Log Definitions", + "operation": "Read Batch service log definitions", + "description": "Gets the available logs for the Batch service" + }, + "isDataAction": false, + "origin": "system", + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "ServiceLog", + "displayName": "Service Logs", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Account Metric Definitions", + "operation": "Read Batch service metric definitions", + "description": "Gets the available metrics for the Batch service" + }, + "isDataAction": false, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "CoreCount", + "displayName": "Dedicated Core Count", + "displayDescription": "Total number of dedicated cores in the batch account", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "TotalNodeCount", + "displayName": "Dedicated Node Count", + "displayDescription": "Total number of dedicated nodes in the batch account", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "LowPriorityCoreCount", + "displayName": "LowPriority Core Count", + "displayDescription": "Total number of low-priority cores in the batch account", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "TotalLowPriorityNodeCount", + "displayName": "Low-Priority Node Count", + "displayDescription": "Total number of low-priority nodes in the batch account", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "CreatingNodeCount", + "displayName": "Creating Node Count", + "displayDescription": "Number of nodes being created", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "StartingNodeCount", + "displayName": "Starting Node Count", + "displayDescription": "Number of nodes starting", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "WaitingForStartTaskNodeCount", + "displayName": "Waiting For Start Task Node Count", + "displayDescription": "Number of nodes waiting for the Start Task to complete", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "StartTaskFailedNodeCount", + "displayName": "Start Task Failed Node Count", + "displayDescription": "Number of nodes where the Start Task has failed", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "IdleNodeCount", + "displayName": "Idle Node Count", + "displayDescription": "Number of idle nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "OfflineNodeCount", + "displayName": "Offline Node Count", + "displayDescription": "Number of offline nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "RebootingNodeCount", + "displayName": "Rebooting Node Count", + "displayDescription": "Number of rebooting nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "ReimagingNodeCount", + "displayName": "Reimaging Node Count", + "displayDescription": "Number of reimaging nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "RunningNodeCount", + "displayName": "Running Node Count", + "displayDescription": "Number of running nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "LeavingPoolNodeCount", + "displayName": "Leaving Pool Node Count", + "displayDescription": "Number of nodes leaving the Pool", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "UnusableNodeCount", + "displayName": "Unusable Node Count", + "displayDescription": "Number of unusable nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PreemptedNodeCount", + "displayName": "Preempted Node Count", + "displayDescription": "Number of preempted nodes", + "unit": "Count", + "aggregationType": "Total", + "lockAggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "TaskStartEvent", + "displayName": "Task Start Events", + "displayDescription": "Total number of tasks that have started", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + }, + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "TaskCompleteEvent", + "displayName": "Task Complete Events", + "displayDescription": "Total number of tasks that have completed", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + }, + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "TaskFailEvent", + "displayName": "Task Fail Events", + "displayDescription": "Total number of tasks that have completed in a failed state", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + }, + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PoolCreateEvent", + "displayName": "Pool Create Events", + "displayDescription": "Total number of pools that have been created", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PoolResizeStartEvent", + "displayName": "Pool Resize Start Events", + "displayDescription": "Total number of pool resizes that have started", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PoolResizeCompleteEvent", + "displayName": "Pool Resize Complete Events", + "displayDescription": "Total number of pool resizes that have completed", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PoolDeleteStartEvent", + "displayName": "Pool Delete Start Events", + "displayDescription": "Total number of pool deletes that have started", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "PoolDeleteCompleteEvent", + "displayName": "Pool Delete Complete Events", + "displayDescription": "Total number of pool deletes that have completed", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "poolId", + "displayName": "Pool ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobDeleteCompleteEvent", + "displayName": "Job Delete Complete Events", + "displayDescription": "Total number of jobs that have been successfully deleted.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobDeleteStartEvent", + "displayName": "Job Delete Start Events", + "displayDescription": "Total number of jobs that have been requested to be deleted.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobDisableCompleteEvent", + "displayName": "Job Disable Complete Events", + "displayDescription": "Total number of jobs that have been successfully disabled.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobDisableStartEvent", + "displayName": "Job Disable Start Events", + "displayDescription": "Total number of jobs that have been requested to be disabled.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobStartEvent", + "displayName": "Job Start Events", + "displayDescription": "Total number of jobs that have been successfully started.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobTerminateCompleteEvent", + "displayName": "Job Terminate Complete Events", + "displayDescription": "Total number of jobs that have been successfully terminated.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + }, + { + "name": "JobTerminateStartEvent", + "displayName": "Job Terminate Start Events", + "displayDescription": "Total number of jobs that have been requested to be terminated.", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": false, + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "dimensions": [ + { + "name": "jobId", + "displayName": "Job ID", + "toBeExportedForShoebox": true + } + ], + "supportsInstanceLevelAggregation": false, + "enableRegionalMdmAccount": false + } + ] + } + } + }, + { + "name": "Microsoft.Batch/batchAccounts/jobs/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Jobs", + "operation": "List or Get Jobs", + "description": "Lists jobs on a Batch account or gets the properties of a job" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/batchAccounts/jobs/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Jobs", + "operation": "Create or Update Job", + "description": "Creates a new job on a Batch account or updates an existing job" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/batchAccounts/jobs/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Jobs", + "operation": "Delete Job", + "description": "Deletes a job from a Batch account" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/batchAccounts/jobSchedules/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Job Schedules", + "operation": "List or Get Job Schedules", + "description": "Lists job schedules on a Batch account or gets the properties of a job schedule" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/batchAccounts/jobSchedules/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Job Schedules", + "operation": "Create or Update Job Schedule", + "description": "Creates a new job schedule on a Batch account or updates an existing job schedule" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/batchAccounts/jobSchedules/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Job Schedules", + "operation": "Delete Job Schedule", + "description": "Deletes a job schedule from a Batch account" + }, + "isDataAction": true + }, + { + "name": "Microsoft.Batch/operations/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Available Batch Operations", + "operation": "List Available Batch Operations", + "description": "Lists operations available on Microsoft.Batch resource provider" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "List or Get Batch Accounts", + "description": "Lists Batch accounts or gets the properties of a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Create or Update Batch Account", + "description": "Creates a new Batch account or updates an existing Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Delete Batch Account", + "description": "Deletes a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/listkeys/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "List Batch Account Keys", + "description": "Lists access keys for a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/regeneratekeys/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Regenerate Batch Account Keys", + "description": "Regenerates access keys for a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/locations/quotas/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Quotas", + "operation": "Get Batch Quotas", + "description": "Gets Batch quotas of the specified subscription at the specified Azure region" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/locations/checkNameAvailability/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Name Availability", + "operation": "Check Name Availability", + "description": "Checks that the account name is valid and not in use." + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/operationResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Resource Provider", + "operation": "Get Batch account operation results", + "description": "Gets the results of a long running Batch account operation" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/locations/accountOperationResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Resource Provider", + "operation": "Get Batch account operation results", + "description": "Gets the results of a long running Batch account operation" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/register/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Resource Provider", + "operation": "Register the Batch Resource Provider", + "description": "Registers the subscription for the Batch Resource Provider and enables the creation of Batch accounts" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/unregister/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Resource Provider", + "operation": "Unregister the Batch Resource Provider", + "description": "Unregisters the subscription for the Batch Resource Provider preventing the creation of Batch accounts" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/syncAutoStorageKeys/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Accounts", + "operation": "Synchronize Auto Storage Account Keys", + "description": "Synchronizes access keys for the auto storage account configured for a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Applications", + "operation": "List or Get Applications", + "description": "Lists applications or gets the properties of an application" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Applications", + "operation": "Create or Update Application", + "description": "Creates a new application or updates an existing application" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Applications", + "operation": "Delete Application", + "description": "Deletes an application" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/versions/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Application Packages", + "operation": "Get Application Package", + "description": "Gets the properties of an application package" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/versions/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Application Packages", + "operation": "Create or Update Application Package", + "description": "Creates a new application package or updates an existing application package" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/versions/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Application Packages", + "operation": "Delete Application Package", + "description": "Deletes an application package" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/applications/versions/activate/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Application Packages", + "operation": "Activate Application Package", + "description": "Activates an application package" + }, + "isDataAction": false, + "origin": "user,system" + }, + { + "name": "Microsoft.Batch/batchAccounts/certificates/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Certificates", + "operation": "List or Get Certificates", + "description": "Lists certificates on a Batch account or gets the properties of a certificate" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/certificates/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Certificates", + "operation": "Create or Update Certificate", + "description": "Creates a new certificate on a Batch account or updates an existing certificate" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/certificates/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Certificates", + "operation": "Delete Certificate", + "description": "Deletes a certificate from a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/certificates/cancelDelete/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Certificates", + "operation": "Cancel Delete Certificate", + "description": "Cancels the failed deletion of a certificate on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/certificateOperationResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Certificates", + "operation": "Get Certificate Operation Results", + "description": "Gets the results of a long running certificate operation on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/pools/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "List or Get Pools", + "description": "Lists pools on a Batch account or gets the properties of a pool" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/pools/write", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "Create or Update Pool", + "description": "Creates a new pool on a Batch account or updates an existing pool" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/pools/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "Delete Pool", + "description": "Deletes a pool from a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/pools/stopResize/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "Stop Pool Resize", + "description": "Stops an ongoing resize operation on a Batch account pool" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/pools/disableAutoscale/action", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "Disable Pool AutoScale", + "description": "Disables automatic scaling for a Batch account pool" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/poolOperationResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Pools", + "operation": "Get Pool Operation Results", + "description": "Gets the results of a long running pool operation on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/locations/virtualMachineSkus/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Supported Skus", + "operation": "List Supported Batch Virtual Machine VM", + "description": "Lists available Batch supported Virtual Machine VM sizes at the given location" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/locations/cloudServiceSkus/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Batch Supported Skus", + "operation": "List Supported Batch Cloud Service VM", + "description": "Lists available Batch supported Cloud Service VM sizes at the given location" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/privateLinkResources/read", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateLinkResources", + "operation": "Get or List Private link resources", + "description": "Gets the properties of a Private link resource or Lists Private link resources on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnections", + "operation": "Update Private endpoint connection", + "description": "Update an existing Private endpoint connection on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnections", + "operation": "Get or List Private endpoint connection", + "description": "Gets Private endpoint connection or Lists Private endpoint connections on a Batch account" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnections", + "operation": "Get Batch account private endpoint connection operation results", + "description": "Gets the results of a long running Batch account private endpoint connection operation" + }, + "isDataAction": false + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Validates a Private endpoint connection proxy", + "description": "Validates a Private endpoint connection proxy on a Batch account" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Create or Update Private endpoint connection proxy", + "description": "Create a new Private endpoint connection proxy on a Batch account" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Get Private endpoint connection proxy", + "description": "Gets Private endpoint connection proxy on a Batch account" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Delete Private endpoint connection proxy", + "description": "Delete a Private endpoint connection proxy on a Batch account" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionProxyResults/read", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Get Batch account private endpoint connection proxy operation results", + "description": "Gets the results of a long running Batch account private endpoint connection proxy operation" + }, + "isDataAction": false, + "origin": "system" + }, + { + "name": "Microsoft.Batch/batchAccounts/outboundNetworkDependenciesEndpoints/read", + "display": { + "provider": "Microsoft Batch", + "resource": "Outbound Network Dependencies Endpoints", + "operation": "List Outbound Network Dependency Endpoints", + "description": "Lists the outbound network dependency endpoints for a Batch account" + }, + "isDataAction": false, + "origin": "user,system" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json new file mode 100644 index 000000000000..de7c67bd2abc --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json @@ -0,0 +1,811 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:23:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnHmE18AbixHvtp1O8nL_sY; expires=Sat, 05-Feb-2022 07:23:59 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrM7paPixpSx1MxedQNatMsJ7bcXPM2JWAw7xNh_2Jt-_4F8KzH6FRa16oA87WfK5qqH4H1lClA9CMiXzMWW7_XI8UpllTRg8dvJkpxvmW16mlYJI_oNk2ITl41-ywj7Ev0I70otwWiGwnXlu0hsJ9igqLIYaal6Aezqyz03_USuwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "980c424f-af93-4421-bc59-9c39ef1ce902" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AnHmE18AbixHvtp1O8nL_sY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:23:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnHmE18AbixHvtp1O8nL_sY; expires=Sat, 05-Feb-2022 07:24:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR1 ProdSlices", + "x-ms-request-id": "fdc829dd-07f2-418f-81b3-a6240ba87c00" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "85c2e064-de56-47b0-8022-df4238ef8364", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AnHmE18AbixHvtp1O8nL_sY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "85c2e064-de56-47b0-8022-df4238ef8364", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:23:59 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AnHmE18AbixHvtp1O8nL_saZHqKEAQAAABCQaNkOAAAA; expires=Sat, 05-Feb-2022 07:24:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "980c424f-af93-4421-bc59-9c390b1de902" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ1MzU0MCwibmJmIjoxNjQxNDUzNTQwLCJleHAiOjE2NDE0NTc0NDAsImFpbyI6IkUyWmdZRmgwOG5uRnpCOXFuazIyWEN2RmxzMVBCUUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IlQwSU1tSk92SVVTOFdadzVDeDNwQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.gqy2YDIrplRVxit4pgK38Lnoa68A2_qQ_VTl2wjrdMlCougdlTSidfcYBxrz0U4KtknpsCXplKh2Pze_hTBUnbVG4Y2LVoNSJysjzwFUM3PF-To8E0DCvf1NLvhU9EMXOEPt9nAjMcn4juyBbEqfbyg3FDUJ5zH5pj7P395A4cBQ-cn0mFWPxNocK0CC2jU-WBgHq7VMqgPGGrx0Y38fglyy_wAremORNbW2qW-LjmgYqcyvB_0dp-CorWsbLnhKWxrBunFmUv71aHMN8SQtjGVnMwJtU89UUXpXW0LTrFqnVPfwRAGlEgzsBvk_RHOqTqsPTMkV_uS5cO531v3b8A" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "573", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9d3c5341-6ec1-11ec-9af1-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022displayName\u0022: \u0022test_pool\u0022, \u0022vmSize\u0022: \u0022small\u0022, \u0022deploymentConfiguration\u0022: {\u0022cloudServiceConfiguration\u0022: {\u0022osFamily\u0022: \u00225\u0022}}, \u0022scaleSettings\u0022: {\u0022fixedScale\u0022: {\u0022targetDedicatedNodes\u0022: 0, \u0022targetLowPriorityNodes\u0022: 0}}, \u0022userAccounts\u0022: [{\u0022name\u0022: \u0022UserName\u0022, \u0022password\u0022: \u0022p@55wOrd\u0022}], \u0022startTask\u0022: {\u0022commandLine\u0022: \u0022cmd.exe /c \\\u0022echo hello world\\\u0022\u0022, \u0022resourceFiles\u0022: [{\u0022httpUrl\u0022: \u0022https://blobsource.com\u0022, \u0022filePath\u0022: \u0022filename.txt\u0022}], \u0022environmentSettings\u0022: [{\u0022name\u0022: \u0022ENV_VAR\u0022, \u0022value\u0022: \u0022env_value\u0022}], \u0022userIdentity\u0022: {\u0022autoUser\u0022: {\u0022elevationLevel\u0022: \u0022Admin\u0022}}}}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:24:02 GMT", + "ETag": "W/\u00220x8D9D0E583D074CE\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:24:02 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c12563cd-d826-406e-9953-d13ee5550c96", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "8267acbd-b354-4393-b538-31f347e4c926", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072402Z:c12563cd-d826-406e-9953-d13ee5550c96" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool", + "name": "test_paas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E583D074CE\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:02.7200718Z", + "creationTime": "2022-01-06T07:24:02.7200718Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:02.7200718Z", + "allocationState": "Resizing", + "allocationStateTransitionTime": "2022-01-06T07:24:02.7200718Z", + "vmSize": "Small", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "cloudServiceConfiguration": { + "osFamily": "5", + "osVersion": "*" + } + }, + "scaleSettings": { + "fixedScale": { + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "resizeTimeout": "PT15M" + } + }, + "startTask": { + "commandLine": "cmd.exe /c \u0022echo hello world\u0022", + "resourceFiles": [ + { + "filePath": "filename.txt", + "httpUrl": "https://blobsource.com" + } + ], + "environmentSettings": [ + { + "name": "ENV_VAR", + "value": "env_value" + } + ], + "userIdentity": { + "autoUser": { + "scope": "Pool", + "elevationLevel": "Admin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": true + }, + "userAccounts": [ + { + "name": "UserName", + "elevationLevel": "NonAdmin", + "windowsUserConfiguration": { + "loginMode": "Interactive" + } + } + ], + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-01-06T07:24:02.7200718Z" + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0 + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "447", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9f63bc0f-6ec1-11ec-b112-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022displayName\u0022: \u0022test_pool\u0022, \u0022vmSize\u0022: \u0022Standard_A1\u0022, \u0022deploymentConfiguration\u0022: {\u0022virtualMachineConfiguration\u0022: {\u0022imageReference\u0022: {\u0022publisher\u0022: \u0022MicrosoftWindowsServer\u0022, \u0022offer\u0022: \u0022WindowsServer\u0022, \u0022sku\u0022: \u00222016-Datacenter-smalldisk\u0022}, \u0022nodeAgentSkuId\u0022: \u0022batch.node.windows amd64\u0022, \u0022windowsConfiguration\u0022: {\u0022enableAutomaticUpdates\u0022: true}}}, \u0022scaleSettings\u0022: {\u0022fixedScale\u0022: {\u0022targetDedicatedNodes\u0022: 0, \u0022targetLowPriorityNodes\u0022: 0}}}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:24:02 GMT", + "ETag": "W/\u00220x8D9D0E58419DA34\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:24:03 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "445981ec-a86f-4739-91be-a5ab443cb02b", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "13962e9b-31a8-43f7-a8f5-b715256c04dd", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072403Z:445981ec-a86f-4739-91be-a5ab443cb02b" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", + "name": "test_iaas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E58419DA34\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:03.2010804Z", + "creationTime": "2022-01-06T07:24:03.2010804Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "allocationState": "Resizing", + "allocationStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "vmSize": "STANDARD_A1", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSkuId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": true + } + } + }, + "scaleSettings": { + "fixedScale": { + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "resizeTimeout": "PT15M" + } + }, + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-01-06T07:24:03.2010804Z" + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0 + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9fab361f-6ec1-11ec-90d9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:24:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "104a6510-496a-4db2-aba2-2138c3c077e8", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "c5711f3f-b462-4ecb-9da2-66a3b7afbce0", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072403Z:104a6510-496a-4db2-aba2-2138c3c077e8" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", + "name": "test_iaas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E58419DA34\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:03.2010804Z", + "creationTime": "2022-01-06T07:24:03.2010804Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "allocationState": "Resizing", + "allocationStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "vmSize": "STANDARD_A1", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSkuId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": true + } + } + }, + "scaleSettings": { + "fixedScale": { + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "resizeTimeout": "PT15M" + } + }, + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-01-06T07:24:03.2010804Z" + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0 + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool", + "name": "test_paas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E583D074CE\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:02.7200718Z", + "creationTime": "2022-01-06T07:24:02.7200718Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:02.7200718Z", + "allocationState": "Resizing", + "allocationStateTransitionTime": "2022-01-06T07:24:02.7200718Z", + "vmSize": "Small", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "cloudServiceConfiguration": { + "osFamily": "5", + "osVersion": "*" + } + }, + "scaleSettings": { + "fixedScale": { + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "resizeTimeout": "PT15M" + } + }, + "startTask": { + "commandLine": "cmd.exe /c \u0022echo hello world\u0022", + "resourceFiles": [ + { + "filePath": "filename.txt", + "httpUrl": "https://blobsource.com" + } + ], + "environmentSettings": [ + { + "name": "ENV_VAR", + "value": "env_value" + } + ], + "userIdentity": { + "autoUser": { + "scope": "Pool", + "elevationLevel": "Admin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": true + }, + "userAccounts": [ + { + "name": "UserName", + "elevationLevel": "NonAdmin", + "windowsUserConfiguration": { + "loginMode": "Interactive" + } + } + ], + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-01-06T07:24:02.7200718Z" + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0 + } + } + ] + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a8d999a2-6ec1-11ec-80c8-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022scaleSettings\u0022: {\u0022autoScale\u0022: {\u0022formula\u0022: \u0022$TargetDedicatedNodes=0\u0022}}}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:24:19 GMT", + "ETag": "W/\u00220x8D9D0E58D8AE138\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:24:19 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a4f4baa-5411-44bd-9f92-d3b20698f119", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "9c4e6243-3712-4eb3-bcf6-3e6be9cbdea3", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072419Z:8a4f4baa-5411-44bd-9f92-d3b20698f119" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", + "name": "test_iaas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E58D8AE138\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:19.0413112Z", + "creationTime": "2022-01-06T07:24:03.2010804Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "allocationState": "Resizing", + "allocationStateTransitionTime": "2022-01-06T07:24:19.0413112Z", + "vmSize": "STANDARD_A1", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSkuId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": true + } + } + }, + "scaleSettings": { + "autoScale": { + "formula": "$TargetDedicatedNodes=0", + "evaluationInterval": "PT15M" + } + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0, + "autoScaleRun": { + "evaluationTime": "2022-01-06T07:24:19.0413112Z", + "results": "$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue" + } + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a92156d8-6ec1-11ec-b83b-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 07:24:19 GMT", + "ETag": "W/\u00220x8D9D0E58D8AE138\u0022", + "Expires": "-1", + "Last-Modified": "Thu, 06 Jan 2022 07:24:19 GMT", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b433d560-7d6e-4c95-8001-aaa3e574ebc8", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "76ab5e29-3cea-4d57-9ccb-d69a46618283", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072419Z:b433d560-7d6e-4c95-8001-aaa3e574ebc8" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", + "name": "test_iaas_pool", + "type": "Microsoft.Batch/batchAccounts/pools", + "etag": "W/\u00220x8D9D0E58D8AE138\u0022", + "properties": { + "displayName": "test_pool", + "lastModified": "2022-01-06T07:24:19.0413112Z", + "creationTime": "2022-01-06T07:24:03.2010804Z", + "provisioningState": "Succeeded", + "provisioningStateTransitionTime": "2022-01-06T07:24:03.2010804Z", + "allocationState": "Steady", + "allocationStateTransitionTime": "2022-01-06T07:24:19.3333202Z", + "vmSize": "STANDARD_A1", + "interNodeCommunication": "Disabled", + "taskSlotsPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "Spread" + }, + "deploymentConfiguration": { + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter-smalldisk", + "version": "latest" + }, + "nodeAgentSkuId": "batch.node.windows amd64", + "windowsConfiguration": { + "enableAutomaticUpdates": true + } + } + }, + "scaleSettings": { + "autoScale": { + "formula": "$TargetDedicatedNodes=0", + "evaluationInterval": "PT15M" + } + }, + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-01-06T07:24:03.2010804Z" + }, + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0, + "autoScaleRun": { + "evaluationTime": "2022-01-06T07:24:19.0413112Z", + "results": "$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue" + } + } + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a95bcbfc-6ec1-11ec-8f10-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:24:19 GMT", + "Expires": "-1", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a9b3f74c-703a-42e8-a374-8e8df7af24f1", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "d5976ccd-bb14-444c-8eb6-8530d09296f4", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072419Z:a9b3f74c-703a-42e8-a374-8e8df7af24f1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a95bcbfc-6ec1-11ec-8f10-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 06 Jan 2022 07:24:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca80ecbd-52f7-4b10-b93f-579994046334", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "b28e0230-5536-4f57-a6af-67ecd630013c", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T072435Z:ca80ecbd-52f7-4b10-b93f-579994046334" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json new file mode 100644 index 000000000000..15c92b92c65a --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json @@ -0,0 +1,263 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:49:07 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsSiRaRL0llLghCKoboyGHs; expires=Sat, 05-Feb-2022 05:49:07 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJyLUIPKt1uNAYkf2sbqa5cshuiHzKaUvf7Oz_jm4O5ssCL0RZ-ydqkj3HVbWC0mR4om4QmhWLlFJrWmAGpDahJFPEqo54f7fMz3f6h9-J-BezEAzC3TZ1uhqahTG6_F7BkBiwWi0L0juFH7L-ymfi1i0Q9yWpFjIp2RAJsb2BWsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "d2f4fdce-a878-4f31-a292-adf5a119ef02" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/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/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AsSiRaRL0llLghCKoboyGHs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:49:07 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsSiRaRL0llLghCKoboyGHs; expires=Sat, 05-Feb-2022 05:49:07 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR2 ProdSlices", + "x-ms-request-id": "c8a5e3e9-f35c-4dbc-a255-534103518b00" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "9242d61b-72b7-484f-a8e8-c758cec9771d", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AsSiRaRL0llLghCKoboyGHs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "9242d61b-72b7-484f-a8e8-c758cec9771d", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:49:07 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsSiRaRL0llLghCKoboyGHuZHqKEAQAAANJ5aNkOAAAA; expires=Sat, 05-Feb-2022 05:49:07 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - SCUS ProdSlices", + "x-ms-request-id": "477c6eef-fce6-4f91-8e91-956ed9060200" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MTQ0Nzg0NywibmJmIjoxNjQxNDQ3ODQ3LCJleHAiOjE2NDE0NTE3NDcsImFpbyI6IkUyWmdZSGhsekNHOVc2dFFxbnJaMHhkL2IzKzlEUUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IjcyNThSLWI4a1UtT2taVnUyUVlDQUEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.MCiOnGdkixHqzLQE-gy9NuwgiQpyT5HhreeJpkpsLqe8m-d6lmMzzrVEHGpRW924v7hQohciGwDTdnuvjbYZpGKIWqMQhmYZS3f-uBf45qIURoU47rNjA8Tr7q6JRNA19oDpfbcFy7MdXnDqU9si39msSWvOWOBjfK9goYNtUm7_WoXPYoYlbnCj5e5VanS8NM8aVFKNyz740esckMkU3_PaJZhhsJFLBiUAqbW52h37gA2axL74Z6bYxJWyEzUBTqRdFVxZxONKkuf6_r1_ktmkpHYzT1uaNB4tfBQZnB5WrQwaHFnQYDRJpGzeeha_tRyERi5bE2xPB1LTDs3ZUw" + } + }, + { + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/quotas?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-batch/16.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5bfaea88-6eb4-11ec-8c04-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 06 Jan 2022 05:49:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d2814bb-ef3e-49e6-b637-68995db61f65", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "1c757301-aa1a-4abe-b98c-0ace1f0a3311", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220106T054909Z:2d2814bb-ef3e-49e6-b637-68995db61f65" + }, + "ResponseBody": { + "accountQuota": 3 + } + } + ], + "Variables": {} +} diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml deleted file mode 100644 index a9c6fc3d27ee..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml +++ /dev/null @@ -1,412 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "properties": {"publicNetworkAccess": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '72' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:22:34 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e07d5608-f5f9-4fb5-a8ed-3bef723c4ba2?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e07d5608-f5f9-4fb5-a8ed-3bef723c4ba2?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '3003' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:49 GMT - etag: - - '"0x8D94971696CB250"' - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:22:49 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '3003' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:49 GMT - etag: - - '"0x8D9497162750036"' - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:22:38 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '3015' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/listKeys?api-version=2021-06-01 - response: - body: - string: '{"accountName":"batch3e1b0fe5","primary":"redacted6f7d7a","secondary":"redacted59d978"}' - headers: - cache-control: - - no-cache - content-length: - - '235' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"keyName": "Secondary"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/regenerateKeys?api-version=2021-06-01 - response: - body: - string: '{"accountName":"batch3e1b0fe5","primary":"redacted6f7d7a","secondary":"redactedebdb55"}' - headers: - cache-control: - - no-cache - content-length: - - '235' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"tags": {"Name": "tagName", "Value": "tagValue"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '50' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PATCH - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"tags":{"Name":"tagName","Value":"tagValue"},"identity":{"type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '3048' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:22:50 GMT - etag: - - '"0x8D949716A0EB98E"' - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:22:50 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:22:50 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3e1b0fe5-ab780b29-6706-4d89-903f-ae020bfed9c3?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3e1b0fe5-ab780b29-6706-4d89-903f-ae020bfed9c3?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:23:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml deleted file mode 100644 index 65999430de30..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml +++ /dev/null @@ -1,854 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": - {"publicNetworkAccess": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '113' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:23:10 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/1b884849-9c50-43ff-8261-0138d40d725c?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/1b884849-9c50-43ff-8261-0138d40d725c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batchpendpointdefb137a.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Disabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"principalId":"657d0fb2-5586-4a02-8f28-2c64d6e5f1ce","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' - headers: - cache-control: - - no-cache - content-length: - - '3204' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:24 GMT - etag: - - '"0x8D949717EC3EDC1"' - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:23:25 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}, "subnets": [{"name": "subnetdefb137a", "properties": {"addressPrefix": - "10.0.0.0/24", "privateEndpointNetworkPolicies": "Disabled", "privateLinkServiceNetworkPolicies": - "Enabled"}}], "enableDdosProtection": false, "enableVmProtection": false}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '335' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n - \ \"etag\": \"W/\\\"fc0f8e16-260e-4a92-9301-17b5ef156a69\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"75732230-19fb-47d8-be6b-e009b4ef4086\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n - \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n - \ \"etag\": \"W/\\\"fc0f8e16-260e-4a92-9301-17b5ef156a69\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": - [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": - \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": - false\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4123ce3a-e776-45fb-a503-70291c51accd?api-version=2021-02-01 - cache-control: - - no-cache - content-length: - - '1380' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 4ea5abae-057f-4e61-a79d-8b777a4ea84e - x-ms-ratelimit-remaining-subscription-writes: - - '1193' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4123ce3a-e776-45fb-a503-70291c51accd?api-version=2021-02-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 28c0fb8b-2ebd-4f34-8821-de73e67070ff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n - \ \"etag\": \"W/\\\"f945fde2-609c-41a8-b7c5-cf1885cceb20\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"75732230-19fb-47d8-be6b-e009b4ef4086\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n - \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n - \ \"etag\": \"W/\\\"f945fde2-609c-41a8-b7c5-cf1885cceb20\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": - [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": - \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": - false\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1382' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:30 GMT - etag: - - W/"f945fde2-609c-41a8-b7c5-cf1885cceb20" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c4cfeff9-8dc7-4b14-bc90-ac1b03741bf4 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a", - "properties": {"privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies": - "Enabled"}}, "manualPrivateLinkServiceConnections": [{"name": "pecdefb137a", - "properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a", - "groupIds": ["batchAccount"]}}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '746' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n - \ \"etag\": \"W/\\\"c056acd7-7509-49c6-af97-be01466042f9\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"308b537c-eb9b-473a-b15e-a399fd93b5ba\",\r\n \"privateLinkServiceConnections\": - [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": - \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n - \ \"etag\": \"W/\\\"c056acd7-7509-49c6-af97-be01466042f9\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n - \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Pending\",\r\n \"description\": \"Awaiting Approval\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.e7969a5d-fb39-4056-8f95-63185b22ace4\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 - cache-control: - - no-cache - content-length: - - '2264' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 9a531302-dc87-4b3a-a7b2-7e90e9ef2a27 - x-ms-ratelimit-remaining-subscription-writes: - - '1192' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 06177363-9bd2-45af-95be-030a2099a79e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:23:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 73c50aa9-6429-4855-a5f0-128fdc2528ba - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - cf4e63af-3ded-428f-be46-fb11ef7ad62f - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2021-02-01 - response: - body: - string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n - \ \"etag\": \"W/\\\"d6b76b14-2752-410c-a499-e2462a5c749d\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"308b537c-eb9b-473a-b15e-a399fd93b5ba\",\r\n \"privateLinkServiceConnections\": - [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": - \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n - \ \"etag\": \"W/\\\"d6b76b14-2752-410c-a499-e2462a5c749d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n - \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Pending\",\r\n \"description\": \"Manual approval still required\",\r\n - \ \"actionsRequired\": \"Manual approval request\"\r\n }\r\n - \ },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.e7969a5d-fb39-4056-8f95-63185b22ace4\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2297' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - etag: - - W/"d6b76b14-2752-410c-a499-e2462a5c749d" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ddd66f5d-8e7b-4cc8-b349-545a2d6f4899 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.pilotprod2.eastus.batch.azure.com"]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '512' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.pilotprod2.eastus.batch.azure.com"]}}' - headers: - cache-control: - - no-cache - content-length: - - '500' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual - approval still required","actionsRequired":"Manual approval request"}}}]}' - headers: - cache-control: - - no-cache - content-length: - - '888' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual - approval still required","actionsRequired":"Manual approval request"}}}' - headers: - cache-control: - - no-cache - content-length: - - '876' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - etag: - - W/"0x8D949718DC926EE" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:23:50 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"privateLinkServiceConnectionState": {"status": "Approved", - "description": "Approved for test"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '113' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PATCH - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved - for test","actionsRequired":"Manual approval request"}}}' - headers: - azure-asyncoperation: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '863' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:14 GMT - etag: - - W/"0x8D949718DC926EE" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:23:50 GMT - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 - response: - body: - string: '{"status":"Succeeded","retryAfter":0}' - headers: - cache-control: - - no-cache - content-length: - - '37' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved - for test","actionsRequired":"Manual approval request"}}}' - headers: - cache-control: - - no-cache - content-length: - - '864' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:30 GMT - etag: - - W/"0x8D949718DC926EE" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:23:50 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml deleted file mode 100644 index bbbbb545d977..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml +++ /dev/null @@ -1,148 +0,0 @@ -interactions: -- request: - body: '{"name": "randombatchaccount@5^$g9873495873", "type": "Microsoft.Batch/batchAccounts"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '86' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 - response: - body: - string: '{"nameAvailable":false,"reason":"Invalid","message":"Account name must - be at least 3 characters and at most 24 characters."}' - headers: - cache-control: - - no-cache - content-length: - - '124' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: '{"name": "dawatroupp2acct", "type": "Microsoft.Batch/batchAccounts"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '68' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 - response: - body: - string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"An account - named ''dawatroupp2acct'' is already in use."}' - headers: - cache-control: - - no-cache - content-length: - - '114' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: '{"name": "batch938911e5", "type": "Microsoft.Batch/batchAccounts"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '66' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:24:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml deleted file mode 100644 index b6edffb78520..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml +++ /dev/null @@ -1,675 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "properties": {"autoStorage": {"storageAccountId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch", - "authenticationMode": "StorageKeys"}, "publicNetworkAccess": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '332' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:06:27 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/450c8d7e-0779-49bb-b1e4-a34f651ab197?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/450c8d7e-0779-49bb-b1e4-a34f651ab197?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch","name":"batch","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard - NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard - NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch","lastKeySync":"2021-07-17T22:06:27.5876091Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '3284' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:42 GMT - etag: - - '"0x8D9496F291DFD29"' - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:42 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/syncAutoStorageKeys?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Sat, 17 Jul 2021 22:06:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 204 - message: No Content -- request: - body: '{"properties": {"displayName": "my_application_name", "allowUpdates": true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '76' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' - headers: - cache-control: - - no-cache - content-length: - - '393' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:43 GMT - etag: - - W/"0x8D9496F297DF833" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:43 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' - headers: - cache-control: - - no-cache - content-length: - - '393' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:43 GMT - etag: - - W/"0x8D9496F297DF833" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:43 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications?api-version=2021-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}]}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F29DE041B\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw","storageUrlExpiry":"2021-07-18T02:06:44.2315388Z","state":"Pending"}}' - headers: - cache-control: - - no-cache - content-length: - - '672' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:43 GMT - etag: - - W/"0x8D9496F29DE041B" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:44 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: Hello World - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - User-Agent: - - python-requests/2.25.1 - x-ms-blob-type: - - BlockBlob - method: PUT - uri: https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - sQqNsWTgdUEFt6mb5y4/5Q== - date: - - Sat, 17 Jul 2021 22:06:43 GMT - etag: - - '"0x8D9496F2A00BF6E"' - last-modified: - - Sat, 17 Jul 2021 22:06:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2018-03-28' - status: - code: 201 - message: Created -- request: - body: '{"format": "zip"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0/activate?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F2A1523C5\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw","storageUrlExpiry":"2021-07-18T02:06:44.6183416Z","state":"Active","format":"zip","lastActivationTime":"2021-07-17T22:06:44.5789856Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '738' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:43 GMT - etag: - - W/"0x8D9496F2A1523C5" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:44 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"displayName": "my_updated_name", "allowUpdates": false, - "defaultVersion": "v1.0"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '99' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PATCH - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F2A3B7781\"","properties":{"displayName":"my_updated_name","allowUpdates":false,"defaultVersion":"v1.0"}}' - headers: - cache-control: - - no-cache - content-length: - - '414' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:44 GMT - etag: - - W/"0x8D9496F2A3B7781" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:44 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 - response: - body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F2A1523C5\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=bzU%2F1tIrVOU6PHCTZYhgcafHaSsVSUPkTOmkgKmP30E%3D&st=2021-07-17T22%3A01%3A45Z&se=2021-07-18T02%3A06%3A45Z&sp=r","storageUrlExpiry":"2021-07-18T02:06:45.0286745Z","state":"Active","format":"zip","lastActivationTime":"2021-07-17T22:06:44.5789856Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '733' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:06:44 GMT - etag: - - W/"0x8D9496F2A1523C5" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:06:44 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:06:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:06:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:06:44 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch-f5180ce0-a717-44f8-ae2f-e8d4b5365005?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch-f5180ce0-a717-44f8-ae2f-e8d4b5365005?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:07:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml deleted file mode 100644 index 84bf0af21cfd..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml +++ /dev/null @@ -1,50 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "properties": {"poolAllocationMode": "UserSubscription", - "publicNetworkAccess": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '114' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2021-06-01 - response: - body: - string: '{"error":{"code":"InvalidRequestBody","message":"The specified Request - Body is not syntactically valid.\nRequestId:fc9a4bdb-6107-464f-9a2d-f35d3a1e41f5\nTime:2021-07-17T22:07:05.8140797Z","target":"BatchAccount","details":[{"code":"Reason","message":"keyVaultReference - must be set if poolAllocationMode is specified as ''UserSubscription'' on - a PUT request"}]}}' - headers: - cache-control: - - no-cache - content-length: - - '359' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 400 - message: The specified Request Body is not syntactically valid. -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml deleted file mode 100644 index 141e551cefbb..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml +++ /dev/null @@ -1,477 +0,0 @@ -interactions: -- request: - body: '{"properties": {"thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", - "format": "Pfx", "data": "MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ+q9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g+6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj+hq0lKEdnhtCKr03AIfukN6+4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq+dghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C+RTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen+2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2+03RKbVGw72Mr/0xKZ+awAnEfoU+SL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB+zCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m+rBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z+OeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=", - "password": "nodesdk"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2277' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 - response: - body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' - headers: - cache-control: - - no-cache - content-length: - - '1194' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:24 GMT - etag: - - W/"0x8D9496F42224ADA" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:07:24 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates?api-version=2021-06-01 - response: - body: - string: '{"value":[{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '1206' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 - response: - body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' - headers: - cache-control: - - no-cache - content-length: - - '1194' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:24 GMT - etag: - - W/"0x8D9496F42224ADA" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:07:24 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"data": "MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ+q9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g+6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj+hq0lKEdnhtCKr03AIfukN6+4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq+dghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C+RTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen+2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2+03RKbVGw72Mr/0xKZ+awAnEfoU+SL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB+zCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m+rBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z+OeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=", - "password": "nodesdk"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2171' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PATCH - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 - response: - body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' - headers: - cache-control: - - no-cache - content-length: - - '1194' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:25 GMT - etag: - - W/"0x8D9496F42224ADA" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:07:24 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1194' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: POST - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2021-06-01 - response: - body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' - headers: - cache-control: - - no-cache - content-length: - - '1194' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:07:25 GMT - etag: - - W/"0x8D9496F42224ADA" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:07:24 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:07:25 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9496F428D88BD?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14996' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9496F428D88BD?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:07:40 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:07:54 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:08:11 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:08:26 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:08:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml deleted file mode 100644 index a112c47f2734..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml +++ /dev/null @@ -1,238 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/providers/Microsoft.Batch/operations?api-version=2021-06-01 - response: - body: - string: '{"value":[{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Read diagnostic setting","description":"Gets - the diagnostic setting for the resource"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/write","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Write diagnostic setting","description":"Creates - or updates the diagnostic setting for the resource"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/logDefinitions/read","display":{"provider":"Microsoft - Batch","resource":"Batch Account Log Definitions","operation":"Read Batch - service log definitions","description":"Gets the available logs for the Batch - service"},"isDataAction":false,"origin":"system","properties":{"serviceSpecification":{"logSpecifications":[{"name":"ServiceLog","displayName":"Service - Logs","blobDuration":"PT1H"}]}}},{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/metricDefinitions/read","display":{"provider":"Microsoft - Batch","resource":"Batch Account Metric Definitions","operation":"Read Batch - service metric definitions","description":"Gets the available metrics for - the Batch service"},"isDataAction":false,"origin":"system","properties":{"serviceSpecification":{"metricSpecifications":[{"name":"CoreCount","displayName":"Dedicated - Core Count","displayDescription":"Total number of dedicated cores in the batch - account","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"TotalNodeCount","displayName":"Dedicated - Node Count","displayDescription":"Total number of dedicated nodes in the batch - account","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"LowPriorityCoreCount","displayName":"LowPriority - Core Count","displayDescription":"Total number of low-priority cores in the - batch account","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"TotalLowPriorityNodeCount","displayName":"Low-Priority - Node Count","displayDescription":"Total number of low-priority nodes in the - batch account","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"CreatingNodeCount","displayName":"Creating - Node Count","displayDescription":"Number of nodes being created","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"StartingNodeCount","displayName":"Starting - Node Count","displayDescription":"Number of nodes starting","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"WaitingForStartTaskNodeCount","displayName":"Waiting - For Start Task Node Count","displayDescription":"Number of nodes waiting for - the Start Task to complete","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"StartTaskFailedNodeCount","displayName":"Start - Task Failed Node Count","displayDescription":"Number of nodes where the Start - Task has failed","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"IdleNodeCount","displayName":"Idle - Node Count","displayDescription":"Number of idle nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"OfflineNodeCount","displayName":"Offline - Node Count","displayDescription":"Number of offline nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"RebootingNodeCount","displayName":"Rebooting - Node Count","displayDescription":"Number of rebooting nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"ReimagingNodeCount","displayName":"Reimaging - Node Count","displayDescription":"Number of reimaging nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"RunningNodeCount","displayName":"Running - Node Count","displayDescription":"Number of running nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"LeavingPoolNodeCount","displayName":"Leaving - Pool Node Count","displayDescription":"Number of nodes leaving the Pool","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"UnusableNodeCount","displayName":"Unusable - Node Count","displayDescription":"Number of unusable nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PreemptedNodeCount","displayName":"Preempted - Node Count","displayDescription":"Number of preempted nodes","unit":"Count","aggregationType":"Total","lockAggregationType":"Total","fillGapWithZero":true,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"TaskStartEvent","displayName":"Task - Start Events","displayDescription":"Total number of tasks that have started","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true},{"name":"jobId","displayName":"Job ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"TaskCompleteEvent","displayName":"Task - Complete Events","displayDescription":"Total number of tasks that have completed","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true},{"name":"jobId","displayName":"Job ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"TaskFailEvent","displayName":"Task - Fail Events","displayDescription":"Total number of tasks that have completed - in a failed state","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true},{"name":"jobId","displayName":"Job ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PoolCreateEvent","displayName":"Pool - Create Events","displayDescription":"Total number of pools that have been - created","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PoolResizeStartEvent","displayName":"Pool - Resize Start Events","displayDescription":"Total number of pool resizes that - have started","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PoolResizeCompleteEvent","displayName":"Pool - Resize Complete Events","displayDescription":"Total number of pool resizes - that have completed","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PoolDeleteStartEvent","displayName":"Pool - Delete Start Events","displayDescription":"Total number of pool deletes that - have started","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"PoolDeleteCompleteEvent","displayName":"Pool - Delete Complete Events","displayDescription":"Total number of pool deletes - that have completed","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"poolId","displayName":"Pool - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobDeleteCompleteEvent","displayName":"Job - Delete Complete Events","displayDescription":"Total number of jobs that have - been successfully deleted.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobDeleteStartEvent","displayName":"Job - Delete Start Events","displayDescription":"Total number of jobs that have - been requested to be deleted.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobDisableCompleteEvent","displayName":"Job - Disable Complete Events","displayDescription":"Total number of jobs that have - been successfully disabled.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobDisableStartEvent","displayName":"Job - Disable Start Events","displayDescription":"Total number of jobs that have - been requested to be disabled.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobStartEvent","displayName":"Job - Start Events","displayDescription":"Total number of jobs that have been successfully - started.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobTerminateCompleteEvent","displayName":"Job - Terminate Complete Events","displayDescription":"Total number of jobs that - have been successfully terminated.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false},{"name":"JobTerminateStartEvent","displayName":"Job - Terminate Start Events","displayDescription":"Total number of jobs that have - been requested to be terminated.","unit":"Count","aggregationType":"Total","fillGapWithZero":false,"availabilities":[{"timeGrain":"PT1M","blobDuration":"PT1H"}],"dimensions":[{"name":"jobId","displayName":"Job - ID","toBeExportedForShoebox":true}],"supportsInstanceLevelAggregation":false,"enableRegionalMdmAccount":false}]}}},{"name":"Microsoft.Batch/batchAccounts/jobs/read","display":{"provider":"Microsoft - Batch","resource":"Jobs","operation":"List or Get Jobs","description":"Lists - jobs on a Batch account or gets the properties of a job"},"isDataAction":true},{"name":"Microsoft.Batch/batchAccounts/jobs/write","display":{"provider":"Microsoft - Batch","resource":"Jobs","operation":"Create or Update Job","description":"Creates - a new job on a Batch account or updates an existing job"},"isDataAction":true},{"name":"Microsoft.Batch/batchAccounts/jobs/delete","display":{"provider":"Microsoft - Batch","resource":"Jobs","operation":"Delete Job","description":"Deletes a - job from a Batch account"},"isDataAction":true},{"name":"Microsoft.Batch/batchAccounts/jobSchedules/read","display":{"provider":"Microsoft - Batch","resource":"Job Schedules","operation":"List or Get Job Schedules","description":"Lists - job schedules on a Batch account or gets the properties of a job schedule"},"isDataAction":true},{"name":"Microsoft.Batch/batchAccounts/jobSchedules/write","display":{"provider":"Microsoft - Batch","resource":"Job Schedules","operation":"Create or Update Job Schedule","description":"Creates - a new job schedule on a Batch account or updates an existing job schedule"},"isDataAction":true},{"name":"Microsoft.Batch/batchAccounts/jobSchedules/delete","display":{"provider":"Microsoft - Batch","resource":"Job Schedules","operation":"Delete Job Schedule","description":"Deletes - a job schedule from a Batch account"},"isDataAction":true},{"name":"Microsoft.Batch/operations/read","display":{"provider":"Microsoft - Batch","resource":"Available Batch Operations","operation":"List Available - Batch Operations","description":"Lists operations available on Microsoft.Batch - resource provider"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/read","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"List or Get Batch Accounts","description":"Lists - Batch accounts or gets the properties of a Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/write","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Create or Update Batch Account","description":"Creates - a new Batch account or updates an existing Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/delete","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Delete Batch Account","description":"Deletes - a Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/listkeys/action","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"List Batch Account Keys","description":"Lists - access keys for a Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/regeneratekeys/action","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Regenerate Batch Account Keys","description":"Regenerates - access keys for a Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/locations/quotas/read","display":{"provider":"Microsoft - Batch","resource":"Batch Quotas","operation":"Get Batch Quotas","description":"Gets - Batch quotas of the specified subscription at the specified Azure region"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/locations/checkNameAvailability/action","display":{"provider":"Microsoft - Batch","resource":"Name Availability","operation":"Check Name Availability","description":"Checks - that the account name is valid and not in use."},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/operationResults/read","display":{"provider":"Microsoft - Batch","resource":"Batch Resource Provider","operation":"Get Batch account - operation results","description":"Gets the results of a long running Batch - account operation"},"isDataAction":false},{"name":"Microsoft.Batch/locations/accountOperationResults/read","display":{"provider":"Microsoft - Batch","resource":"Batch Resource Provider","operation":"Get Batch account - operation results","description":"Gets the results of a long running Batch - account operation"},"isDataAction":false},{"name":"Microsoft.Batch/register/action","display":{"provider":"Microsoft - Batch","resource":"Batch Resource Provider","operation":"Register the Batch - Resource Provider","description":"Registers the subscription for the Batch - Resource Provider and enables the creation of Batch accounts"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/unregister/action","display":{"provider":"Microsoft - Batch","resource":"Batch Resource Provider","operation":"Unregister the Batch - Resource Provider","description":"Unregisters the subscription for the Batch - Resource Provider preventing the creation of Batch accounts"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/syncAutoStorageKeys/action","display":{"provider":"Microsoft - Batch","resource":"Batch Accounts","operation":"Synchronize Auto Storage Account - Keys","description":"Synchronizes access keys for the auto storage account - configured for a Batch account"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/read","display":{"provider":"Microsoft - Batch","resource":"Applications","operation":"List or Get Applications","description":"Lists - applications or gets the properties of an application"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/write","display":{"provider":"Microsoft - Batch","resource":"Applications","operation":"Create or Update Application","description":"Creates - a new application or updates an existing application"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/delete","display":{"provider":"Microsoft - Batch","resource":"Applications","operation":"Delete Application","description":"Deletes - an application"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/versions/read","display":{"provider":"Microsoft - Batch","resource":"Application Packages","operation":"Get Application Package","description":"Gets - the properties of an application package"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/versions/write","display":{"provider":"Microsoft - Batch","resource":"Application Packages","operation":"Create or Update Application - Package","description":"Creates a new application package or updates an existing - application package"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/versions/delete","display":{"provider":"Microsoft - Batch","resource":"Application Packages","operation":"Delete Application Package","description":"Deletes - an application package"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/applications/versions/activate/action","display":{"provider":"Microsoft - Batch","resource":"Application Packages","operation":"Activate Application - Package","description":"Activates an application package"},"isDataAction":false,"origin":"user,system"},{"name":"Microsoft.Batch/batchAccounts/certificates/read","display":{"provider":"Microsoft - Batch","resource":"Certificates","operation":"List or Get Certificates","description":"Lists - certificates on a Batch account or gets the properties of a certificate"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/certificates/write","display":{"provider":"Microsoft - Batch","resource":"Certificates","operation":"Create or Update Certificate","description":"Creates - a new certificate on a Batch account or updates an existing certificate"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/certificates/delete","display":{"provider":"Microsoft - Batch","resource":"Certificates","operation":"Delete Certificate","description":"Deletes - a certificate from a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/certificates/cancelDelete/action","display":{"provider":"Microsoft - Batch","resource":"Certificates","operation":"Cancel Delete Certificate","description":"Cancels - the failed deletion of a certificate on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/certificateOperationResults/read","display":{"provider":"Microsoft - Batch","resource":"Certificates","operation":"Get Certificate Operation Results","description":"Gets - the results of a long running certificate operation on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/pools/read","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"List or Get Pools","description":"Lists - pools on a Batch account or gets the properties of a pool"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/pools/write","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"Create or Update Pool","description":"Creates - a new pool on a Batch account or updates an existing pool"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/pools/delete","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"Delete Pool","description":"Deletes - a pool from a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/pools/stopResize/action","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"Stop Pool Resize","description":"Stops - an ongoing resize operation on a Batch account pool"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/pools/disableAutoscale/action","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"Disable Pool AutoScale","description":"Disables - automatic scaling for a Batch account pool"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/poolOperationResults/read","display":{"provider":"Microsoft - Batch","resource":"Pools","operation":"Get Pool Operation Results","description":"Gets - the results of a long running pool operation on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/locations/virtualMachineSkus/read","display":{"provider":"Microsoft - Batch","resource":"Batch Supported Skus","operation":"List Supported Batch - Virtual Machine VM","description":"Lists available Batch supported Virtual - Machine VM sizes at the given location"},"isDataAction":false},{"name":"Microsoft.Batch/locations/cloudServiceSkus/read","display":{"provider":"Microsoft - Batch","resource":"Batch Supported Skus","operation":"List Supported Batch - Cloud Service VM","description":"Lists available Batch supported Cloud Service - VM sizes at the given location"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateLinkResources/read","display":{"provider":"Microsoft - Batch","resource":"PrivateLinkResources","operation":"Get or List Private - link resources","description":"Gets the properties of a Private link resource - or Lists Private link resources on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnections/write","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnections","operation":"Update Private - endpoint connection","description":"Update an existing Private endpoint connection - on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnections/read","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnections","operation":"Get or List Private - endpoint connection","description":"Gets Private endpoint connection or Lists - Private endpoint connections on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionResults/read","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnections","operation":"Get Batch account - private endpoint connection operation results","description":"Gets the results - of a long running Batch account private endpoint connection operation"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/validate/action","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnectionProxies","operation":"Validates - a Private endpoint connection proxy","description":"Validates a Private endpoint - connection proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/write","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnectionProxies","operation":"Create or - Update Private endpoint connection proxy","description":"Create a new Private - endpoint connection proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/read","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnectionProxies","operation":"Get Private - endpoint connection proxy","description":"Gets Private endpoint connection - proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxies/delete","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnectionProxies","operation":"Delete Private - endpoint connection proxy","description":"Delete a Private endpoint connection - proxy on a Batch account"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnectionProxyResults/read","display":{"provider":"Microsoft - Batch","resource":"PrivateEndpointConnectionProxies","operation":"Get Batch - account private endpoint connection proxy operation results","description":"Gets - the results of a long running Batch account private endpoint connection proxy - operation"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/outboundNetworkDependenciesEndpoints/read","display":{"provider":"Microsoft - Batch","resource":"Outbound Network Dependencies Endpoints","operation":"List - Outbound Network Dependency Endpoints","description":"Lists the outbound network - dependency endpoints for a Batch account"},"isDataAction":false,"origin":"user,system"}]}' - headers: - cache-control: - - no-cache - content-length: - - '28194' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml deleted file mode 100644 index a1012999a6a8..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml +++ /dev/null @@ -1,341 +0,0 @@ -interactions: -- request: - body: '{"properties": {"displayName": "test_pool", "vmSize": "small", "deploymentConfiguration": - {"cloudServiceConfiguration": {"osFamily": "5"}}, "scaleSettings": {"fixedScale": - {"targetDedicatedNodes": 0, "targetLowPriorityNodes": 0}}, "userAccounts": [{"name": - "UserName", "password": "p@55wOrd"}], "startTask": {"commandLine": "cmd.exe - /c \"echo hello world\"", "resourceFiles": [{"httpUrl": "https://blobsource.com", - "filePath": "filename.txt"}], "environmentSettings": [{"name": "ENV_VAR", "value": - "env_value"}], "userIdentity": {"autoUser": {"elevationLevel": "Admin"}}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '573' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970416A79C2\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.2297666Z","creationTime":"2021-07-17T22:14:33.2297666Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.2297666Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.2297666Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.2297666Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' - headers: - cache-control: - - no-cache - content-length: - - '1593' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:33 GMT - etag: - - W/"0x8D94970416A79C2" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:14:33 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1194' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"displayName": "test_pool", "vmSize": "Standard_A1", "deploymentConfiguration": - {"virtualMachineConfiguration": {"imageReference": {"publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", "sku": "2016-Datacenter-smalldisk"}, "nodeAgentSkuId": - "batch.node.windows amd64", "windowsConfiguration": {"enableAutomaticUpdates": - true}}}, "scaleSettings": {"fixedScale": {"targetDedicatedNodes": 0, "targetLowPriorityNodes": - 0}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PUT - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970419381F9\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.4986745Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.4986745Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' - headers: - cache-control: - - no-cache - content-length: - - '1362' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:33 GMT - etag: - - W/"0x8D94970419381F9" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:14:33 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1193' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970419381F9\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.4986745Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.4986745Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970416A79C2\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.2297666Z","creationTime":"2021-07-17T22:14:33.2297666Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.2297666Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.2297666Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.2297666Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2968' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"scaleSettings": {"autoScale": {"formula": "$TargetDedicatedNodes=0"}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '88' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: PATCH - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D949704AC35F51\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:48.9118545Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:48.9118545Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-07-17T22:14:48.9118545Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' - headers: - cache-control: - - no-cache - content-length: - - '1356' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:48 GMT - etag: - - W/"0x8D949704AC35F51" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:14:48 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1192' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D949704AC35F51\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:48.9118545Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Steady","allocationStateTransitionTime":"2021-07-17T22:14:49.0845641Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-07-17T22:14:48.9118545Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' - headers: - cache-control: - - no-cache - content-length: - - '1507' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:14:48 GMT - etag: - - W/"0x8D949704AC35F51" - expires: - - '-1' - last-modified: - - Sat, 17 Jul 2021 22:14:48 GMT - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: DELETE - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:14:49 GMT - expires: - - '-1' - location: - - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Sat, 17 Jul 2021 22:15:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml deleted file mode 100644 index 883d8391a8cc..000000000000 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml +++ /dev/null @@ -1,44 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) - method: GET - uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/quotas?api-version=2021-06-01 - response: - body: - string: '{"accountQuota":1000}' - headers: - cache-control: - - no-cache - content-length: - - '21' - content-type: - - application/json; charset=utf-8 - date: - - Sat, 17 Jul 2021 22:20:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py index 64a66f5aa55b..0258cf97010b 100644 --- a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py +++ b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py @@ -13,8 +13,10 @@ import time import unittest +import pytest import requests import six +import os import azure.mgmt.batch from azure.mgmt.batch import models @@ -23,7 +25,7 @@ from azure_devtools.scenario_tests.recording_processors import GeneralNameReplacer, RecordingProcessor from devtools_testutils import ( - AzureMgmtTestCase, + AzureMgmtRecordedTestCase, recorded_by_proxy, ResourceGroupPreparer, StorageAccountPreparer ) @@ -33,7 +35,7 @@ AZURE_ARM_ENDPOINT = "https://centraluseuap.management.azure.com" AZURE_LOCATION = 'eastus' EXISTING_BATCH_ACCOUNT = {'name': 'dawatroupp2acct', 'location': 'eastus'} -EXPECTED_ACCOUNT_QUOTA = 1000 +EXPECTED_ACCOUNT_QUOTA = 3 EXPECTED_DEDICATED_CORE_QUOTA = 500 EXPECTED_LOW_PRIO_CORE_QUOTA = 500 EXPECTED_POOL_QUOTA = 100 @@ -64,15 +66,11 @@ def process_response(self, response): return response -class MgmtBatchTest(AzureMgmtTestCase): +class TestMgmtBatch(AzureMgmtRecordedTestCase): + scrubber = GeneralNameReplacer() + redactor = RecordingRedactor() - def __init__(self, *args, **kwargs): - scrubber = GeneralNameReplacer() - redactor = RecordingRedactor() - super(MgmtBatchTest, self).__init__(*args, recording_processors=[redactor, scrubber], **kwargs) - - def setUp(self): - super(MgmtBatchTest, self).setUp() + def setup_method(self, method): self.mgmt_batch_client = self.create_mgmt_client( azure.mgmt.batch.BatchManagementClient, base_url=AZURE_ARM_ENDPOINT) @@ -84,20 +82,23 @@ def setUp(self): def _get_account_name(self): return self.get_resource_name('batch')[-24:] + @recorded_by_proxy def test_mgmt_batch_list_operations(self): operations = self.mgmt_batch_client.operations.list() all_ops = list(operations) - self.assertEqual(len(all_ops), 53) - self.assertEqual(all_ops[0].name, 'Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read') - self.assertEqual(all_ops[0].origin, 'system') - self.assertEqual(all_ops[0].display.provider, 'Microsoft Batch') - self.assertEqual(all_ops[0].display.operation, 'Read diagnostic setting') + assert len(all_ops) == 53 + assert all_ops[0].name == 'Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read' + assert all_ops[0].origin == 'system' + assert all_ops[0].display.provider == 'Microsoft Batch' + assert all_ops[0].display.operation == 'Read diagnostic setting' + @recorded_by_proxy def test_mgmt_batch_subscription_quota(self): quotas = self.mgmt_batch_client.location.get_quotas(AZURE_LOCATION) - self.assertIsInstance(quotas, models.BatchLocationQuota) - self.assertEqual(quotas.account_quota, EXPECTED_ACCOUNT_QUOTA) + assert isinstance(quotas, models.BatchLocationQuota) + assert quotas.account_quota == EXPECTED_ACCOUNT_QUOTA + @recorded_by_proxy def test_mgmt_batch_account_name(self): # Test Invalid Account Name availability = self.mgmt_batch_client.location.check_name_availability( @@ -106,9 +107,9 @@ def test_mgmt_batch_account_name(self): "name": "randombatchaccount@5^$g9873495873" } ) - self.assertIsInstance(availability, models.CheckNameAvailabilityResult) - self.assertFalse(availability.name_available) - self.assertEqual(availability.reason, models.NameAvailabilityReason.invalid) + assert isinstance(availability, models.CheckNameAvailabilityResult) + assert availability.name_available == False + assert availability.reason == models.NameAvailabilityReason.invalid # Test Unvailable Account Name availability = self.mgmt_batch_client.location.check_name_availability( @@ -117,9 +118,9 @@ def test_mgmt_batch_account_name(self): "name": EXISTING_BATCH_ACCOUNT['name'] } ) - self.assertIsInstance(availability, models.CheckNameAvailabilityResult) - self.assertFalse(availability.name_available) - self.assertEqual(availability.reason, models.NameAvailabilityReason.already_exists) + assert isinstance(availability, models.CheckNameAvailabilityResult) + assert not availability.name_available + assert availability.reason == models.NameAvailabilityReason.already_exists # Test Available Account Name availability = self.mgmt_batch_client.location.check_name_availability( @@ -128,18 +129,19 @@ def test_mgmt_batch_account_name(self): "name": self._get_account_name() } ) - self.assertIsInstance(availability, models.CheckNameAvailabilityResult) - self.assertTrue(availability.name_available) + assert isinstance(availability, models.CheckNameAvailabilityResult) + assert availability.name_available # @KeyVaultPreparer(location=AZURE_LOCATION) @ResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy def test_mgmt_batch_byos_account(self, resource_group, location): # if self.is_live: # keyvault = keyvault.result() batch_account = models.BatchAccountCreateParameters( location=location, pool_allocation_mode=models.PoolAllocationMode.user_subscription) - with self.assertRaises(Exception): # TODO: What exception + with pytest.raises(Exception): # TODO: What exception creating = self.mgmt_batch_client.batch_account.begin_create( resource_group.name, self._get_account_name(), @@ -147,7 +149,7 @@ def test_mgmt_batch_byos_account(self, resource_group, location): creating.result() # keyvault_id = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.KeyVault/vaults/{}".format( - # self.settings.SUBSCRIPTION_ID, resource_group.name, keyvault.name) + # self.get_settings_value("SUBSCRIPTION_ID"), resource_group.name, keyvault.name) # keyvault_url = "https://{}.vault.azure.net/".format(keyvault.name) # batch_account = models.BatchAccountCreateParameters( # location=location, @@ -160,6 +162,7 @@ def test_mgmt_batch_byos_account(self, resource_group, location): # creating.result() @ResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy def test_mgmt_batch_account(self, resource_group, location): batch_account = models.BatchAccountCreateParameters( location=location, @@ -173,19 +176,19 @@ def test_mgmt_batch_account(self, resource_group, location): # Test Get Account account = self.mgmt_batch_client.batch_account.get(resource_group.name, account_name) - self.assertEqual(account.dedicated_core_quota, EXPECTED_DEDICATED_CORE_QUOTA) - self.assertEqual(account.low_priority_core_quota, EXPECTED_LOW_PRIO_CORE_QUOTA) - self.assertEqual(account.pool_quota, EXPECTED_POOL_QUOTA) - self.assertEqual(account.pool_allocation_mode, 'BatchService') + assert account.dedicated_core_quota == EXPECTED_DEDICATED_CORE_QUOTA + assert account.low_priority_core_quota == EXPECTED_LOW_PRIO_CORE_QUOTA + assert account.pool_quota == EXPECTED_POOL_QUOTA + assert account.pool_allocation_mode == 'BatchService' # Test List Accounts by Resource Group accounts = self.mgmt_batch_client.batch_account.list_by_resource_group(resource_group.name) - self.assertEqual(len(list(accounts)), 1) + assert len(list(accounts)) == 1 # Test List Account Keys keys = self.mgmt_batch_client.batch_account.get_keys(resource_group.name, account_name) - self.assertIsInstance(keys, models.BatchAccountKeys) - self.assertEqual(keys.account_name, account_name) + assert isinstance(keys, models.BatchAccountKeys) + assert keys.account_name == account_name secondary = keys.secondary # Test Regenerate Account Key @@ -196,26 +199,28 @@ def test_mgmt_batch_account(self, resource_group, location): "key_name": 'Secondary' } ) - self.assertIsInstance(keys, models.BatchAccountKeys) - self.assertFalse(keys.secondary == secondary) + assert isinstance(keys, models.BatchAccountKeys) + assert not keys.secondary == secondary # Test Update Account update_tags = {'Name': 'tagName', 'Value': 'tagValue'} updated = self.mgmt_batch_client.batch_account.update(resource_group.name, account_name, models.BatchAccountUpdateParameters(tags=update_tags)) - self.assertIsInstance(updated, models.BatchAccount) - self.assertEqual(updated.tags['Name'], 'tagName') - self.assertEqual(updated.tags['Value'], 'tagValue') + assert isinstance(updated, models.BatchAccount) + assert updated.tags['Name'] == 'tagName' + assert updated.tags['Value'] == 'tagValue' # Test Delete Account response = self.mgmt_batch_client.batch_account.begin_delete(resource_group.name, account_name) - self.assertIsNone(response.result()) + assert response.result() is None + @pytest.mark.skipif(os.getenv('AZURE_TEST_RUN_LIVE') not in ('yes', 'true'), reason='only run live test') @ResourceGroupPreparer(location=AZURE_LOCATION) @StorageAccountPreparer(name_prefix='batch', location=AZURE_LOCATION) + @recorded_by_proxy def test_mgmt_batch_applications(self, resource_group, location, storage_account, storage_account_key): # Test Create Account with Auto-Storage storage_resource = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}'.format( - self.settings.SUBSCRIPTION_ID, + self.get_settings_value("SUBSCRIPTION_ID"), resource_group.name, storage_account.name ) @@ -224,7 +229,7 @@ def test_mgmt_batch_applications(self, resource_group, location, storage_account auto_storage=models.AutoStorageBaseProperties(storage_account_id=storage_resource) ) # account_name = self._get_account_name() - account_name = "batch" + account_name = "batch11" account_setup = self.mgmt_batch_client.batch_account.begin_create( resource_group.name, account_name, @@ -234,7 +239,7 @@ def test_mgmt_batch_applications(self, resource_group, location, storage_account # Test Sync AutoStorage Keys response = self.mgmt_batch_client.batch_account.synchronize_auto_storage_keys( resource_group.name, account_name) - self.assertIsNone(response) + assert response is None # Test Add Application application_id = 'my_application_id' @@ -243,26 +248,26 @@ def test_mgmt_batch_applications(self, resource_group, location, storage_account application_properties = models.Application(display_name=application_name, allow_updates=True) application = self.mgmt_batch_client.application.create( resource_group.name, account_name, application_id, parameters=application_properties) - self.assertIsInstance(application, models.Application) - self.assertTrue(application_id in application.id) - self.assertTrue(application_name in application.display_name) - self.assertTrue(application.allow_updates) + assert isinstance(application, models.Application) + assert application_id in application.id + assert application_name in application.display_name + assert application.allow_updates # Test Mgmt Get Application application = self.mgmt_batch_client.application.get(resource_group.name, account_name, application_id) - self.assertIsInstance(application, models.Application) - self.assertTrue(application_id in application.id) - self.assertTrue(application_name in application.display_name) - self.assertTrue(application.allow_updates) + assert isinstance(application, models.Application) + assert application_id in application.id + assert application_name in application.display_name + assert application.allow_updates # Test Mgmt List Applications applications = self.mgmt_batch_client.application.list(resource_group.name, account_name) - self.assertTrue(len(list(applications)) > 0) + assert len(list(applications)) > 0 # Test Add Application Package package_ref = self.mgmt_batch_client.application_package.create( resource_group.name, account_name, application_id, application_ver) - self.assertIsInstance(package_ref, models.ApplicationPackage) + assert isinstance(package_ref, models.ApplicationPackage) with io.BytesIO(b'Hello World') as f: headers = {'x-ms-blob-type': 'BlockBlob'} upload = requests.put(package_ref.storage_url, headers=headers, data=f.read()) @@ -279,7 +284,7 @@ def test_mgmt_batch_applications(self, resource_group, location, storage_account "format": 'zip' } ) - self.assertTrue(response.state == models.PackageState.active) + assert response.state == models.PackageState.active # Test Update Application params = models.Application( @@ -289,34 +294,36 @@ def test_mgmt_batch_applications(self, resource_group, location, storage_account ) response = self.mgmt_batch_client.application.update( resource_group.name, account_name, application_id, params) - self.assertTrue(application_ver in response.default_version) - self.assertTrue('my_updated_name' in response.display_name) - self.assertFalse(response.allow_updates) + assert application_ver in response.default_version + assert 'my_updated_name' in response.display_name + assert not response.allow_updates # Test Get Application Package package_ref = self.mgmt_batch_client.application_package.get( resource_group.name, account_name, application_id, application_ver) - self.assertIsInstance(package_ref, models.ApplicationPackage) - self.assertTrue(application_id in package_ref.id) - self.assertEqual(package_ref.format, 'zip') - self.assertEqual(package_ref.state, models.PackageState.active) + assert isinstance(package_ref, models.ApplicationPackage) + assert application_id in package_ref.id + assert package_ref.format == 'zip' + assert package_ref.state == models.PackageState.active # Test Delete Application Package response = self.mgmt_batch_client.application_package.delete( resource_group.name, account_name, application_id, application_ver) - self.assertIsNone(response) + assert response is None # Test Delete Application response = self.mgmt_batch_client.application.delete( resource_group.name, account_name, application_id) - self.assertIsNone(response) + assert response is None # Test Delete Account response = self.mgmt_batch_client.batch_account.begin_delete(resource_group.name, account_name) - self.assertIsNone(response.result()) + assert response.result() is None + @pytest.mark.skipif(os.getenv('AZURE_TEST_RUN_LIVE') not in ('yes', 'true'), reason='only run live test') @ResourceGroupPreparer(location=AZURE_LOCATION) @SimpleBatchPreparer(location=AZURE_LOCATION) + @recorded_by_proxy def test_mgmt_batch_certificates(self, resource_group, location, batch_account): # Test Add Certificate parameters = models.CertificateCreateOrUpdateParameters( @@ -328,37 +335,39 @@ def test_mgmt_batch_certificates(self, resource_group, location, batch_account): certificate = 'SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7' response = self.mgmt_batch_client.certificate.create(resource_group.name, batch_account.name, certificate, parameters) - self.assertIsInstance(response, models.Certificate) + assert isinstance(response, models.Certificate) # Test List Certificates certs = self.mgmt_batch_client.certificate.list_by_batch_account(resource_group.name, batch_account.name) - self.assertEqual(len(list(certs)), 1) + assert len(list(certs)) == 1 # Test Get Certificate cert = self.mgmt_batch_client.certificate.get(resource_group.name, batch_account.name, certificate) - self.assertIsInstance(cert, models.Certificate) - self.assertEqual(cert.thumbprint.lower(), 'cff2ab63c8c955aaf71989efa641b906558d9fb7') - self.assertEqual(cert.thumbprint_algorithm, 'sha1') - self.assertIsNone(cert.delete_certificate_error) + assert isinstance(cert, models.Certificate) + assert cert.thumbprint.lower() == 'cff2ab63c8c955aaf71989efa641b906558d9fb7' + assert cert.thumbprint_algorithm == 'sha1' + assert cert.delete_certificate_error is None # Test Update Certiciate parameters = models.CertificateCreateOrUpdateParameters( password='nodesdk', data='MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ+q9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g+6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj+hq0lKEdnhtCKr03AIfukN6+4vjjarZeW1bs0swq0l3XFf5RHa11otshMS4mpewshB9iO9MuKWpRxuxeng4PlKZ/zuBqmPeUrjJ9454oK35Pq+dghfemt7AUpBH/KycDNIZgfdEWUZrRKBGnc519C+RTqxyt5hWL18nJk4LvSd3QKlJ1iyJxClhhb/NWEzPqNdyA5cxen+2T9bd/EqJ2KzRv5/BPVwTQkHH9W/TZElFyvFfOFIW2+03RKbVGw72Mr/0xKZ+awAnEfoU+SL/2Gj2m6PHkqFX2sOCi/tN9EA4xgdswEwYJKoZIhvcNAQkVMQYEBAEAAAAwXQYJKwYBBAGCNxEBMVAeTgBNAGkAYwByAG8AcwBvAGYAdAAgAFMAdAByAG8AbgBnACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcjBlBgkqhkiG9w0BCRQxWB5WAFAAdgBrAFQAbQBwADoANABjAGUANgAwADQAZABhAC0AMAA2ADgAMQAtADQANAAxADUALQBhADIAYwBhAC0ANQA3ADcAMwAwADgAZQA2AGQAOQBhAGMwggIOBgkqhkiG9w0BBwGgggH/BIIB+zCCAfcwggHzBgsqhkiG9w0BDAoBA6CCAcswggHHBgoqhkiG9w0BCRYBoIIBtwSCAbMwggGvMIIBXaADAgECAhAdka3aTQsIsUphgIXGUmeRMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTYwMTAxMDcwMDAwWhcNMTgwMTAxMDcwMDAwWjASMRAwDgYDVQQDEwdub2Rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m+rBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z+OeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=',) response = self.mgmt_batch_client.certificate.update(resource_group.name, batch_account.name, certificate, parameters) - self.assertIsInstance(response, models.Certificate) + assert isinstance(response, models.Certificate) # Test Cancel Certificate Delete - #with self.assertRaises(models.DeleteCertificateError): + #with pytest.raises(models.DeleteCertificateError): self.mgmt_batch_client.certificate.cancel_deletion( resource_group.name, batch_account.name, certificate) # Test Delete Certificate response = self.mgmt_batch_client.certificate.begin_delete(resource_group.name, batch_account.name, certificate) - self.assertIsNone(response.result()) + assert response.result() is None + @pytest.mark.skipif(os.getenv('AZURE_TEST_RUN_LIVE') not in ('yes', 'true'), reason='only run live test') @ResourceGroupPreparer(location=AZURE_LOCATION) @SimpleBatchPreparer(location=AZURE_LOCATION) + @recorded_by_proxy def test_mgmt_batch_pools(self, resource_group, location, batch_account): # Test create PAAS pool paas_pool = "test_paas_pool" @@ -388,7 +397,7 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): ) response = self.mgmt_batch_client.pool.create( resource_group.name, batch_account.name, paas_pool, parameters) - self.assertIsInstance(response, models.Pool) + assert isinstance(response, models.Pool) # Test create IAAS pool iaas_pool = "test_iaas_pool" @@ -416,11 +425,11 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): response = self.mgmt_batch_client.pool.create( resource_group.name, batch_account.name, iaas_pool, parameters) - self.assertIsInstance(response, models.Pool) + assert isinstance(response, models.Pool) # Test list pools pools = self.mgmt_batch_client.pool.list_by_batch_account(resource_group.name, batch_account.name) - self.assertEqual(len(list(pools)), 2) + assert len(list(pools)) == 2 # Test Update pool parameters = models.Pool( @@ -435,49 +444,49 @@ def test_mgmt_batch_pools(self, resource_group, location, batch_account): time.sleep(15) response = self.mgmt_batch_client.pool.update( resource_group.name, batch_account.name, iaas_pool, parameters) - self.assertIsInstance(response, models.Pool) + assert isinstance(response, models.Pool) # Test Get pool pool = self.mgmt_batch_client.pool.get( resource_group.name, batch_account.name, iaas_pool) - self.assertIsInstance(pool, models.Pool) - self.assertEqual(pool.vm_size, 'STANDARD_A1'), - self.assertIsNotNone(pool.display_name), + assert isinstance(pool, models.Pool) + assert pool.vm_size == 'STANDARD_A1' + assert pool.display_name is not None # This assert should be reintroduced when targetDedidicated nodes can be 1+ - # self.assertEqual(pool.allocation_state, models.AllocationState.resizing) - self.assertEqual( - pool.deployment_configuration.virtual_machine_configuration.node_agent_sku_id, - 'batch.node.windows amd64') + # assert pool.allocation_state == models.AllocationState.resizing + assert pool.deployment_configuration.virtual_machine_configuration.node_agent_sku_id == 'batch.node.windows amd64' # Test stop resizing - # with self.assertRaises(CloudError): + # with pytest.raises(CloudError): # self.mgmt_batch_client.pool.stop_resize(resource_group.name, batch_account.name, iaas_pool) # if self.is_live: # time.sleep(300) # # Test disable auto-scale # response = self.mgmt_batch_client.pool.disable_auto_scale( # resource_group.name, batch_account.name, iaas_pool) - # self.assertIsInstance(response, models.Pool) + # assert isinstance(response, models.Pool) # Test delete pool response = self.mgmt_batch_client.pool.begin_delete( resource_group.name, batch_account.name, iaas_pool) - self.assertIsNone(response.result()) + assert response.result() is None + @pytest.mark.skipif(os.getenv('AZURE_TEST_RUN_LIVE') not in ('yes', 'true'), reason='only run live test') @ResourceGroupPreparer(location=AZURE_LOCATION, random_name_enabled=True) + @recorded_by_proxy def test_mgmt_batch_account_advanced(self, resource_group, location): batch_account_name = self.get_resource_name('batchpendpoint') vnet_name = self.get_resource_name('vnet') subnet_name = self.get_resource_name('subnet') subnet_id = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworks/{}/subnets/{}".format( - self.settings.SUBSCRIPTION_ID, + self.get_settings_value("SUBSCRIPTION_ID"), resource_group.name, vnet_name, subnet_name) private_endpoint_name = self.get_resource_name('pe') private_connection_name = self.get_resource_name('pec') private_link_service_id = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Batch/batchAccounts/{}'.format( - self.settings.SUBSCRIPTION_ID, + self.get_settings_value("SUBSCRIPTION_ID"), resource_group.name, batch_account_name) batch_account = models.BatchAccountCreateParameters( diff --git a/sdk/batch/ci.yml b/sdk/batch/ci.yml index cd60b07f48db..ee0119ec491a 100644 --- a/sdk/batch/ci.yml +++ b/sdk/batch/ci.yml @@ -27,6 +27,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: batch + TestProxy: true Artifacts: - name: azure-mgmt-batch safeName: azuremgmtbatch