diff --git a/src/azure-cli-core/azure/cli/core/commands/client_factory.py b/src/azure-cli-core/azure/cli/core/commands/client_factory.py
index 0906a2ca4e4..9c3d61a39e5 100644
--- a/src/azure-cli-core/azure/cli/core/commands/client_factory.py
+++ b/src/azure-cli-core/azure/cli/core/commands/client_factory.py
@@ -6,7 +6,7 @@
from azure.cli.core import _debug
from azure.cli.core.auth.util import resource_to_scopes
from azure.cli.core.extension import EXTENSIONS_MOD_PREFIX
-from azure.cli.core.profiles import ResourceType, CustomResourceType, get_api_version, get_sdk
+from azure.cli.core.profiles import ResourceType, CustomResourceType, get_api_version
from azure.cli.core.profiles._shared import get_client_class, SDKProfile
from azure.cli.core.util import get_az_user_agent, is_track2
from knack.log import get_logger
@@ -275,8 +275,8 @@ def get_data_service_client(cli_ctx, service_type, account_name, account_key, co
if location_mode:
client.location_mode = location_mode
except ValueError as exc:
- _ERROR_STORAGE_MISSING_INFO = get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
- 'common._error#_ERROR_STORAGE_MISSING_INFO')
+ _ERROR_STORAGE_MISSING_INFO = ('You need to provide an account name and either an account_key or sas_token '
+ 'when creating a storage service.')
if _ERROR_STORAGE_MISSING_INFO in str(exc):
raise ValueError(exc)
raise CLIError('Unable to obtain data client. Check your connection parameters.')
diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py
index 840b8af37cb..1356d7b6038 100644
--- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py
+++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py
@@ -89,7 +89,6 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
# can be provided with "ResourceType.XXX" to initialize the client object. This usually happens
# when related commands start to support Multi-API
- DATA_COSMOS_TABLE = ('azure.multiapi.cosmosdb', None)
MGMT_ADVISOR = ('azure.mgmt.advisor', None)
MGMT_MEDIA = ('azure.mgmt.media', None)
MGMT_BACKUP = ('azure.mgmt.recoveryservicesbackup', None)
@@ -116,7 +115,6 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_SQLVM = ('azure.mgmt.sqlvirtualmachine', None)
MGMT_MANAGEDSERVICES = ('azure.mgmt.managedservices', None)
MGMT_NETAPPFILES = ('azure.mgmt.netappfiles', None)
- DATA_STORAGE = ('azure.multiapi.storage', None)
DATA_STORAGE_BLOB = ('azure.multiapi.storagev2.blob', None)
DATA_STORAGE_FILEDATALAKE = ('azure.multiapi.storagev2.filedatalake', None)
DATA_STORAGE_FILESHARE = ('azure.multiapi.storagev2.fileshare', None)
@@ -206,12 +204,10 @@ def default_api_version(self):
ResourceType.DATA_KEYVAULT_ADMINISTRATION_SETTING: None,
ResourceType.DATA_KEYVAULT_ADMINISTRATION_BACKUP: '7.5-preview.1',
ResourceType.DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL: '7.4',
- ResourceType.DATA_STORAGE: '2018-11-09',
ResourceType.DATA_STORAGE_BLOB: '2022-11-02',
ResourceType.DATA_STORAGE_FILEDATALAKE: '2021-08-06',
ResourceType.DATA_STORAGE_FILESHARE: '2025-05-05',
ResourceType.DATA_STORAGE_QUEUE: '2018-03-28',
- ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
ResourceType.DATA_STORAGE_TABLE: None,
ResourceType.MGMT_SERVICEBUS: None,
ResourceType.MGMT_EVENTHUB: None,
diff --git a/src/azure-cli/azure/cli/command_modules/acr/_stream_utils.py b/src/azure-cli/azure/cli/command_modules/acr/_stream_utils.py
index c847c6a3ba7..299135f35cf 100644
--- a/src/azure-cli/azure/cli/command_modules/acr/_stream_utils.py
+++ b/src/azure-cli/azure/cli/command_modules/acr/_stream_utils.py
@@ -12,7 +12,6 @@
from azure.core.exceptions import HttpResponseError
from azure.common import AzureHttpError
from azure.cli.core.profiles import ResourceType, get_sdk
-from ._azure_utils import get_blob_info
from ._constants import ACR_RUN_DEFAULT_TIMEOUT_IN_SEC
logger = get_logger(__name__)
@@ -50,20 +49,14 @@ def stream_logs(cmd, client,
raise CLIError(error_msg)
if not artifact:
- account_name, endpoint_suffix, container_name, blob_name, sas_token = get_blob_info(
- log_file_sas)
- AppendBlobService = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE, 'blob#AppendBlobService')
+ BlobClient = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE_BLOB, '_blob_client#BlobClient')
+ blob_client = BlobClient.from_blob_url(log_file_sas)
if not timeout:
timeout = ACR_RUN_DEFAULT_TIMEOUT_IN_SEC
_stream_logs(no_format,
DEFAULT_CHUNK_SIZE,
timeout,
- AppendBlobService(
- account_name=account_name,
- sas_token=sas_token,
- endpoint_suffix=endpoint_suffix),
- container_name,
- blob_name,
+ blob_client,
raise_error_on_failure)
else:
_stream_artifact_logs(log_file_sas,
@@ -74,8 +67,6 @@ def _stream_logs(no_format, # pylint: disable=too-many-locals, too-many-stateme
byte_size,
timeout_in_seconds,
blob_service,
- container_name,
- blob_name,
raise_error_on_failure):
if not no_format:
@@ -85,7 +76,6 @@ def _stream_logs(no_format, # pylint: disable=too-many-locals, too-many-stateme
stream = BytesIO()
metadata = {}
start = 0
- end = byte_size - 1
available = 0
sleep_time = 1
max_sleep_time = 15
@@ -97,14 +87,12 @@ def _stream_logs(no_format, # pylint: disable=too-many-locals, too-many-stateme
# If the storage call fails, we'll just sleep and try again after.
try:
# Need to call "exists" API to prevent storage SDK logging BlobNotFound error
- log_exist = blob_service.exists(
- container_name=container_name, blob_name=blob_name)
+ log_exist = blob_service.exists()
if log_exist:
- props = blob_service.get_blob_properties(
- container_name=container_name, blob_name=blob_name)
+ props = blob_service.get_blob_properties()
metadata = props.metadata
- available = props.properties.content_length
+ available = props.size
else:
# Wait a little bit before checking the existence again
time.sleep(1)
@@ -120,18 +108,13 @@ def _stream_logs(no_format, # pylint: disable=too-many-locals, too-many-stateme
try:
old_byte_size = len(stream.getvalue())
- blob_service.get_blob_to_stream(
- container_name=container_name,
- blob_name=blob_name,
- start_range=start,
- end_range=end,
- stream=stream)
+ downloader = blob_service.download_blob(offset=start, length=byte_size, max_concurrency=1)
+ downloader.readinto(stream)
curr_bytes = stream.getvalue()
new_byte_size = len(curr_bytes)
amount_read = new_byte_size - old_byte_size
start += amount_read
- end = start + byte_size - 1
# Only scan what's newly read. If nothing is read, default to 0.
min_scan_range = max(new_byte_size - amount_read - 1, 0)
@@ -153,13 +136,11 @@ def _stream_logs(no_format, # pylint: disable=too-many-locals, too-many-stateme
try:
if log_exist:
- props = blob_service.get_blob_properties(
- container_name=container_name, blob_name=blob_name)
+ props = blob_service.get_blob_properties()
metadata = props.metadata
- available = props.properties.content_length
+ available = props.size
else:
- log_exist = blob_service.exists(
- container_name=container_name, blob_name=blob_name)
+ log_exist = blob_service.exists()
except AzureHttpError as ae:
if ae.status_code != 404:
raise CLIError(ae)
diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_build.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_build.yaml
index 8a8ff13d5fd..8de1252f7c8 100644
--- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_build.yaml
+++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_build.yaml
@@ -11,26 +11,26 @@ interactions:
Connection:
- keep-alive
User-Agent:
- - python/3.10.11 (Windows-10-10.0.26100-SP0) AZURECLI/2.72.0
+ - python/3.12.10 (Windows-10-10.0.19045-SP0) AZURECLI/2.74.0
method: GET
uri: https://graph.microsoft.com/v1.0/me
response:
body:
- string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":[],"displayName":"Jingsong
- Zhang (WICRESOFT NORTH AMERICA LTD)","givenName":null,"jobTitle":null,"mail":"test@example.com","mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":null,"userPrincipalName":"test@example.com#EXT#@AzureSDKTeam.onmicrosoft.com","id":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2"}'
+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":[],"displayName":"Zhiyi
+ Huang","givenName":null,"jobTitle":null,"mail":"test@example.com","mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":null,"userPrincipalName":"test@example.com#EXT#@azclitoolstest.onmicrosoft.com","id":"cf65b850-7325-4f89-a4a7-83b1a6daff5a"}'
headers:
cache-control:
- no-cache
content-length:
- - '415'
+ - '384'
content-type:
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
date:
- - Fri, 16 May 2025 03:06:01 GMT
+ - Sun, 15 Jun 2025 15:13:37 GMT
odata-version:
- '4.0'
request-id:
- - df2e2c1c-5f7d-4038-adfe-ffdc4368214a
+ - f1037e9c-a41f-4c38-8b5f-94e45f524c0d
strict-transport-security:
- max-age=31536000
transfer-encoding:
@@ -38,7 +38,7 @@ interactions:
vary:
- Accept-Encoding
x-ms-ags-diagnostic:
- - '{"ServerInfo":{"DataCenter":"Japan East","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"TY1PEPF0000C0E4"}}'
+ - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"SI1PEPF00026BA0"}}'
x-ms-resource-unit:
- '1'
status:
@@ -63,43 +63,41 @@ interactions:
ParameterSetName:
- -n -g -l --sku --role-assignment-mode
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Creating","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Creating","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-b1d9abca-3202-11f0-a1ab-644ed7a2823f?api-version=2025-03-01-preview&t=638829615707942515&c=MIIHpTCCBo2gAwIBAgITOgWXBJzHWActAOyA9gAEBZcEnDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwNDE4MDkxNjUyWhcNMjUxMDE1MDkxNjUyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4tFzYjQAGXlMN4RVSj_Zp98bnnigeY99sbhZrAOQOjxR_04cAp0TrBwLXaA2b6MkNp3EWrqmwj8LAHlmiUmx_C5YeMG8WQUVkZMbfJNmAjSKJvmH2VO_H9OVOiiWemCFWlBXZMT6O1LsK-KI4EQtlTwXEv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ZB2N9XRyPrc6QNSQ8BKgo9zRrw0k3gNHOJ9RMlZjN6t3HOamSHQMdbN2pFZ-yHiS7tvC2EZF3KueAuZaEqZM_Z2FxJmTvOaZUDeWUf-Jknlni-UnaoNqB8uw0IqDg25TQt1Fvo4D3N5qvi_eCxHNa_Xzch3xm9JIFuDIMK5Cs-bYF0-nS6z7Pgfc9XnvcAShA-M3M3iNHUISkieGhIEix9Oo6jF0CqFOg-7gFq33p_bfMcf_NoYwkw3Gt5piP4RVcI3z68lYFgvxiO5wuPRXBq6OA8JFS4t9ReAi0lBO441c0qJRKYRcvXu-M3kf_G2yw9gtc1mYCLrw&h=DImmTiXeqGiUhCw63v_u4KX-xx2bPe0O0kR98rzV4Y4
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-5060cd9a-49fb-11f0-bdb4-c8d9d2028398?api-version=2025-03-01-preview&t=638855972301985184&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1MjUzWhcNMjUwODIxMTE1MjUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOGOiRUZre5YhZnwOISDOO1x7gmFTlM4OLXItXvXOr1LX64Nzg5AOyLKCqCbFgKCECwB7MT47ff2xAiVHQx2-mRaSpTHmBiiquWbJ0e693xWw5HwqL8_t1V2ri7je9DyFO236aogNMxslRIzg0PpvQF3tL2RlzOGpaozaQTKatqDWTeqftZT0jUIx0_mOKq7VmFrl1EBA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unoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=yqGFVlQUhI4Ewba4GE0qufE26eiqVI_C-4Hn1XYQa8BWMPadIHzVILJUbD8F_J8zzodrYdGnMyszP4dQBt4KuchrQGwetmcLT6jlU5dW0DjRxobIiDs0Ahf94byKQSEKCdtsIpqWuXY5gZ4G_-UMfL3hH11kbGeLgPYZVR1gaoC67e_PJ1tJZfMRyEvooPpNEdoIGlbZ3cJzmmBMkX8-25w3kbCD4pH51H7cMYb7ZoQcpo8UQgk_v-wSA17Cc6sZm0bAtWt-7664MOyXbmK5XX4Co1rMvANj1YrpY_mFTXYs2k8dvwmZl6K85CZIXe_hDLj8y2hFG4GWklQfpCQ_5Q&h=cjyS6UgtMsQAx5yzkGW3VJSK_OOzXKrkf_n3fcovG5A
cache-control:
- no-cache
content-length:
- - '1488'
+ - '1485'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:10 GMT
+ - Sun, 15 Jun 2025 15:13:49 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/7df2a47b-4a02-44cb-8f70-5ec76bb8e088
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/eff18a5b-9466-4e31-91bd-55f6290299ed
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '199'
- x-msedge-ref:
- - 'Ref A: D52B3BE4B43D40CAACCFD854B002647D Ref B: TYO01EDGE1620 Ref C: 2025-05-16T03:06:01Z'
status:
code: 201
message: Created
@@ -117,9 +115,9 @@ interactions:
ParameterSetName:
- -n -g -l --sku --role-assignment-mode
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-b1d9abca-3202-11f0-a1ab-644ed7a2823f?api-version=2025-03-01-preview&t=638829615707942515&c=MIIHpTCCBo2gAwIBAgITOgWXBJzHWActAOyA9gAEBZcEnDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwNDE4MDkxNjUyWhcNMjUxMDE1MDkxNjUyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4tFzYjQAGXlMN4RVSj_Zp98bnnigeY99sbhZrAOQOjxR_04cAp0TrBwLXaA2b6MkNp3EWrqmwj8LAHlmiUmx_C5YeMG8WQUVkZMbfJNmAjSKJvmH2VO_H9OVOiiWemCFWlBXZMT6O1LsK-KI4EQtlTwXEv4-zXiqUQqjqHZQX6IJGxxcuw3R6KS00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gNHOJ9RMlZjN6t3HOamSHQMdbN2pFZ-yHiS7tvC2EZF3KueAuZaEqZM_Z2FxJmTvOaZUDeWUf-Jknlni-UnaoNqB8uw0IqDg25TQt1Fvo4D3N5qvi_eCxHNa_Xzch3xm9JIFuDIMK5Cs-bYF0-nS6z7Pgfc9XnvcAShA-M3M3iNHUISkieGhIEix9Oo6jF0CqFOg-7gFq33p_bfMcf_NoYwkw3Gt5piP4RVcI3z68lYFgvxiO5wuPRXBq6OA8JFS4t9ReAi0lBO441c0qJRKYRcvXu-M3kf_G2yw9gtc1mYCLrw&h=DImmTiXeqGiUhCw63v_u4KX-xx2bPe0O0kR98rzV4Y4
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-5060cd9a-49fb-11f0-bdb4-c8d9d2028398?api-version=2025-03-01-preview&t=638855972301985184&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1MjUzWhcNMjUwODIxMTE1MjUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOGOiRUZre5YhZnwOISDOO1x7gmFTlM4OLXItXvXOr1LX64Nzg5AOyLKCqCbFgKCECwB7MT47ff2xAiVHQx2-mRaSpTHmBiiquWbJ0e693xWw5HwqL8_t1V2ri7je9DyFO236aogNMxslRIzg0PpvQF3tL2RlzOGpaozaQTKatqDWTeqftZT0jUIx0_mOKq7VmFrl1EBAwD7HGnEEKl9EEZN0_hPs4YkKj3241H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MYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=yqGFVlQUhI4Ewba4GE0qufE26eiqVI_C-4Hn1XYQa8BWMPadIHzVILJUbD8F_J8zzodrYdGnMyszP4dQBt4KuchrQGwetmcLT6jlU5dW0DjRxobIiDs0Ahf94byKQSEKCdtsIpqWuXY5gZ4G_-UMfL3hH11kbGeLgPYZVR1gaoC67e_PJ1tJZfMRyEvooPpNEdoIGlbZ3cJzmmBMkX8-25w3kbCD4pH51H7cMYb7ZoQcpo8UQgk_v-wSA17Cc6sZm0bAtWt-7664MOyXbmK5XX4Co1rMvANj1YrpY_mFTXYs2k8dvwmZl6K85CZIXe_hDLj8y2hFG4GWklQfpCQ_5Q&h=cjyS6UgtMsQAx5yzkGW3VJSK_OOzXKrkf_n3fcovG5A
response:
body:
string: '{"status":"Succeeded"}'
@@ -127,7 +125,7 @@ interactions:
api-supported-versions:
- 2025-03-01-preview
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-b1d9abca-3202-11f0-a1ab-644ed7a2823f?api-version=2025-03-01-preview&t=638829615720094921&c=MIIHpTCCBo2gAwIBAgITOgWXBJzHWActAOyA9gAEBZcEnDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwNDE4MDkxNjUyWhcNMjUxMDE1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35O0JDRyA13V3zowD9Dkl6HKRosiwIhfUwb1VWxMZt1K97bfrlhekU_IFyRNImksBTl4Hg5mL7M4PQvDu_hNxb1NW9JnL8B4LEl-FVcKtOFC8R2wp_2vglSGujfVsEzQMXxCECc_j-T0saauGgdaItgRGQ-1JrKdhZ1FvHWU2eeab0zXatBPn7nyaNmU7DK2icP38PQp3g8yPPlpv1joUzz1GMBJXhtHRWCv93tVfT5q9DZQ-_S2H_1Y2raeucg8kUfGEvVuQ27w1bGi2QRDLtEtuNHgzpR3RB7os&s=P48TrpJCTE6JhqFENvZcc1sHj4ttW_8lzzaWeMONzvUZV_OEbuGo2qDL3Z3sdnAe3oQlmgAwY6eIAUa1FOHxuDg-0jU_-oI0FsKvBMNxpxeUItKsKr5ahju8zkYYYAjoOYU9YyhUmXnNz7QWUK-ye-N-keY5y1F47SA9xpowk-cKfz4GsgcNOv0WP0htjR_t4OcK97pIkJ24zOQkV-7Kkby10LO5DydnAw7JJPbxgtLr-ViG_lnizD9tVC5eL6TRSlegNu4UJQEFhPEAQZsIQXJrO9DNyZPfwXLXmGxOd0GGHi-0QUpwn7vVIqACCZuHSIYNZ_yj7RqecRNIJdNqQQ&h=cSCc0AG5d9CN641vYMJiLc3kxVVKOgjmG7Dr-C29K0s
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/operationStatuses/registries-5060cd9a-49fb-11f0-bdb4-c8d9d2028398?api-version=2025-03-01-preview&t=638855972309017640&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1MjUzWhcNMjUwODIxMTE1MjUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGl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pXrfXULt3STPQNLyeZC6zs_3h_6JUvt_H6wZP_QUTyVhqUXXEwlHz9B4Fue1bli_lpypu2Mi-V7fGCnSlpJXKrmBAT1uZsfHQHfajX8aaiTfCKUQN9uP7of2gAhh7EnzhJi1rE9bjg4LY5ciu5B7sxpOZbS5pD-yF8f3mjLgmSSmexu3m3YYFrV8u_bvNVB2vQl25IHjzohnCPs7HzbNTsHwCq7LVie9IqFp0z0ispf7j_AH68APqcJALTOPe0YqnhWygdFi1rTE3gV3VAko5iMinFWbW0BfTYG6z5vvunoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=MHVpmHD5HXcwNx8IkpE_sA576jEqpYNhrwNwxudbqb58DDiiunZl3q8hBEtKAhnZEngl9JjG7dNVf--ksstbNgdirS9tCh84Wqo28iTU0pb1GrFZdnnTSzSTtnxZF-dCfn4vvb1ZP6V0xqVgw7lN4i1rq2bZNIYihFzFeuZdBCWJ-sdHR_MBrZON5gb6vPpOC9qzBux78DDj21aiTFLSM5TB0nUsIrSLgfx-NfVTqHxxbCxC4sS9jxzblxRjQjWcMMYkskw7x9TzrxTCOJkB5tWhpUa1s76z5pYk4JwphlevOr4K5KzxC8LATMRDYPTKzrQL9KkAy4pA6M3Ys9VzdA&h=75CTVt8mnD0RtIZ-9qb7OXpLrQ25Iwtvrk7x4P8uxoo
cache-control:
- no-cache
content-length:
@@ -135,23 +133,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:11 GMT
+ - Sun, 15 Jun 2025 15:13:50 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/f45ebb94-4837-4329-8cef-3282b63af62f
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/613b01ff-b926-4b50-b188-3c90026500d7
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: BCCE76265ACA4AEFBA282A04BFFF2923 Ref B: TYO01EDGE1620 Ref C: 2025-05-16T03:06:11Z'
status:
code: 200
message: OK
@@ -169,37 +165,35 @@ interactions:
ParameterSetName:
- -n -g -l --sku --role-assignment-mode
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:12 GMT
+ - Sun, 15 Jun 2025 15:13:51 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3749'
- x-msedge-ref:
- - 'Ref A: 9D017CA7C13F418B993EBD9EEC6156D7 Ref B: TYO01EDGE1620 Ref C: 2025-05-16T03:06:12Z'
+ - '3748'
status:
code: 200
message: OK
@@ -217,35 +211,31 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
response:
body:
- string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbx2n4idox7rd733dqte","name":"sourceregistrysamesubbx2n4idox7rd733dqte","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T02:57:05.0289059Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T02:57:05.0289059Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791Z"}}]}'
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
headers:
cache-control:
- no-cache
content-length:
- - '1124'
+ - '541'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:14 GMT
+ - Sun, 15 Jun 2025 15:13:52 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3748'
- x-msedge-ref:
- - 'Ref A: 875A5826E6B24164A64B3BFE3A77355F Ref B: TYO01EDGE3705 Ref C: 2025-05-16T03:06:14Z'
+ - '3749'
status:
code: 200
message: OK
@@ -263,37 +253,35 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:15 GMT
+ - Sun, 15 Jun 2025 15:13:54 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3749'
- x-msedge-ref:
- - 'Ref A: 334A7F80D1AD4219B7EE021E59A2D977 Ref B: TYO01EDGE3219 Ref C: 2025-05-16T03:06:14Z'
+ - '3748'
status:
code: 200
message: OK
@@ -319,12 +307,12 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/scheduleRun?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Queued","lastUpdatedTime":"2025-05-16T03:06:16+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:16.0782265+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Queued","lastUpdatedTime":"2025-06-15T15:13:56+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:56.4994782+00:00"}}'
headers:
cache-control:
- no-cache
@@ -333,25 +321,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:16 GMT
+ - Sun, 15 Jun 2025 15:13:57 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japanwest/eaede850-25d7-492f-bf2e-5150d9a3b372
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/6c127043-478f-43fa-be20-f03082be974b
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '199'
- x-msedge-ref:
- - 'Ref A: 6DE15AB047FA442A931F2911B1D4294A Ref B: TYO01EDGE1515 Ref C: 2025-05-16T03:06:15Z'
status:
code: 200
message: OK
@@ -369,12 +353,12 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Running","lastUpdatedTime":"2025-05-16T03:06:17+00:00","runType":"QuickRun","createTime":"2025-05-16T03:06:16.6214082+00:00","startTime":"2025-05-16T03:06:17.0699353+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:16.0782265+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Running","lastUpdatedTime":"2025-06-15T15:13:57+00:00","runType":"QuickRun","createTime":"2025-06-15T15:13:56.7266073+00:00","startTime":"2025-06-15T15:13:57.0962621+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:56.4994782+00:00"}}'
headers:
cache-control:
- no-cache
@@ -383,23 +367,19 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:17 GMT
+ - Sun, 15 Jun 2025 15:13:58 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/45b3bdd6-d9c3-4dd0-a8c7-ab450f929fdd
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/0a03a842-e0de-4829-bd2a-c38f30d51e29
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: DF9D42859F3247A196A22F2B83E8993D Ref B: TYO201151006060 Ref C: 2025-05-16T03:06:17Z'
status:
code: 200
message: OK
@@ -417,13 +397,13 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Failed","lastUpdatedTime":"2025-05-16T03:06:31+00:00","runType":"QuickRun","createTime":"2025-05-16T03:06:16.6214082+00:00","startTime":"2025-05-16T03:06:17.0699353+00:00","finishTime":"2025-05-16T03:06:31.5212726+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"runErrorMessage":"failed
- during run, err: exit status 1","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:16.0782265+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf1","status":"Failed","lastUpdatedTime":"2025-06-15T15:14:11+00:00","runType":"QuickRun","createTime":"2025-06-15T15:13:56.7266073+00:00","startTime":"2025-06-15T15:13:57.0962621+00:00","finishTime":"2025-06-15T15:14:11.3861896+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"runErrorMessage":"failed
+ during run, err: exit status 1","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf1","name":"cf1","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:56.4994782+00:00"}}'
headers:
cache-control:
- no-cache
@@ -432,23 +412,19 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:48 GMT
+ - Sun, 15 Jun 2025 15:14:29 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/07ae72ef-7061-475e-946c-c13d21fa468f
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/20fb3e67-ad38-47ed-9daf-676412b80390
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: 68040909E7264E1B81F04CAC78470ECB Ref B: TYO201151006060 Ref C: 2025-05-16T03:06:47Z'
status:
code: 200
message: OK
@@ -466,79 +442,24 @@ interactions:
ParameterSetName:
- --role --assignee --scope
User-Agent:
- - python/3.10.11 (Windows-10-10.0.26100-SP0) AZURECLI/2.72.0
+ - python/3.12.10 (Windows-10-10.0.19045-SP0) AZURECLI/2.74.0
method: GET
- uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27d44a2991-98c6-47c3-b59b-2b30d72cfcc2%27%29
+ uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27cf65b850-7325-4f89-a4a7-83b1a6daff5a%27%29
response:
body:
- string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}'
+ string: '{"error":{"code":"Authorization_RequestDenied","message":"Insufficient
+ privileges to complete the operation.","innerError":{"date":"2025-06-15T15:14:30","request-id":"9dea091f-5999-409a-ba19-f5aa32c43c13","client-request-id":"9dea091f-5999-409a-ba19-f5aa32c43c13"}}}'
headers:
cache-control:
- no-cache
content-length:
- - '92'
+ - '266'
content-type:
- - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
- date:
- - Fri, 16 May 2025 03:06:49 GMT
- odata-version:
- - '4.0'
- request-id:
- - eab0f851-f848-485a-84c5-af305de81b2d
- strict-transport-security:
- - max-age=31536000
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-ms-ags-diagnostic:
- - '{"ServerInfo":{"DataCenter":"Japan East","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"TY1PEPF000136C8"}}'
- x-ms-resource-unit:
- - '1'
- status:
- code: 200
- message: OK
-- request:
- body: '{"ids": ["d44a2991-98c6-47c3-b59b-2b30d72cfcc2"], "types": ["user", "group",
- "servicePrincipal", "directoryObjectPartnerReference"]}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - role assignment create
- Connection:
- - keep-alive
- Content-Length:
- - '132'
- Content-Type:
- application/json
- ParameterSetName:
- - --role --assignee --scope
- User-Agent:
- - python/3.10.11 (Windows-10-10.0.26100-SP0) AZURECLI/2.72.0
- method: POST
- uri: https://graph.microsoft.com/v1.0/directoryObjects/getByIds
- response:
- body:
- string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#directoryObjects","value":[{"@odata.type":"#microsoft.graph.user","id":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","businessPhones":[],"displayName":"Jingsong
- Zhang (WICRESOFT NORTH AMERICA LTD)","givenName":null,"jobTitle":null,"mail":"test@example.com","mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":null,"userPrincipalName":"test@example.com#EXT#@AzureSDKTeam.onmicrosoft.com"}]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '468'
- content-type:
- - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
date:
- - Fri, 16 May 2025 03:06:50 GMT
- location:
- - https://graph.microsoft.com
- odata-version:
- - '4.0'
+ - Sun, 15 Jun 2025 15:14:29 GMT
request-id:
- - 854e5cc2-c63a-4305-94a6-c87b5e6920fa
+ - 9dea091f-5999-409a-ba19-f5aa32c43c13
strict-transport-security:
- max-age=31536000
transfer-encoding:
@@ -546,12 +467,12 @@ interactions:
vary:
- Accept-Encoding
x-ms-ags-diagnostic:
- - '{"ServerInfo":{"DataCenter":"Japan East","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"TY1PEPF000090AC"}}'
+ - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"SI1PEPF00026BA8"}}'
x-ms-resource-unit:
- - '3'
+ - '1'
status:
- code: 200
- message: OK
+ code: 403
+ message: Forbidden
- request:
body: null
headers:
@@ -566,7 +487,7 @@ interactions:
ParameterSetName:
- --role --assignee --scope
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Container%20Registry%20Repository%20Contributor%27&api-version=2022-05-01-preview
response:
@@ -574,7 +495,7 @@ interactions:
string: '{"value":[{"properties":{"roleName":"Container Registry Repository
Contributor","type":"BuiltInRole","description":"Allows for read, write, and
delete access to Azure Container Registry repositories, but excluding catalog
- listing. This role is in preview and subject to change.","assignableScopes":["/"],"permissions":[{"actions":[],"notActions":[],"dataActions":["Microsoft.ContainerRegistry/registries/repositories/metadata/read","Microsoft.ContainerRegistry/registries/repositories/content/read","Microsoft.ContainerRegistry/registries/repositories/metadata/write","Microsoft.ContainerRegistry/registries/repositories/content/write","Microsoft.ContainerRegistry/registries/repositories/metadata/delete","Microsoft.ContainerRegistry/registries/repositories/content/delete"],"notDataActions":[]}],"createdOn":"2024-06-04T15:21:46.0883585Z","updatedOn":"2024-08-16T03:51:07.7001115Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2efddaa5-3f1f-4df3-97df-af3f13818f4c","type":"Microsoft.Authorization/roleDefinitions","name":"2efddaa5-3f1f-4df3-97df-af3f13818f4c"}]}'
+ listing. This role is in preview and subject to change.","assignableScopes":["/"],"permissions":[{"actions":[],"notActions":[],"dataActions":["Microsoft.ContainerRegistry/registries/repositories/metadata/read","Microsoft.ContainerRegistry/registries/repositories/content/read","Microsoft.ContainerRegistry/registries/repositories/metadata/write","Microsoft.ContainerRegistry/registries/repositories/content/write","Microsoft.ContainerRegistry/registries/repositories/metadata/delete","Microsoft.ContainerRegistry/registries/repositories/content/delete"],"notDataActions":[]}],"createdOn":"2024-06-03T15:09:04.0702026Z","updatedOn":"2024-08-15T03:49:31.4145739Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2efddaa5-3f1f-4df3-97df-af3f13818f4c","type":"Microsoft.Authorization/roleDefinitions","name":"2efddaa5-3f1f-4df3-97df-af3f13818f4c"}]}'
headers:
cache-control:
- no-cache
@@ -583,29 +504,25 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:51 GMT
+ - Sun, 15 Jun 2025 15:14:31 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/1723bbc9-b818-47f3-9f74-e8dbf7cb8f94
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/3a4d950f-a578-4189-a4d0-0add59a8aad8
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3748'
- x-msedge-ref:
- - 'Ref A: 67D54D4870764C809AB5D08AEAD931E6 Ref B: TYO201151005062 Ref C: 2025-05-16T03:06:51Z'
+ - '3749'
status:
code: 200
message: OK
- request:
body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2efddaa5-3f1f-4df3-97df-af3f13818f4c",
- "principalId": "d44a2991-98c6-47c3-b59b-2b30d72cfcc2", "principalType": "User"}}'
+ "principalId": "cf65b850-7325-4f89-a4a7-83b1a6daff5a"}}'
headers:
Accept:
- application/json
@@ -616,18 +533,18 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '258'
+ - '233'
Content-Type:
- application/json
ParameterSetName:
- --role --assignee --scope
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2022-04-01
response:
body:
- string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2efddaa5-3f1f-4df3-97df-af3f13818f4c","principalId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","condition":null,"conditionVersion":null,"createdOn":"2025-05-16T03:06:52.1453633Z","updatedOn":"2025-05-16T03:06:52.8353725Z","createdBy":null,"updatedBy":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}'
+ string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2efddaa5-3f1f-4df3-97df-af3f13818f4c","principalId":"cf65b850-7325-4f89-a4a7-83b1a6daff5a","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","condition":null,"conditionVersion":null,"createdOn":"2025-06-15T15:14:33.2676290Z","updatedOn":"2025-06-15T15:14:33.7356335Z","createdBy":null,"updatedBy":"cf65b850-7325-4f89-a4a7-83b1a6daff5a","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}'
headers:
cache-control:
- no-cache
@@ -636,25 +553,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:06:54 GMT
+ - Sun, 15 Jun 2025 15:14:38 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/a4507cf1-c533-4c32-8a73-28317c6c3dc6
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/dbace24b-21a4-4bd7-89b5-756b358d38e0
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '199'
- x-msedge-ref:
- - 'Ref A: 4AE58BFFE58B450E9F8FF4E5C1619A32 Ref B: TYO201151005062 Ref C: 2025-05-16T03:06:51Z'
status:
code: 201
message: Created
@@ -672,35 +585,31 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
response:
body:
- string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbx2n4idox7rd733dqte","name":"sourceregistrysamesubbx2n4idox7rd733dqte","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T02:57:05.0289059Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T02:57:05.0289059Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791Z"}}]}'
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
headers:
cache-control:
- no-cache
content-length:
- - '1124'
+ - '541'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:07:41 GMT
+ - Sun, 15 Jun 2025 15:15:24 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3748'
- x-msedge-ref:
- - 'Ref A: 2E9D7C98FCFE42349C3903059785567A Ref B: TYO201151001060 Ref C: 2025-05-16T03:07:41Z'
+ - '3749'
status:
code: 200
message: OK
@@ -718,37 +627,35 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:07:42 GMT
+ - Sun, 15 Jun 2025 15:15:25 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: D47EBB44437146E28B9F0889A874D382 Ref B: TYO201151004040 Ref C: 2025-05-16T03:07:41Z'
status:
code: 200
message: OK
@@ -774,12 +681,12 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/scheduleRun?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Queued","lastUpdatedTime":"2025-05-16T03:07:43+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:07:43.0311774+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Queued","lastUpdatedTime":"2025-06-15T15:15:28+00:00","provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:15:27.7992163+00:00"}}'
headers:
cache-control:
- no-cache
@@ -788,25 +695,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:07:43 GMT
+ - Sun, 15 Jun 2025 15:15:27 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/716e6cf4-6815-487f-8264-278eb655baba
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/c6245725-5c3a-43c6-a5ee-b3f09bf84471
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '199'
- x-msedge-ref:
- - 'Ref A: B7D873F20E5E415889D34C1969EDBD51 Ref B: TYO201100117053 Ref C: 2025-05-16T03:07:42Z'
status:
code: 200
message: OK
@@ -824,12 +727,12 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2025-05-16T03:07:43+00:00","runType":"QuickRun","createTime":"2025-05-16T03:07:43.3831621+00:00","startTime":"2025-05-16T03:07:43.6060977+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:07:43.0311774+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Running","lastUpdatedTime":"2025-06-15T15:15:28+00:00","runType":"QuickRun","createTime":"2025-06-15T15:15:28.0513112+00:00","startTime":"2025-06-15T15:15:28.4498231+00:00","platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:15:27.7992163+00:00"}}'
headers:
cache-control:
- no-cache
@@ -838,23 +741,19 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:07:44 GMT
+ - Sun, 15 Jun 2025 15:15:30 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/94483041-b868-4c0f-9a01-da6f260ab868
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/d79a639e-db41-4e00-8f77-a5670320e517
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: A65AD2C5483E44689F7D5F3FD72F6740 Ref B: TYO201151002060 Ref C: 2025-05-16T03:07:43Z'
status:
code: 200
message: OK
@@ -872,12 +771,12 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2?api-version=2025-03-01-preview
response:
body:
- string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2025-05-16T03:08:01+00:00","runType":"QuickRun","createTime":"2025-05-16T03:07:43.3831621+00:00","startTime":"2025-05-16T03:07:43.6060977+00:00","finishTime":"2025-05-16T03:08:01.9016392+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"myimage","tag":"tag","digest":"sha256:c1a491d7b4086fc6d81f90cb9814e0bdb48efbdceade197971d93af36ab3b3ab"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:07:43.0311774+00:00"}}'
+ string: '{"type":"Microsoft.ContainerRegistry/registries/runs","properties":{"runId":"cf2","status":"Succeeded","lastUpdatedTime":"2025-06-15T15:15:46+00:00","runType":"QuickRun","createTime":"2025-06-15T15:15:28.0513112+00:00","startTime":"2025-06-15T15:15:28.4498231+00:00","finishTime":"2025-06-15T15:15:46.5355077+00:00","outputImages":[{"registry":"clireg000002.azurecr.io","repository":"myimage","tag":"tag","digest":"sha256:6676184bacf48de8600bf5ef3cad3d4272765385bb6c9977a59019cf3eb905cb"}],"platform":{"os":"linux","architecture":"amd64"},"agentConfiguration":{"cpu":2},"provisioningState":"Succeeded","isArchiveEnabled":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002/runs/cf2","name":"cf2","systemData":{"lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:15:27.7992163+00:00"}}'
headers:
cache-control:
- no-cache
@@ -886,23 +785,19 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:08:14 GMT
+ - Sun, 15 Jun 2025 15:16:01 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/4104f20f-3732-44a8-8777-d2bbbef51d25
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/0c02d987-cda6-4e7f-8a1d-731c5b4f132b
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: 6D6C080738AA4BC39F4899D8F10EBA26 Ref B: TYO201151002060 Ref C: 2025-05-16T03:08:14Z'
status:
code: 200
message: OK
@@ -920,37 +815,35 @@ interactions:
ParameterSetName:
- -n -g --role-assignment-mode
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"AbacRepositoryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:08:15 GMT
+ - Sun, 15 Jun 2025 15:16:03 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3748'
- x-msedge-ref:
- - 'Ref A: 009A5DC8A9374C46A3251C43FDF399B6 Ref B: TYO201100115011 Ref C: 2025-05-16T03:08:15Z'
+ - '3749'
status:
code: 200
message: OK
@@ -972,41 +865,39 @@ interactions:
ParameterSetName:
- -n -g --role-assignment-mode
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PATCH
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:08:16.9196385+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"LegacyRegistryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:16:06.1833336+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"LegacyRegistryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:08:16 GMT
+ - Sun, 15 Jun 2025 15:16:05 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/1daf37c4-7a38-4d5a-9fbc-22402af95dfa
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/c056731c-c2a0-4e9c-b779-7e8f5d21cab1
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '199'
- x-msedge-ref:
- - 'Ref A: 02EE7028709F4B128D0B810933260CFD Ref B: TYO201151005029 Ref C: 2025-05-16T03:08:16Z'
status:
code: 200
message: OK
@@ -1024,35 +915,31 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --auth-mode --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
response:
body:
- string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroupsamesub/providers/Microsoft.ContainerRegistry/registries/sourceregistrysamesubbx2n4idox7rd733dqte","name":"sourceregistrysamesubbx2n4idox7rd733dqte","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T02:57:05.0289059Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T02:57:05.0289059Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:06:03.0598791Z"}}]}'
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
headers:
cache-control:
- no-cache
content-length:
- - '1124'
+ - '541'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:08:18 GMT
+ - Sun, 15 Jun 2025 15:16:07 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3747'
- x-msedge-ref:
- - 'Ref A: 2F185097E46F4515A7556EAE22EB2121 Ref B: TYO201151004029 Ref C: 2025-05-16T03:08:17Z'
+ - '3748'
status:
code: 200
message: OK
@@ -1070,37 +957,35 @@ interactions:
ParameterSetName:
- -r --source-acr-auth-id --auth-mode --image --no-logs
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
body:
- string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-05-16T03:06:03.0598791+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-05-16T03:08:16.9196385+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-05-16T03:06:03.0598791Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-05-16T03:06:10.4973561+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-05-16T03:06:10.4974379+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"LegacyRegistryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
+ string: '{"sku":{"name":"Standard","tier":"Standard"},"type":"Microsoft.ContainerRegistry/registries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071+00:00","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:16:06.1833336+00:00"},"properties":{"loginServer":"clireg000002.azurecr.io","creationDate":"2025-06-15T15:13:42.0422071Z","provisioningState":"Succeeded","adminUserEnabled":false,"policies":{"quarantinePolicy":{"status":"disabled"},"trustPolicy":{"type":"Notary","status":"disabled"},"retentionPolicy":{"days":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987+00:00","status":"disabled"},"exportPolicy":{"status":"enabled"},"azureADAuthenticationAsArmPolicy":{"status":"enabled"},"softDeletePolicy":{"retentionDays":7,"lastUpdatedTime":"2025-06-15T15:13:49.5987445+00:00","status":"disabled"}},"encryption":{"status":"disabled"},"dataEndpointEnabled":false,"dataEndpointHostNames":[],"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","networkRuleBypassOptions":"AzureServices","zoneRedundancy":"Disabled","anonymousPullEnabled":false,"metadataSearch":"Disabled","roleAssignmentMode":"LegacyRegistryPermissions","autoGeneratedDomainNameLabelScope":"Unsecure"}}'
headers:
api-supported-versions:
- 2025-03-01-preview
cache-control:
- no-cache
content-length:
- - '1489'
+ - '1486'
content-type:
- application/json; charset=utf-8
date:
- - Fri, 16 May 2025 03:08:18 GMT
+ - Sun, 15 Jun 2025 15:16:09 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
- x-msedge-ref:
- - 'Ref A: 7D3930C4D25A4340B3AF6DB127088351 Ref B: TYO201100117045 Ref C: 2025-05-16T03:08:18Z'
status:
code: 200
message: OK
@@ -1120,7 +1005,7 @@ interactions:
ParameterSetName:
- -n -g -y
User-Agent:
- - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002?api-version=2025-03-01-preview
response:
@@ -1134,25 +1019,23 @@ interactions:
content-length:
- '0'
date:
- - Fri, 16 May 2025 03:08:27 GMT
+ - Sun, 15 Jun 2025 15:16:18 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=d44a2991-98c6-47c3-b59b-2b30d72cfcc2/japaneast/b58d0817-6c49-40ee-8433-19123d591f39
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/11236af6-77e0-4897-83ac-d744dd0a3af0
x-ms-ratelimit-remaining-subscription-deletes:
- '199'
x-ms-ratelimit-remaining-subscription-global-deletes:
- '2999'
- x-msedge-ref:
- - 'Ref A: AC22B6EBCEEC4BF59E764009916AC5F3 Ref B: TYO201100113051 Ref C: 2025-05-16T03:08:19Z'
status:
code: 200
message: OK
diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_run.yaml b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_run.yaml
index ebc51e75efe..dd45ea40f06 100644
--- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_run.yaml
+++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/recordings/test_acr_abac_run.yaml
@@ -1206,4 +1206,4 @@ interactions:
status:
code: 200
message: OK
-version: 1
+version: 1
\ No newline at end of file
diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py
index 07a00056761..ceb71be3165 100644
--- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py
+++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py
@@ -978,10 +978,12 @@ def upload_zip_to_storage(cmd, resource_group_name, name, src, slot=None):
container_name = "function-releases"
blob_name = "{}-{}.zip".format(datetime.datetime.today().strftime('%Y%m%d%H%M%S'), str(uuid.uuid4()))
- BlockBlobService = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE, 'blob#BlockBlobService')
- block_blob_service = BlockBlobService(connection_string=storage_connection)
- if not block_blob_service.exists(container_name):
- block_blob_service.create_container(container_name)
+ BlobServiceClient = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE_BLOB,
+ '_blob_service_client#BlobServiceClient')
+ blob_service_client = BlobServiceClient.from_connection_string(conn_str=storage_connection)
+ container_client = blob_service_client.get_container_client(container_name)
+ if not container_client.exists():
+ container_client.create_container()
# https://gist.github.com/vladignatyev/06860ec2040cb497f0f3
def progress_callback(current, total):
@@ -992,20 +994,23 @@ def progress_callback(current, total):
progress_message = 'Uploading {} {}%'.format(progress_bar, percents)
cmd.cli_ctx.get_progress_controller().add(message=progress_message)
- block_blob_service.create_blob_from_path(container_name, blob_name, src, validate_content=True,
- progress_callback=progress_callback)
+ blob_client = container_client.upload_blob(blob_name, src, validate_content=True, progress_hook=progress_callback)
now = datetime.datetime.utcnow()
blob_start = now - datetime.timedelta(minutes=10)
blob_end = now + datetime.timedelta(weeks=520)
- BlobPermissions = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE, 'blob#BlobPermissions')
- blob_token = block_blob_service.generate_blob_shared_access_signature(container_name,
- blob_name,
- permission=BlobPermissions(read=True),
- expiry=blob_end,
- start=blob_start)
-
- blob_uri = block_blob_service.make_blob_url(container_name, blob_name, sas_token=blob_token)
+ BlobSharedAccessSignature = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE_BLOB,
+ '_shared_access_signature#BlobSharedAccessSignature')
+
+ BlobSasPermissions = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE_BLOB, '_models#BlobSasPermissions')
+ sas_client = BlobSharedAccessSignature(blob_service_client.account_name,
+ account_key=blob_service_client.credential.account_key)
+ blob_token = sas_client.generate_blob(container_name, blob_name, permission=BlobSasPermissions(read=True),
+ expiry=blob_end, start=blob_start)
+
+ blob_uri = blob_client.url
+ if '?' not in blob_uri:
+ blob_uri += '?' + blob_token
website_run_from_setting = "WEBSITE_RUN_FROM_PACKAGE={}".format(blob_uri)
update_app_settings(cmd, resource_group_name, name, settings=[website_run_from_setting], slot=slot)
client = web_client_factory(cmd.cli_ctx)
diff --git a/src/azure-cli/azure/cli/command_modules/batch/custom.py b/src/azure-cli/azure/cli/command_modules/batch/custom.py
index 53311bd230b..280a281a512 100644
--- a/src/azure-cli/azure/cli/command_modules/batch/custom.py
+++ b/src/azure-cli/azure/cli/command_modules/batch/custom.py
@@ -3,7 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from urllib.parse import urlsplit
import configparser
from knack.log import get_logger
@@ -375,27 +374,9 @@ def update_application(client,
def _upload_package_blob(ctx, package_file, url):
"""Upload the location file to storage url provided by autostorage"""
- BlockBlobService = get_sdk(ctx, ResourceType.DATA_STORAGE, 'blob#BlockBlobService')
-
- uri = urlsplit(url)
- # in uri path, it always start with '/', so container name is at second block
- pathParts = uri.path.split('/', 2)
- container_name = pathParts[1]
- blob_name = pathParts[2]
- # we need handle the scenario storage account not in public Azure
- hostParts = uri.netloc.split('.', 2)
- account_name = hostParts[0]
- # endpoint suffix needs to ignore the 'blob' part in the host name
- endpoint_suffix = hostParts[2]
-
- sas_service = BlockBlobService(account_name=account_name,
- sas_token=uri.query,
- endpoint_suffix=endpoint_suffix)
- sas_service.create_blob_from_path(
- container_name=container_name,
- blob_name=blob_name,
- file_path=package_file,
- )
+ BlobClient = get_sdk(ctx, ResourceType.DATA_STORAGE_BLOB, '_blob_client#BlobClient')
+ blob_client = BlobClient.from_blob_url(url)
+ blob_client.upload_blob(package_file)
@transfer_doc(ApplicationPackageOperations.create)
diff --git a/src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_application_cmd.yaml b/src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_application_cmd.yaml
index c839e8f3ae9..43f85c43c32 100644
--- a/src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_application_cmd.yaml
+++ b/src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_application_cmd.yaml
@@ -13,12 +13,12 @@ interactions:
ParameterSetName:
- -g -n -l --storage-account
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002?api-version=2024-01-01
response:
body:
- string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","name":"clibatchteststor000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2025-01-16T18:24:17.1858774Z","key2":"2025-01-16T18:24:17.1858774Z"},"allowCrossTenantReplication":false,"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":false,"networkAcls":{"ipv6Rules":[],"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-01-16T18:24:17.3576725Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-01-16T18:24:17.3576725Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2025-01-16T18:24:17.0450550Z","primaryEndpoints":{"blob":"https://clibatchteststor000002.blob.core.windows.net/","queue":"https://clibatchteststor000002.queue.core.windows.net/","table":"https://clibatchteststor000002.table.core.windows.net/","file":"https://clibatchteststor000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}}'
+ string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","name":"clibatchteststor000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2025-06-16T11:16:04.3819984Z","key2":"2025-06-16T11:16:04.3819984Z"},"allowCrossTenantReplication":false,"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":false,"networkAcls":{"ipv6Rules":[],"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-06-16T11:16:04.3819984Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-06-16T11:16:04.3819984Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2025-06-16T11:16:04.2257487Z","primaryEndpoints":{"blob":"https://clibatchteststor000002.blob.core.windows.net/","queue":"https://clibatchteststor000002.queue.core.windows.net/","table":"https://clibatchteststor000002.table.core.windows.net/","file":"https://clibatchteststor000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}}'
headers:
cache-control:
- no-cache
@@ -27,21 +27,19 @@ interactions:
content-type:
- application/json
date:
- - Thu, 16 Jan 2025 18:24:36 GMT
+ - Mon, 16 Jun 2025 11:16:28 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: BE96B426CCDD47AC91E7D84A17682632 Ref B: MNZ221060610021 Ref C: 2025-01-16T18:24:37Z'
+ - '3749'
status:
code: 200
message: OK
@@ -65,7 +63,7 @@ interactions:
ParameterSetName:
- -g -n -l --storage-account
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
@@ -77,25 +75,25 @@ interactions:
content-length:
- '0'
date:
- - Thu, 16 Jan 2025 18:24:38 GMT
+ - Mon, 16 Jun 2025 11:16:31 GMT
expires:
- '-1'
location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/6dc9b604-18fa-42c8-a8d2-57e3a2f04459?api-version=2024-02-01&t=638726486794904036&c=MIIHpTCCBo2gAwIBAgITOgOyui871wRtge60rAAEA7K6LzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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wDQYJKoZIhvcNAQELBQADggEBAHkWc1KMstXAU5p0ciSSzPoB_W772N_r2ITPfnNv7OdZGLyDL8VTUXFgLP_lVJgsrUcSXJi6GSjDB9ww5vQCsXJQgzO4bCx-jKgHjqphvAtqaiiUEs6HJZYAXzjGr6BPLIlx2qov7eiI-vLqT3h9gqiUGYjLwwKJdO4PIGGzt5oIY5oWtLkqoxoad8CfpX7z8WM9YAUv1l-majml_BXWMmN0t5BbCB5MAuZPnD2rg3mtvh4FEV5pnTtTLPwpw7AAt-9DReZQOgsVkBLNSAzvuXHJzMAm03Gr-uZw7fY_-p1aqDgZ4KMTnQqVr8NvFE02_Gj_5hIaAdCp1bUhZ3ZrmZY&s=hExMY38rsemWojDm2tW13vntiDRH6JW_xIX_7imacFIjsilzHegguej_JKny_0klBAliy3rGaGLu2PP2zzHEL7HmPemL1OauYYSBtmC60gyA-Ns7qiKHZ9EXGFNitjAcpWcMdKqZP8QEDdZkCaZf9yVwuAeJNtPcDObner2YNGPUig9MIOjq7qXgr1c6kBgFCwgHqi13PmpNTV8lahmkkwwa579zEtV5kOtJxNsuJ6ryRESEn2Mq0_6Olgi6-lIywm0ZBPrYjjTEY_UCAb5ySJFVaNA09syNR-ZOtme4U90_HtjfItjarSVEW4SU1yDojbwnnbC5ieF2Hk3QMbWWtg&h=GNjNiM_AoBJOJBbNftj8v_hHYYKLteugDBfrkGafNy8
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/5ebf853b-856f-4dd3-8f3f-d17ca67a66de?api-version=2024-02-01&t=638856693921771315&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1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w6ebrRe4DPHYUXNIr8SV_b2_OqCNr7vYIpf9kQFpB_KAp_zDZgXCMNBNpXrfXULt3STPQNLyeZC6zs_3h_6JUvt_H6wZP_QUTyVhqUXXEwlHz9B4Fue1bli_lpypu2Mi-V7fGCnSlpJXKrmBAT1uZsfHQHfajX8aaiTfCKUQN9uP7of2gAhh7EnzhJi1rE9bjg4LY5ciu5B7sxpOZbS5pD-yF8f3mjLgmSSmexu3m3YYFrV8u_bvNVB2vQl25IHjzohnCPs7HzbNTsHwCq7LVie9IqFp0z0ispf7j_AH68APqcJALTOPe0YqnhWygdFi1rTE3gV3VAko5iMinFWbW0BfTYG6z5vvunoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=yC4wu4fcHfu19Mfyeiyi8Xa71bzhhYIV35Dmrclnnf8h7iyI99deLB7IkitMkoggpTIGmKFts8NZJpIHMmr61JZ7JSA6XQYdxhsjAE3eOwsXoQyDCHJE21jXebTmNCX6cqu_GiJsw7qRkCZsts-W847S0mbw4ifL0ywc5ZChJ4p5wY2a1FACG0oYCE0WuwSMDzhS7acP_1fY2PV_EPfXRrVQiEkq9pEJjNXigiAnKXipNSitwEXuxONgNHZegj-8zxypldjHgpfmbZXHWFjL6afNqS2s5hcxY32yHsEtCMVgTZWeNTd4TlU4YvliNFKflNAHBBtDXUZNxYZuVePTlg&h=-aFBDsbpFTQWZF4jCmDQ605e-aDX6L7pDu4zA8dgC_A
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/512875c0-7b4c-41c7-888a-5f81ecaac76a
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: 4C7FE7BC8EEA4A2282221EA698D3082A Ref B: MNZ221060608011 Ref C: 2025-01-16T18:24:37Z'
+ - '199'
status:
code: 202
message: Accepted
@@ -113,9 +111,9 @@ interactions:
ParameterSetName:
- -g -n -l --storage-account
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/6dc9b604-18fa-42c8-a8d2-57e3a2f04459?api-version=2024-02-01&t=638726486794904036&c=MIIHpTCCBo2gAwIBAgITOgOyui871wRtge60rAAEA7K6LzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTIyOTEzWhcNMjUwMzIxMTIyOTEzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALthCEIs4vwfpBtc8a6akzk9FNp-luTjsKhTETKForQzaFdF5S6PDjwZJVAOcVWePFAecP08Qp1Fzfi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03Gr-uZw7fY_-p1aqDgZ4KMTnQqVr8NvFE02_Gj_5hIaAdCp1bUhZ3ZrmZY&s=hExMY38rsemWojDm2tW13vntiDRH6JW_xIX_7imacFIjsilzHegguej_JKny_0klBAliy3rGaGLu2PP2zzHEL7HmPemL1OauYYSBtmC60gyA-Ns7qiKHZ9EXGFNitjAcpWcMdKqZP8QEDdZkCaZf9yVwuAeJNtPcDObner2YNGPUig9MIOjq7qXgr1c6kBgFCwgHqi13PmpNTV8lahmkkwwa579zEtV5kOtJxNsuJ6ryRESEn2Mq0_6Olgi6-lIywm0ZBPrYjjTEY_UCAb5ySJFVaNA09syNR-ZOtme4U90_HtjfItjarSVEW4SU1yDojbwnnbC5ieF2Hk3QMbWWtg&h=GNjNiM_AoBJOJBbNftj8v_hHYYKLteugDBfrkGafNy8
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/5ebf853b-856f-4dd3-8f3f-d17ca67a66de?api-version=2024-02-01&t=638856693921771315&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1MjUzWhcNMjUwODIxMTE1MjUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOGOiRUZre5YhZnwOISDOO1x7gmFTlM4OLXItXvXOr1LX64Nzg5AOyLKCqCbFgKCECwB7MT47ff2xAiVHQx2-mRaSpTHmBiiquWbJ0e693xWw5HwqL8_t1V2ri7je9DyFO236aogNMxslRIzg0PpvQF3tL2R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Pe0YqnhWygdFi1rTE3gV3VAko5iMinFWbW0BfTYG6z5vvunoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=yC4wu4fcHfu19Mfyeiyi8Xa71bzhhYIV35Dmrclnnf8h7iyI99deLB7IkitMkoggpTIGmKFts8NZJpIHMmr61JZ7JSA6XQYdxhsjAE3eOwsXoQyDCHJE21jXebTmNCX6cqu_GiJsw7qRkCZsts-W847S0mbw4ifL0ywc5ZChJ4p5wY2a1FACG0oYCE0WuwSMDzhS7acP_1fY2PV_EPfXRrVQiEkq9pEJjNXigiAnKXipNSitwEXuxONgNHZegj-8zxypldjHgpfmbZXHWFjL6afNqS2s5hcxY32yHsEtCMVgTZWeNTd4TlU4YvliNFKflNAHBBtDXUZNxYZuVePTlg&h=-aFBDsbpFTQWZF4jCmDQ605e-aDX6L7pDu4zA8dgC_A
response:
body:
string: ''
@@ -125,23 +123,23 @@ interactions:
content-length:
- '0'
date:
- - Thu, 16 Jan 2025 18:24:39 GMT
+ - Mon, 16 Jun 2025 11:16:31 GMT
expires:
- '-1'
location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/6dc9b604-18fa-42c8-a8d2-57e3a2f04459?api-version=2024-02-01&t=638726486803198059&c=MIIHpTCCBo2gAwIBAgITOgOyui871wRtge60rAAEA7K6LzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImi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ZIhvcNAQELBQADggEBAHkWc1KMstXAU5p0ciSSzPoB_W772N_r2ITPfnNv7OdZGLyDL8VTUXFgLP_lVJgsrUcSXJi6GSjDB9ww5vQCsXJQgzO4bCx-jKgHjqphvAtqaiiUEs6HJZYAXzjGr6BPLIlx2qov7eiI-vLqT3h9gqiUGYjLwwKJdO4PIGGzt5oIY5oWtLkqoxoad8CfpX7z8WM9YAUv1l-majml_BXWMmN0t5BbCB5MAuZPnD2rg3mtvh4FEV5pnTtTLPwpw7AAt-9DReZQOgsVkBLNSAzvuXHJzMAm03Gr-uZw7fY_-p1aqDgZ4KMTnQqVr8NvFE02_Gj_5hIaAdCp1bUhZ3ZrmZY&s=lZgHKIQw5FFGRagzYq3iOC8k9Xownv7M33f-2KeNOXLonWsLSvPIKeMP-9V76wGV8D0xpL9AjzW4-1f7GHuMbU0mZWhOesr7FD6HaFAPDKzjsetCYhISavvLdiJSbu39iCRuy0A3D9-tIzcIbTHXKnhMKey1nH0FLzVVVRgFFmUdKp5tg17oH5e_ljB08enJZMJqgIa3JqqnoEBLbo26LjtF1nkd_BMgRybmNhoXuxWDnnKTzwvww-1cUOZ01KQOfLOyg2lBJVGBcFlBFRtYEeksLia9JuEIf1qS404Oo4FlUojUCIyKyzpOq6z04PVOMLCpze6FjNBHTMx46zC4Bg&h=aWwSizjn5HZOZHyJnDK1KUuFVWPm9OLoQxLpJzgkDPE
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/5ebf853b-856f-4dd3-8f3f-d17ca67a66de?api-version=2024-02-01&t=638856693927872567&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMT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Lhw6ebrRe4DPHYUXNIr8SV_b2_OqCNr7vYIpf9kQFpB_KAp_zDZgXCMNBNpXrfXULt3STPQNLyeZC6zs_3h_6JUvt_H6wZP_QUTyVhqUXXEwlHz9B4Fue1bli_lpypu2Mi-V7fGCnSlpJXKrmBAT1uZsfHQHfajX8aaiTfCKUQN9uP7of2gAhh7EnzhJi1rE9bjg4LY5ciu5B7sxpOZbS5pD-yF8f3mjLgmSSmexu3m3YYFrV8u_bvNVB2vQl25IHjzohnCPs7HzbNTsHwCq7LVie9IqFp0z0ispf7j_AH68APqcJALTOPe0YqnhWygdFi1rTE3gV3VAko5iMinFWbW0BfTYG6z5vvunoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=oXCi9KR9tE2uVtDWVDFA-V7N4wG7O4CwljqtOzje4sbvLJ5WF8FnmKtWyoJJUhgeHZ0DnVC99fEUwaRT1ML7R-fY1flfAyvrW8-j9OMfA0nr2bww-ncsZ3oNTn7nIgXbGGAhsuDdSyMItzj_GWdtvAVIDp3WQTBFFsVK2JoMkNE9UivqYvZ-dzdZaXyFQsXAfu9nmsCxd7qoDZoTphkQmxK1jcNvriDznBXtya_RHgjnxcZjljM0tSMMPJ8XXt7JX702pBNGr06pOifATEDnttmtqngVYB7SkLJ2CIqq84WaJnxEDfFueeXfQArkMBE2ddPJI_37n-RmmmFZIipiQw&h=_58h7oRmHytXhb7oZciqoyhUogtXeLHqEc57_Qqm_QE
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/26e9535a-d06f-4cd4-8d9c-99f13169a5e2
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: B671EE74F63B4131A58E6DB2F663F4B5 Ref B: MNZ221060608011 Ref C: 2025-01-16T18:24:39Z'
+ - '3749'
status:
code: 202
message: Accepted
@@ -159,41 +157,41 @@ interactions:
ParameterSetName:
- -g -n -l --storage-account
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/6dc9b604-18fa-42c8-a8d2-57e3a2f04459?api-version=2024-02-01&t=638726486803198059&c=MIIHpTCCBo2gAwIBAgITOgOyui871wRtge60rAAEA7K6LzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTIyOTEzWhcNMjUwMzIxMTIyOTEzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALthCEIs4vwfpBtc8a6akzk9FNp-luTjsKhTETKForQzaFdF5S6PDjwZJVAOcVWePFAecP08Qp1FzfiX_Cl9StTirn6FO-MjJbWSG2THMvz756N87v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8NvFE02_Gj_5hIaAdCp1bUhZ3ZrmZY&s=lZgHKIQw5FFGRagzYq3iOC8k9Xownv7M33f-2KeNOXLonWsLSvPIKeMP-9V76wGV8D0xpL9AjzW4-1f7GHuMbU0mZWhOesr7FD6HaFAPDKzjsetCYhISavvLdiJSbu39iCRuy0A3D9-tIzcIbTHXKnhMKey1nH0FLzVVVRgFFmUdKp5tg17oH5e_ljB08enJZMJqgIa3JqqnoEBLbo26LjtF1nkd_BMgRybmNhoXuxWDnnKTzwvww-1cUOZ01KQOfLOyg2lBJVGBcFlBFRtYEeksLia9JuEIf1qS404Oo4FlUojUCIyKyzpOq6z04PVOMLCpze6FjNBHTMx46zC4Bg&h=aWwSizjn5HZOZHyJnDK1KUuFVWPm9OLoQxLpJzgkDPE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/operationResults/5ebf853b-856f-4dd3-8f3f-d17ca67a66de?api-version=2024-02-01&t=638856693927872567&c=MIIIrjCCBpagAwIBAgITUQAeitIHV2CZuENpGAABAB6K0jANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDQwHhcNMjUwNTIzMTE1MjUzWhcNMjUwODIxMTE1MjUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOGOiRUZre5YhZnwOISDOO1x7gmFTlM4OLXItXvXOr1LX64Nzg5AOyLKCqCbFgKCECwB7MT47ff2xAiVHQx2-mRaSpTHmBiiquWbJ0e693xWw5HwqL8_t1V2ri7je9DyFO236aogNMxslRIzg0PpvQF3tL2RlzOGpaozaQTKatqDWTeqftZT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Ako5iMinFWbW0BfTYG6z5vvunoOO0K0IV2b6KrvFg9WFYH3sRUtqMYuaK8p1gLI9LDfj2npqJnF079RZa2SSuqbC0vTX700sJkHB2Y1BafXgqtoqg6BFoMfuF-8XcVFGqzAJ4bXUwdRlrqLkgv0-QwNFRiO1yEMD4Dv1LSMtHmyig2ivzk4iWj05J-RhwmX3I_2Wi_Xp80bVeu2ij2oDilv4GLgjbV5uWw-9GBameukWozx5FNXPTDOZywlOsfWOzDkTVcr_r0vwDtaayx6AssFShiiA8cuFf9OojoSKZ21zWSxlart&s=oXCi9KR9tE2uVtDWVDFA-V7N4wG7O4CwljqtOzje4sbvLJ5WF8FnmKtWyoJJUhgeHZ0DnVC99fEUwaRT1ML7R-fY1flfAyvrW8-j9OMfA0nr2bww-ncsZ3oNTn7nIgXbGGAhsuDdSyMItzj_GWdtvAVIDp3WQTBFFsVK2JoMkNE9UivqYvZ-dzdZaXyFQsXAfu9nmsCxd7qoDZoTphkQmxK1jcNvriDznBXtya_RHgjnxcZjljM0tSMMPJ8XXt7JX702pBNGr06pOifATEDnttmtqngVYB7SkLJ2CIqq84WaJnxEDfFueeXfQArkMBE2ddPJI_37n-RmmmFZIipiQw&h=_58h7oRmHytXhb7oZciqoyhUogtXeLHqEc57_Qqm_QE
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:55 GMT
+ - Mon, 16 Jun 2025 11:16:48 GMT
etag:
- - '"0x8DD365B13C020B6"'
+ - '"0x8DDACC7494EFB9F"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:55 GMT
+ - Mon, 16 Jun 2025 11:16:48 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/bae2126a-8b47-4607-8cbd-4a8057f52e0f
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 18048D43A6E84CD7841A088F15394E25 Ref B: MNZ221060608011 Ref C: 2025-01-16T18:24:55Z'
+ - '3749'
status:
code: 200
message: OK
@@ -211,41 +209,39 @@ interactions:
ParameterSetName:
- -g -n --application-name
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:56 GMT
+ - Mon, 16 Jun 2025 11:16:50 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 2908195248F64303BB46AC8C85FE31EC Ref B: MNZ221060610027 Ref C: 2025-01-16T18:24:56Z'
+ - '3749'
status:
code: 200
message: OK
@@ -267,12 +263,12 @@ interactions:
ParameterSetName:
- -g -n --application-name
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DD365B145DC203\"","properties":{"allowUpdates":true}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DDACC74C0E6B0B\"","properties":{"allowUpdates":true}}'
headers:
cache-control:
- no-cache
@@ -281,27 +277,27 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:56 GMT
+ - Mon, 16 Jun 2025 11:16:52 GMT
etag:
- - W/"0x8DD365B145DC203"
+ - W/"0x8DDACC74C0E6B0B"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:56 GMT
+ - Mon, 16 Jun 2025 11:16:53 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/4730f764-f321-4d90-8e14-abb4a326ae47
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: 1640C66B0E194C4FAF66937BC55F5630 Ref B: BL2AA2011001040 Ref C: 2025-01-16T18:24:56Z'
+ - '199'
status:
code: 200
message: OK
@@ -319,41 +315,39 @@ interactions:
ParameterSetName:
- -g -n
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:56 GMT
+ - Mon, 16 Jun 2025 11:16:54 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 0BC053AD69AD476C8E55105A3870EE48 Ref B: MNZ221060608029 Ref C: 2025-01-16T18:24:57Z'
+ - '3748'
status:
code: 200
message: OK
@@ -371,12 +365,12 @@ interactions:
ParameterSetName:
- -g -n
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications?api-version=2024-02-01
response:
body:
- string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DD365B145DC203\"","properties":{"allowUpdates":true}}]}'
+ string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DDACC74C0E6B0B\"","properties":{"allowUpdates":true}}]}'
headers:
cache-control:
- no-cache
@@ -385,21 +379,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:57 GMT
+ - Mon, 16 Jun 2025 11:16:55 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/0fd2bd4e-99a8-461e-98c0-683c7ebec2fb
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 1432CE003894448EA6EEC106BE859DB0 Ref B: BL2AA2011006042 Ref C: 2025-01-16T18:24:57Z'
+ - '3749'
status:
code: 200
message: OK
@@ -417,41 +411,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --package-file
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:57 GMT
+ - Mon, 16 Jun 2025 11:16:57 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 689ADB79E9CA4C9FB0EC73B315F4E48F Ref B: MNZ221060610029 Ref C: 2025-01-16T18:24:58Z'
+ - '3747'
status:
code: 200
message: OK
@@ -469,12 +461,12 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --package-file
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DD365B145DC203\"","properties":{"allowUpdates":true}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DDACC74C0E6B0B\"","properties":{"allowUpdates":true}}'
headers:
cache-control:
- no-cache
@@ -483,25 +475,25 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:58 GMT
+ - Mon, 16 Jun 2025 11:16:58 GMT
etag:
- - W/"0x8DD365B145DC203"
+ - W/"0x8DDACC74C0E6B0B"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:56 GMT
+ - Mon, 16 Jun 2025 11:16:53 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/5806f459-9276-4837-9e73-5499e8758d03
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 95E4D7F66359459592D2D83BE234ABA1 Ref B: MNZ221060608039 Ref C: 2025-01-16T18:24:58Z'
+ - '3749'
status:
code: 200
message: OK
@@ -523,12 +515,12 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --package-file
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DD365B15AE42A2\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A19%3A59Z&se=2025-01-16T22%3A24%3A59Z&sp=rw","storageUrlExpiry":"2025-01-16T22:24:59.0273036Z","state":"Pending"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DDACC750DC8592\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A12%3A01Z&se=2025-06-16T15%3A17%3A01Z&sp=rw","storageUrlExpiry":"2025-06-16T15:17:01.1681002Z","state":"Pending"}}'
headers:
cache-control:
- no-cache
@@ -537,47 +529,55 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:58 GMT
+ - Mon, 16 Jun 2025 11:17:01 GMT
etag:
- - W/"0x8DD365B15AE42A2"
+ - W/"0x8DDACC750DC8592"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:01 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/bb4f7209-d68b-48eb-b2b5-9d19eb86f223
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: 7000FF827BB647C38A9F6712B7BD164D Ref B: BL2AA2011005062 Ref C: 2025-01-16T18:24:58Z'
+ - '199'
status:
code: 200
message: OK
- request:
- body: storage blob test sample file
+ body: C:\Users\ZHIYIH~1\AppData\Local\Temp\tmpk48ug57r
headers:
+ Accept:
+ - application/xml
+ Accept-Encoding:
+ - gzip, deflate
Connection:
- keep-alive
Content-Length:
- - '29'
+ - '48'
+ Content-Type:
+ - application/octet-stream
+ If-None-Match:
+ - '*'
User-Agent:
- - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.11.9; Windows 10)
+ - azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-blob-type:
- BlockBlob
x-ms-date:
- - Thu, 16 Jan 2025 18:25:00 GMT
+ - Mon, 16 Jun 2025 11:17:37 GMT
x-ms-version:
- - '2018-11-09'
+ - '2022-11-02'
method: PUT
- uri: https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A19%3A59Z&se=2025-01-16T22%3A24%3A59Z&sp=rw
+ uri: https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A12%3A01Z&se=2025-06-16T15%3A17%3A01Z&sp=rw
response:
body:
string: ''
@@ -585,19 +585,21 @@ interactions:
content-length:
- '0'
content-md5:
- - JeBon6PeparxrbCKMR+6hw==
+ - Yy0H2nX174eJagpki3bkKQ==
date:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:39 GMT
etag:
- - '"0x8DD365B15D581D4"'
+ - '"0x8DDACC7683E2689"'
last-modified:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:40 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ x-ms-content-crc64:
+ - eTtu0bCIXxA=
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- - '2018-11-09'
+ - '2022-11-02'
status:
code: 201
message: Created
@@ -619,41 +621,41 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --package-file
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0/activate?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DD365B16002520\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A19%3A59Z&se=2025-01-16T22%3A24%3A59Z&sp=rw","storageUrlExpiry":"2025-01-16T22:24:59.6112589Z","state":"Active","format":"zip","lastActivationTime":"2025-01-16T18:24:59.542474Z"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DDACC76B677C0A\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A12%3A45Z&se=2025-06-16T15%3A17%3A45Z&sp=rw","storageUrlExpiry":"2025-06-16T15:17:45.7128729Z","state":"Active","format":"zip","lastActivationTime":"2025-06-16T11:17:45.6798531Z"}}'
headers:
cache-control:
- no-cache
content-length:
- - '654'
+ - '655'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:58 GMT
+ - Mon, 16 Jun 2025 11:17:45 GMT
etag:
- - W/"0x8DD365B16002520"
+ - W/"0x8DDACC76B677C0A"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:45 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/92f1e0bc-f2e0-4139-8f0f-d859f5915636
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: 2C08C649B61F40EF809226EDE3B3C094 Ref B: BL2AA2011005062 Ref C: 2025-01-16T18:24:59Z'
+ - '199'
status:
code: 200
message: OK
@@ -671,39 +673,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --package-file
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DD365B16002520\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A19%3A59Z&se=2025-01-16T22%3A24%3A59Z&sp=rw","storageUrlExpiry":"2025-01-16T22:24:59.8578426Z","state":"Active","format":"zip","lastActivationTime":"2025-01-16T18:24:59.542474Z"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DDACC76B677C0A\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A12%3A47Z&se=2025-06-16T15%3A17%3A47Z&sp=rw","storageUrlExpiry":"2025-06-16T15:17:47.9459555Z","state":"Active","format":"zip","lastActivationTime":"2025-06-16T11:17:45.6798531Z"}}'
headers:
cache-control:
- no-cache
content-length:
- - '654'
+ - '655'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:58 GMT
+ - Mon, 16 Jun 2025 11:17:47 GMT
etag:
- - W/"0x8DD365B16002520"
+ - W/"0x8DDACC76B677C0A"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:45 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/fbae08fe-662f-457e-b1e1-c87c96b9bde3
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 5014DDA1E6614948B623963CEF014351 Ref B: BL2AA2011005062 Ref C: 2025-01-16T18:24:59Z'
+ - '3749'
status:
code: 200
message: OK
@@ -721,41 +723,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --format
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:24:59 GMT
+ - Mon, 16 Jun 2025 11:17:55 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 32708FD13B4E45C0992EAB7DED3B334F Ref B: MNZ221060608051 Ref C: 2025-01-16T18:25:00Z'
+ - '3749'
status:
code: 200
message: OK
@@ -777,41 +777,43 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --format
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0/activate?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DD365B16B90820\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A20%3A00Z&se=2025-01-16T22%3A25%3A00Z&sp=rw","storageUrlExpiry":"2025-01-16T22:25:00.7841477Z","state":"Active","format":"zip","lastActivationTime":"2025-01-16T18:25:00.7528008Z"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DDACC773B46671\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A12%3A59Z&se=2025-06-16T15%3A17%3A59Z&sp=rw","storageUrlExpiry":"2025-06-16T15:17:59.6366254Z","state":"Active","format":"zip","lastActivationTime":"2025-06-16T11:17:59.6065972Z"}}'
headers:
cache-control:
- no-cache
+ connection:
+ - close
content-length:
- '655'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:00 GMT
+ - Mon, 16 Jun 2025 11:17:58 GMT
etag:
- - W/"0x8DD365B16B90820"
+ - W/"0x8DDACC773B46671"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:25:00 GMT
+ - Mon, 16 Jun 2025 11:17:59 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/a28ce7c9-56b2-4e5b-924a-523402e10650
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: 833D9F2D23724B398F4B2B39AF15A9AA Ref B: MNZ221060610017 Ref C: 2025-01-16T18:25:00Z'
+ - '199'
status:
code: 200
message: OK
@@ -829,41 +831,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --version
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:00 GMT
+ - Mon, 16 Jun 2025 11:18:05 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 8461D7E189A3478CAC49F215AF930194 Ref B: BL2AA2011005036 Ref C: 2025-01-16T18:25:00Z'
+ - '3749'
status:
code: 200
message: OK
@@ -881,12 +881,12 @@ interactions:
ParameterSetName:
- -g -n --application-name --version
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DD365B16B90820\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-89541858bfa0468d9c61a71c72e9d779/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-01-16T18%3A20%3A01Z&se=2025-01-16T22%3A25%3A01Z&sp=rw","storageUrlExpiry":"2025-01-16T22:25:01.7061675Z","state":"Active","format":"zip","lastActivationTime":"2025-01-16T18:25:00.7528008Z"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0","name":"1.0","etag":"W/\"0x8DDACC773B46671\"","properties":{"storageUrl":"https://clibatchteststor000002.blob.core.windows.net/app-testapp-b7ddab05ec954163a17a2416d941f589/1.0?sv=2018-03-28&sr=b&sig=fakeSig&st=2025-06-16T11%3A13%3A09Z&se=2025-06-16T15%3A18%3A09Z&sp=rw","storageUrlExpiry":"2025-06-16T15:18:09.5350339Z","state":"Active","format":"zip","lastActivationTime":"2025-06-16T11:17:59.6065972Z"}}'
headers:
cache-control:
- no-cache
@@ -895,25 +895,25 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:01 GMT
+ - Mon, 16 Jun 2025 11:18:08 GMT
etag:
- - W/"0x8DD365B16B90820"
+ - W/"0x8DDACC773B46671"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:25:00 GMT
+ - Mon, 16 Jun 2025 11:17:59 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/086114c6-7ec0-4386-ab1a-3d0e4e7396b3
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: BE595B47BD674D44A49D5CFA3657C47E Ref B: BL2AA2011004040 Ref C: 2025-01-16T18:25:01Z'
+ - '3748'
status:
code: 200
message: OK
@@ -931,41 +931,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --default-version
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:02 GMT
+ - Mon, 16 Jun 2025 11:18:14 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: CAA1CD1B44A14E9F9501BEB88073364D Ref B: BL2AA2011005029 Ref C: 2025-01-16T18:25:01Z'
+ - '3749'
status:
code: 200
message: OK
@@ -987,41 +985,43 @@ interactions:
ParameterSetName:
- -g -n --application-name --default-version
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: PATCH
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DD365B180CB981\"","properties":{"allowUpdates":true,"defaultVersion":"1.0"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DDACC77EEE21DB\"","properties":{"allowUpdates":true,"defaultVersion":"1.0"}}'
headers:
cache-control:
- no-cache
+ connection:
+ - close
content-length:
- '336'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:02 GMT
+ - Mon, 16 Jun 2025 11:18:18 GMT
etag:
- - W/"0x8DD365B180CB981"
+ - W/"0x8DDACC77EEE21DB"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:25:02 GMT
+ - Mon, 16 Jun 2025 11:18:18 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/b7113a55-ed7d-498c-b60e-d95c19885e9b
x-ms-ratelimit-remaining-subscription-global-writes:
- - '11999'
+ - '2999'
x-ms-ratelimit-remaining-subscription-writes:
- - '799'
- x-msedge-ref:
- - 'Ref A: D77639018A5E4D13BC4731998657B551 Ref B: MNZ221060619035 Ref C: 2025-01-16T18:25:02Z'
+ - '199'
status:
code: 200
message: OK
@@ -1039,41 +1039,39 @@ interactions:
ParameterSetName:
- -g -n --application-name
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:02 GMT
+ - Mon, 16 Jun 2025 11:18:22 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 8028F57B70584732B92F274210B170C9 Ref B: BL2AA2011002036 Ref C: 2025-01-16T18:25:03Z'
+ - '3749'
status:
code: 200
message: OK
@@ -1091,12 +1089,12 @@ interactions:
ParameterSetName:
- -g -n --application-name
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp?api-version=2024-02-01
response:
body:
- string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DD365B180CB981\"","properties":{"allowUpdates":true,"defaultVersion":"1.0"}}'
+ string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp","name":"testapp","etag":"W/\"0x8DDACC77EEE21DB\"","properties":{"allowUpdates":true,"defaultVersion":"1.0"}}'
headers:
cache-control:
- no-cache
@@ -1105,25 +1103,25 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:04 GMT
+ - Mon, 16 Jun 2025 11:18:26 GMT
etag:
- - W/"0x8DD365B180CB981"
+ - W/"0x8DDACC77EEE21DB"
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:25:02 GMT
+ - Mon, 16 Jun 2025 11:18:18 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/29c0b0df-a7e0-40a7-83e0-ab0ffd8f7588
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 54732744D04447288A9A48FED595C0A2 Ref B: BL2AA2011004054 Ref C: 2025-01-16T18:25:03Z'
+ - '3749'
status:
code: 200
message: OK
@@ -1141,41 +1139,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --yes
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:05 GMT
+ - Mon, 16 Jun 2025 11:18:30 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 6ECFDB1D9ABD4EDDB6958A3C125D9771 Ref B: MNZ221060618037 Ref C: 2025-01-16T18:25:05Z'
+ - '3749'
status:
code: 200
message: OK
@@ -1195,7 +1191,7 @@ interactions:
ParameterSetName:
- -g -n --application-name --version --yes
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp/versions/1.0?api-version=2024-02-01
response:
@@ -1207,23 +1203,23 @@ interactions:
content-length:
- '0'
date:
- - Thu, 16 Jan 2025 18:25:04 GMT
+ - Mon, 16 Jun 2025 11:18:34 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/6bc020b4-9d4f-4594-96af-7d97639e6222
x-ms-ratelimit-remaining-subscription-deletes:
- - '799'
+ - '199'
x-ms-ratelimit-remaining-subscription-global-deletes:
- - '11999'
- x-msedge-ref:
- - 'Ref A: 960C3EBD34244E8DA212DCE54376E2AA Ref B: MNZ221060619051 Ref C: 2025-01-16T18:25:05Z'
+ - '2999'
status:
code: 200
message: OK
@@ -1241,41 +1237,39 @@ interactions:
ParameterSetName:
- -g -n --application-name --yes
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:05 GMT
+ - Mon, 16 Jun 2025 11:18:41 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: 3D019A801FD54AF4883B3B162F267F32 Ref B: BL2AA2011002031 Ref C: 2025-01-16T18:25:06Z'
+ - '3749'
status:
code: 200
message: OK
@@ -1295,7 +1289,7 @@ interactions:
ParameterSetName:
- -g -n --application-name --yes
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications/testapp?api-version=2024-02-01
response:
@@ -1307,23 +1301,23 @@ interactions:
content-length:
- '0'
date:
- - Thu, 16 Jan 2025 18:25:06 GMT
+ - Mon, 16 Jun 2025 11:18:47 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/6e1a28f7-7c50-4dee-b6d2-6c008934ff77
x-ms-ratelimit-remaining-subscription-deletes:
- - '799'
+ - '199'
x-ms-ratelimit-remaining-subscription-global-deletes:
- - '11999'
- x-msedge-ref:
- - 'Ref A: 64111D0AB36A488496A4519D31693B66 Ref B: MNZ221060608023 Ref C: 2025-01-16T18:25:06Z'
+ - '2999'
status:
code: 200
message: OK
@@ -1341,41 +1335,39 @@ interactions:
ParameterSetName:
- -g -n
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003?api-version=2024-02-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"67c66dce-5a1d-430d-b695-1b6853f0a2ee.eastus2.service.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
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003","name":"clibatchtestacct000003","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatchtestacct000003.eastus2.batch.azure.com","nodeManagementEndpoint":"265a8e1f-98b3-4001-9f2d-7726dae57b59.eastus2.service.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":10,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":10},{"name":"standardDv3Family","coreQuota":10},{"name":"standardDSv3Family","coreQuota":10},{"name":"standardEv3Family","coreQuota":10},{"name":"standardESv3Family","coreQuota":10},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardDv2Family","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardDSv2Family","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":"standardFSv2Family","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":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","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":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-01-16T18:24:39.4198171Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
+ NDASv4_A100 Family","coreQuota":0},{"name":"standard NDAMSv4_A100Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0},{"name":"standardFXMDVSFamily","coreQuota":0},{"name":"standardDv5Family","coreQuota":0},{"name":"standardDSv5Family","coreQuota":0},{"name":"standardDDv5Family","coreQuota":0},{"name":"standardDDSv5Family","coreQuota":0},{"name":"standardEDv5Family","coreQuota":0},{"name":"standardEDSv5Family","coreQuota":0},{"name":"standardNCADSA100v4Family","coreQuota":0},{"name":"standardDADSv5Family","coreQuota":0},{"name":"standardEADSv5Family","coreQuota":0},{"name":"StandardNVADSA10v5Family","coreQuota":0},{"name":"standardEBDSv5Family","coreQuota":0},{"name":"standardHBv4Family","coreQuota":0},{"name":"standardHXFamily","coreQuota":0},{"name":"standardLSv3Family","coreQuota":0},{"name":"standardLASv3Family","coreQuota":0},{"name":"standardNCADSH100v5Family","coreQuota":0},{"name":"standardNGADSV620v1Family","coreQuota":0},{"name":"standardNDMI300Xv5IBFamily","coreQuota":0},{"name":"standardNCCadsH100v5Family","coreQuota":0},{"name":"standardECasv5Family","coreQuota":0},{"name":"standardECadsv5Family","coreQuota":0},{"name":"standardDCasv5Family","coreQuota":0},{"name":"standardDCadsv5Family","coreQuota":0},{"name":"standardNVadsV710v5Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":0,"poolQuota":0,"activeJobAndJobScheduleQuota":100,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststor000002","lastKeySync":"2025-06-16T11:16:32.0483849Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}'
headers:
cache-control:
- no-cache
content-length:
- - '4464'
+ - '4576'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:06 GMT
+ - Mon, 16 Jun 2025 11:18:53 GMT
etag:
- - '"0x8DD365B0EF81517"'
+ - '"0x8DDACC743F21740"'
expires:
- '-1'
last-modified:
- - Thu, 16 Jan 2025 18:24:47 GMT
+ - Mon, 16 Jun 2025 11:16:39 GMT
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: C78F9A813B1046C894B326E2CDD24F37 Ref B: MNZ221060608021 Ref C: 2025-01-16T18:25:06Z'
+ - '3749'
status:
code: 200
message: OK
@@ -1393,7 +1385,7 @@ interactions:
ParameterSetName:
- -g -n
User-Agent:
- - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26120-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestacct000003/applications?api-version=2024-02-01
response:
@@ -1407,21 +1399,21 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Thu, 16 Jan 2025 18:25:06 GMT
+ - Mon, 16 Jun 2025 11:18:56 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
- x-cache:
- - CONFIG_NOCACHE
x-content-type-options:
- nosniff
+ x-ms-operation-identifier:
+ - tenantId=b5ee6c06-c2c2-4e3c-8606-5f170cee077a,objectId=cf65b850-7325-4f89-a4a7-83b1a6daff5a/eastus2euap/9939ca63-5801-4638-a952-e1aab00201a4
x-ms-ratelimit-remaining-subscription-global-reads:
- - '16499'
- x-msedge-ref:
- - 'Ref A: B79AD56F58EC4B6E8AAD636026DF79E4 Ref B: MNZ221060608033 Ref C: 2025-01-16T18:25:07Z'
+ - '3749'
status:
code: 200
message: OK
diff --git a/src/azure-cli/azure/cli/command_modules/batchai/custom.py b/src/azure-cli/azure/cli/command_modules/batchai/custom.py
index b200318ea3a..e4ea25ddaeb 100644
--- a/src/azure-cli/azure/cli/command_modules/batchai/custom.py
+++ b/src/azure-cli/azure/cli/command_modules/batchai/custom.py
@@ -521,8 +521,11 @@ def _configure_auto_storage(cli_ctx, location):
:return (str, str): a tuple with auto storage account name and key.
"""
ResourceGroup = get_sdk(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES, 'ResourceGroup', mod='models')
- BlockBlobService, FileService = get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
- 'blob#BlockBlobService', 'file#FileService')
+ BlobServiceClient = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB,
+ '_blob_service_client#BlobServiceClient')
+ ShareServiceClient = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_FILESHARE,
+ '_share_service_client#ShareServiceClient')
+
resource_group = _get_auto_storage_resource_group()
resource_client = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
if resource_client.resource_groups.check_existence(resource_group):
@@ -534,19 +537,23 @@ def _configure_auto_storage(cli_ctx, location):
resource_group, ResourceGroup(location=location))
storage_client = _get_storage_management_client(cli_ctx)
account = None
+ share_account_url = None
+ blob_account_url = None
for a in storage_client.storage_accounts.list_by_resource_group(resource_group):
if a.primary_location == location.lower().replace(' ', ''):
account = a.name
+ share_account_url = a.primary_endpoints.file
+ blob_account_url = a.primary_endpoints.blob
logger.warning('Using existing %s storage account as an auto-storage account', account)
break
if account is None:
- account = _create_auto_storage_account(storage_client, resource_group, location)
+ share_account_url, blob_account_url = _create_auto_storage_account(storage_client, resource_group, location)
logger.warning('Created auto storage account %s', account)
key = _get_storage_account_key(cli_ctx, account, None)
- file_service = FileService(account, key)
- file_service.create_share(AUTO_STORAGE_SHARE_NAME, fail_on_exist=False)
- blob_service = BlockBlobService(account, key)
- blob_service.create_container(AUTO_STORAGE_CONTAINER_NAME, fail_on_exist=False)
+ share_service_client = ShareServiceClient(share_account_url, credential=key)
+ share_service_client.create_share(AUTO_STORAGE_SHARE_NAME)
+ blob_service_client = BlobServiceClient(blob_account_url, credential=key)
+ blob_service_client.create_container(AUTO_STORAGE_CONTAINER_NAME)
return account, key
@@ -571,11 +578,11 @@ def _create_auto_storage_account(storage_client, resource_group, location):
while not check.name_available:
name = _generate_auto_storage_account_name()
check = storage_client.storage_accounts.check_name_availability(name).name_available
- storage_client.storage_accounts.create(resource_group, name, {
+ account_obj = storage_client.storage_accounts.create(resource_group, name, {
'sku': Sku(name=SkuName.standard_lrs),
'kind': Kind.storage,
'location': location}).result()
- return name
+ return account_obj.primary_endpoints.file, account_obj.primary_endpoints.blob
def _add_setup_task(cmd_line, output, cluster):
@@ -763,23 +770,32 @@ def _get_files_from_bfs(cli_ctx, bfs, path, expiry):
:param str path: path to list files from.
:param int expiry: SAS expiration time in minutes.
"""
- BlockBlobService = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob#BlockBlobService')
- Blob = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob#Blob')
- BlobPermissions = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob#BlobPermissions')
+ ContainerClient = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB, '_container_client#ContainerClient')
+ BlobSasPermissions = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB, '_models#BlobSasPermissions')
+ BlobSharedAccessSignature = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB,
+ '_shared_access_signature#BlobSharedAccessSignature')
+ storage_client = _get_storage_management_client(cli_ctx)
+ blob_account_url = [a.primary_endpoints.blob for a in list(storage_client.storage_accounts.list())
+ if a.name == bfs.account_name]
+
+ key = _get_storage_account_key(cli_ctx, bfs.account_name, None)
+
result = []
- service = BlockBlobService(bfs.account_name, _get_storage_account_key(cli_ctx, bfs.account_name, None))
+ container_client = ContainerClient(blob_account_url, bfs.container_name, credential=key)
+ sas_client = BlobSharedAccessSignature(bfs.account_name, account_key=key)
effective_path = _get_path_for_storage(path)
folders = set()
- for b in service.list_blobs(bfs.container_name, effective_path + '/', delimiter='/'):
- if isinstance(b, Blob):
+ for b in container_client.list_blobs(name_starts_with=effective_path + '/'):
+ if b.properties.content_settings.contentMd5 is not None:
name = os.path.basename(b.name)
- sas = service.generate_blob_shared_access_signature(
- bfs.container_name, b.name, BlobPermissions(read=True),
- expiry=datetime.datetime.utcnow() + datetime.timedelta(minutes=expiry))
+ sas = sas_client.generate_blob(bfs.container_name, b.name, permission=BlobSasPermissions(read=True),
+ expiry=datetime.datetime.utcnow() + datetime.timedelta(minutes=expiry))
+ blob_url = b.url
+ if '?' not in blob_url:
+ blob_url += '?' + sas
result.append(
LogFile(
- name, service.make_blob_url(bfs.container_name, b.name, 'https', sas),
- False, b.properties.content_length))
+ name, blob_url, False, b.properties.size))
else:
name = b.name.split('/')[-2]
folders.add(name)
@@ -803,23 +819,32 @@ def _get_files_from_afs(cli_ctx, afs, path, expiry):
:param str path: path to list files from.
:param int expiry: SAS expiration time in minutes.
"""
- FileService, File, FilePermissions = get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
- 'file#FileService', 'file.models#File', 'file.models#FilePermissions')
- result = []
- service = FileService(afs.account_name, _get_storage_account_key(cli_ctx, afs.account_name, None))
- share_name = afs.azure_file_url.split('/')[-1]
+ ShareClient = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_FILESHARE,
+ '_share_client#ShareClient')
+ FileSasPermissions = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_FILESHARE, '_models#FileSasPermissions')
+ FileSharedAccessSignature = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_FILESHARE,
+ '_shared_access_signature#FileSharedAccessSignature')
+ url_split = afs.azure_file_url.split('/')
+ share_account_url = ('/').join(url_split[:-1])
+ account_name = url_split[2].split('.')[0]
+ key = _get_storage_account_key(cli_ctx, account_name, None)
+ share_name = url_split[-1]
+ share_client = ShareClient(share_account_url, share_name, credential=key)
+ sas_client = FileSharedAccessSignature(account_name, account_key=key)
effective_path = _get_path_for_storage(path)
- if not service.exists(share_name, effective_path):
- return result
- for f in service.list_directories_and_files(share_name, effective_path):
- if isinstance(f, File):
- sas = service.generate_file_shared_access_signature(
- share_name, effective_path, f.name, permission=FilePermissions(read=True),
- expiry=datetime.datetime.utcnow() + datetime.timedelta(minutes=expiry))
+
+ result = []
+ for f in share_client.list_directories_and_files(name_starts_with=effective_path):
+ if not f.is_directory:
+ sas = sas_client.generate_file(share_name, directory_name=effective_path, file_name=f.name,
+ permission=FileSasPermissions(read=True),
+ expiry=datetime.datetime.utcnow() + datetime.timedelta(minutes=expiry))
+ file_url = share_client.url + '/' + effective_path + '/' + f.name
+ if '?' not in file_url:
+ file_url += '?' + sas
result.append(
LogFile(
- f.name, service.make_file_url(share_name, effective_path, f.name, 'https', sas),
- False, f.properties.content_length))
+ f.name, file_url, False, f.properties.content_length))
else:
result.append(LogFile(f.name, None, True, None))
return result
diff --git a/src/azure-cli/azure/cli/command_modules/storage/__init__.py b/src/azure-cli/azure/cli/command_modules/storage/__init__.py
index 3dabf258f3c..0823072932a 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/__init__.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/__init__.py
@@ -16,7 +16,7 @@ def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
storage_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.storage.custom#{}')
super().__init__(cli_ctx=cli_ctx,
- resource_type=ResourceType.DATA_STORAGE,
+ resource_type=ResourceType.MGMT_STORAGE,
custom_command_type=storage_custom,
command_group_cls=StorageCommandGroup,
argument_context_cls=StorageArgumentContext)
@@ -282,7 +282,7 @@ def handler(ex):
def _register_data_plane_account_arguments(self, command_name):
""" Add parameters required to create a storage client """
from azure.cli.core.commands.parameters import get_resource_name_completion_list
- from azure.cli.command_modules.storage._validators import is_storagev2, validate_client_parameters
+ from azure.cli.command_modules.storage._validators import validate_client_parameters
command = self.command_loader.command_table.get(command_name, None)
if not command:
return
@@ -301,37 +301,27 @@ def _register_data_plane_account_arguments(self, command_name):
help='Storage account connection string. Environment variable: '
'AZURE_STORAGE_CONNECTION_STRING')
resource_type = command.command_kwargs['resource_type']
- if is_storagev2(resource_type.value[0]):
- endpoint_argument_dict = {
- ResourceType.DATA_STORAGE_BLOB: '--blob-endpoint',
- ResourceType.DATA_STORAGE_FILESHARE: '--file-endpoint',
- ResourceType.DATA_STORAGE_TABLE: '--table-endpoint',
- ResourceType.DATA_STORAGE_QUEUE: '--queue-endpoint',
- ResourceType.DATA_STORAGE_FILEDATALAKE: '--blob-endpoint'
- }
- command.add_argument('account_url', endpoint_argument_dict.get(resource_type, '--service-endpoint'),
- required=False, default=None, arg_group=group_name,
- help='Storage data service endpoint. Must be used in conjunction with either '
- 'storage account key or a SAS token. You can find each service primary endpoint '
- 'with `az storage account show`. '
- 'Environment variable: AZURE_STORAGE_SERVICE_ENDPOINT')
- command.add_argument('account_key', '--account-key', required=False, default=None,
- arg_group=group_name,
- help='Storage account key. Must be used in conjunction with storage account '
- 'name or service endpoint. Environment variable: AZURE_STORAGE_KEY')
- command.add_argument('sas_token', '--sas-token', required=False, default=None,
- arg_group=group_name,
- help='A Shared Access Signature (SAS). Must be used in conjunction with storage '
- 'account name or service endpoint. Environment variable: AZURE_STORAGE_SAS_TOKEN')
- else:
- command.add_argument('account_key', '--account-key', required=False, default=None,
- arg_group=group_name,
- help='Storage account key. Must be used in conjunction with storage account name. '
- 'Environment variable: AZURE_STORAGE_KEY')
- command.add_argument('sas_token', '--sas-token', required=False, default=None,
- arg_group=group_name,
- help='A Shared Access Signature (SAS). Must be used in conjunction with storage '
- 'account name. Environment variable: AZURE_STORAGE_SAS_TOKEN')
+ endpoint_argument_dict = {
+ ResourceType.DATA_STORAGE_BLOB: '--blob-endpoint',
+ ResourceType.DATA_STORAGE_FILESHARE: '--file-endpoint',
+ ResourceType.DATA_STORAGE_TABLE: '--table-endpoint',
+ ResourceType.DATA_STORAGE_QUEUE: '--queue-endpoint',
+ ResourceType.DATA_STORAGE_FILEDATALAKE: '--blob-endpoint'
+ }
+ command.add_argument('account_url', endpoint_argument_dict.get(resource_type, '--service-endpoint'),
+ required=False, default=None, arg_group=group_name,
+ help='Storage data service endpoint. Must be used in conjunction with either '
+ 'storage account key or a SAS token. You can find each service primary endpoint '
+ 'with `az storage account show`. '
+ 'Environment variable: AZURE_STORAGE_SERVICE_ENDPOINT')
+ command.add_argument('account_key', '--account-key', required=False, default=None,
+ arg_group=group_name,
+ help='Storage account key. Must be used in conjunction with storage account '
+ 'name or service endpoint. Environment variable: AZURE_STORAGE_KEY')
+ command.add_argument('sas_token', '--sas-token', required=False, default=None,
+ arg_group=group_name,
+ help='A Shared Access Signature (SAS). Must be used in conjunction with storage '
+ 'account name or service endpoint. Environment variable: AZURE_STORAGE_SAS_TOKEN')
def _register_data_plane_oauth_arguments(self, command_name):
from azure.cli.core.commands.parameters import get_enum_type
@@ -343,7 +333,7 @@ def _register_data_plane_oauth_arguments(self, command_name):
return
self.command_loader.cli_ctx.invocation.data['command_string'] = command_name
- with self.command_loader.argument_context(command_name, min_api='2017-11-09') as c:
+ with self.command_loader.argument_context(command_name) as c:
c.extra('auth_mode', arg_type=get_enum_type(['login', 'key']),
help='The mode in which to run the command. "login" mode will directly use your login credentials '
'for the authentication. The legacy "key" mode will attempt to query for '
diff --git a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
index b90cdaf8fcf..01737373f51 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
@@ -7,8 +7,6 @@
prepare_client_kwargs_track2
from azure.cli.core.profiles import ResourceType, get_sdk
-from azure.cli.command_modules.storage.sdkutil import get_table_data_type
-
MISSING_CREDENTIALS_ERROR_MESSAGE = """
Missing credentials to access storage service. The following variations are accepted:
(1) account name and key (--account-name and --account-key options or
@@ -32,87 +30,10 @@ def get_storage_data_service_client(cli_ctx, service, name=None, key=None, conne
location_mode=location_mode)
-def generic_data_service_factory(cli_ctx, service, name=None, key=None, connection_string=None, sas_token=None,
- socket_timeout=None, token_credential=None, location_mode=None):
- try:
- return get_storage_data_service_client(cli_ctx, service, name, key, connection_string, sas_token,
- socket_timeout, token_credential, location_mode=location_mode)
- except ValueError as val_exception:
- _ERROR_STORAGE_MISSING_INFO = get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
- 'common._error#_ERROR_STORAGE_MISSING_INFO')
- message = str(val_exception)
- if message == _ERROR_STORAGE_MISSING_INFO:
- message = MISSING_CREDENTIALS_ERROR_MESSAGE
- from knack.util import CLIError
- raise CLIError(message)
-
-
def storage_client_factory(cli_ctx, **_):
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_STORAGE)
-def file_data_service_factory(cli_ctx, kwargs):
- t_file_svc = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'file#FileService')
- return generic_data_service_factory(cli_ctx, t_file_svc, kwargs.pop('account_name', None),
- kwargs.pop('account_key', None),
- connection_string=kwargs.pop('connection_string', None),
- sas_token=kwargs.pop('sas_token', None))
-
-
-def page_blob_service_factory(cli_ctx, kwargs):
- t_page_blob_service = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob.pageblobservice#PageBlobService')
- return generic_data_service_factory(cli_ctx, t_page_blob_service, kwargs.pop('account_name', None),
- kwargs.pop('account_key', None),
- connection_string=kwargs.pop('connection_string', None),
- sas_token=kwargs.pop('sas_token', None),
- token_credential=kwargs.pop('token_credential', None))
-
-
-def blob_data_service_factory(cli_ctx, kwargs):
- if 'encryption_scope' in kwargs and kwargs['encryption_scope']:
- return cf_blob_client(cli_ctx, kwargs)
- from azure.cli.command_modules.storage.sdkutil import get_blob_service_by_type
- blob_type = kwargs.get('blob_type')
- blob_service = get_blob_service_by_type(cli_ctx, blob_type) or get_blob_service_by_type(cli_ctx, 'block')
-
- return generic_data_service_factory(cli_ctx, blob_service, kwargs.pop('account_name', None),
- kwargs.pop('account_key', None),
- connection_string=kwargs.pop('connection_string', None),
- sas_token=kwargs.pop('sas_token', None),
- socket_timeout=kwargs.pop('socket_timeout', None),
- token_credential=kwargs.pop('token_credential', None),
- location_mode=kwargs.pop('location_mode', None))
-
-
-def table_data_service_factory(cli_ctx, kwargs):
- return generic_data_service_factory(cli_ctx,
- get_table_data_type(cli_ctx, 'table', 'TableService'),
- kwargs.pop('account_name', None),
- kwargs.pop('account_key', None),
- connection_string=kwargs.pop('connection_string', None),
- sas_token=kwargs.pop('sas_token', None))
-
-
-def queue_data_service_factory(cli_ctx, kwargs):
- t_queue_service = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'queue#QueueService')
- return generic_data_service_factory(
- cli_ctx, t_queue_service,
- kwargs.pop('account_name', None),
- kwargs.pop('account_key', None),
- connection_string=kwargs.pop('connection_string', None),
- sas_token=kwargs.pop('sas_token', None),
- token_credential=kwargs.pop('token_credential', None))
-
-
-def cloud_storage_account_service_factory(cli_ctx, kwargs):
- t_cloud_storage_account = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'common#CloudStorageAccount')
- account_name = kwargs.pop('account_name', None)
- account_key = kwargs.pop('account_key', None)
- sas_token = kwargs.pop('sas_token', None)
- kwargs.pop('connection_string', None)
- return t_cloud_storage_account(account_name, account_key, sas_token)
-
-
def multi_service_properties_factory(cli_ctx, kwargs):
"""Create multiple data services properties instance based on the services option"""
from .services_wrapper import ServiceProperties
@@ -170,10 +91,6 @@ def cf_mgmt_file_shares(cli_ctx, _):
return storage_client_factory(cli_ctx).file_shares
-def cf_blob_data_gen_update(cli_ctx, kwargs):
- return blob_data_service_factory(cli_ctx, kwargs.copy())
-
-
def cf_private_link(cli_ctx, _):
return storage_client_factory(cli_ctx).private_link_resources
diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py
index dadd907a768..1bdb1f3d566 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/_help.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py
@@ -1042,6 +1042,11 @@
crafted: true
"""
+helps['storage blob incremental-copy cancel'] = """
+type: command
+short-summary: Aborts a pending copy_blob operation, and leaves a destination blob with zero length and full metadata.
+"""
+
helps['storage blob lease'] = """
type: group
short-summary: Manage storage blob leases.
diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py
index c39da01f5dc..880ceeb7f29 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/_params.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py
@@ -16,7 +16,7 @@
add_progress_callback, process_resource_group,
storage_account_key_options, process_metric_update_namespace,
get_char_options_validator, validate_bypass, validate_encryption_source, validate_marker,
- validate_storage_data_plane_list, validate_azcopy_upload_destination_url,
+ validate_storage_data_plane_list, validate_azcopy_sync_destination_path,
validate_azcopy_remove_arguments, as_user_validator, parse_storage_account,
validate_delete_retention_days, validate_container_delete_retention_days,
validate_file_delete_retention_days, validator_change_feed_retention_days,
@@ -34,7 +34,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
from azure.cli.core.commands.parameters import get_resource_name_completion_list
- from .sdkutil import get_table_data_type
from .completers import get_storage_name_completion_list
t_base_blob_service = self.get_sdk('blob.baseblobservice#BaseBlobService')
@@ -43,7 +42,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
resource_type=ResourceType.DATA_STORAGE_FILESHARE)
t_queue_service = self.get_sdk('_queue_service_client#QueueServiceClient',
resource_type=ResourceType.DATA_STORAGE_QUEUE)
- t_table_service = get_table_data_type(self.cli_ctx, 'table', 'TableService')
+ t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
+ resource_type=ResourceType.DATA_STORAGE_TABLE)
storage_account_type = CLIArgumentType(options_list='--storage-account',
help='The name or ID of the storage account.',
@@ -241,7 +241,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
)
rehydrate_priority_type = CLIArgumentType(
arg_type=get_enum_type(t_rehydrate_priority), options_list=('--rehydrate-priority', '-r'),
- min_api='2019-02-02',
help='Indicate the priority with which to rehydrate an archived blob.')
action_type = CLIArgumentType(
@@ -272,7 +271,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
version_id_type = CLIArgumentType(
help='An optional blob version ID. This parameter is only for versioning enabled account. ',
- min_api='2019-12-12', is_preview=True
+ is_preview=True
)
with self.argument_context('storage') as c:
@@ -919,14 +918,14 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
'using this shared access signature.')
c.argument('full_uri', action='store_true',
help='Indicates that this command return the full blob URI and the shared access signature token.')
- c.argument('as_user', min_api='2018-11-09', action='store_true',
+ c.argument('as_user', action='store_true',
validator=as_user_validator,
help="Indicates that this command return the SAS signed with the user delegation key. "
"The expiry parameter and '--auth-mode login' are required if this argument is specified. ")
c.argument('id', options_list='--policy-name', validator=validate_policy,
help='The name of a stored access policy within the container\'s ACL.',
completer=get_storage_acl_name_completion_list(t_base_blob_service, 'container_name',
- 'get_container_acl'))
+ 'get_access_policy'))
c.argument('permission', options_list='--permissions',
help=sas_help.format(get_permission_help_string(t_blob_permissions)),
validator=get_permission_validator(t_blob_permissions))
@@ -946,8 +945,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('time_to_restore', type=get_datetime_type(True), options_list=['--time-to-restore', '-t'],
help='Restore blob to the specified time, which should be UTC datetime in (Y-m-d\'T\'H:M:S\'Z\').')
- with self.argument_context('storage blob rewrite', resource_type=ResourceType.DATA_STORAGE_BLOB,
- min_api='2020-04-08') as c:
+ with self.argument_context('storage blob rewrite', resource_type=ResourceType.DATA_STORAGE_BLOB) as c:
c.register_blob_arguments()
c.register_precondition_options()
@@ -1060,10 +1058,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('file_path', options_list=('--file', '-f'), type=file_type, completer=FilesCompleter(),
help='Path of the file to upload as the blob content.', validator=validate_upload_blob)
- c.argument('data', help='The blob data to upload.', required=False, is_preview=True, min_api='2019-02-02')
+ c.argument('data', help='The blob data to upload.', required=False, is_preview=True)
c.argument('length', type=int, help='Number of bytes to read from the stream. This is optional, but should be '
- 'supplied for optimal performance. Cooperate with --data.', is_preview=True,
- min_api='2019-02-02')
+ 'supplied for optimal performance. Cooperate with --data.', is_preview=True)
c.argument('overwrite', arg_type=get_three_state_flag(), arg_group="Additional Flags",
help='Whether the blob to be uploaded should overwrite the current data. If True, blob upload '
'operation will overwrite the existing data. If set to False, the operation will fail with '
@@ -1077,7 +1074,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
help='The max length in bytes permitted for the append blob.')
c.argument('blob_type', options_list=('--type', '-t'), validator=validate_blob_type,
arg_type=get_enum_type(get_blob_types()), arg_group="Additional Flags")
- c.argument('validate_content', action='store_true', min_api='2016-05-31', arg_group="Content Control")
+ c.argument('validate_content', action='store_true', arg_group="Content Control")
c.extra('no_progress', progress_type, validator=add_progress_callback, arg_group="Additional Flags")
c.extra('tier', tier_type, validator=blob_tier_validator_track2, arg_group="Additional Flags")
c.argument('encryption_scope', validator=validate_encryption_scope_client_params,
@@ -1104,7 +1101,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('max_connections', type=int, arg_group="Additional Flags",
help='Maximum number of parallel connections to use when the blob size exceeds 64MB.')
c.argument('maxsize_condition', arg_group='Content Control')
- c.argument('validate_content', action='store_true', min_api='2016-05-31', arg_group='Content Control')
+ c.argument('validate_content', action='store_true', arg_group='Content Control')
c.argument('blob_type', options_list=('--type', '-t'), arg_type=get_enum_type(get_blob_types()),
arg_group="Additional Flags")
c.extra('no_progress', progress_type, validator=add_progress_callback, arg_group="Additional Flags")
@@ -1144,7 +1141,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('open_mode', help='Mode to use when opening the file. Note that specifying append only open_mode '
'prevents parallel download. So, max_connections must be set to 1 '
'if this open_mode is used.')
- c.extra('validate_content', action='store_true', min_api='2016-05-31',
+ c.extra('validate_content', action='store_true',
help='If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the '
'hash of the content that has arrived with the hash that was sent. This is primarily valuable for '
'detecting bitflips on the wire if using http instead of https, as https (the default), '
@@ -1331,7 +1328,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('container_name', options_list=['--destination-container', '-c'], required=True,
help='The container name.')
c.extra('destination_lease', options_list='--destination-lease-id',
- help='The lease ID specified for this header must match the lease ID of the estination blob. '
+ help='The lease ID specified for this header must match the lease ID of the destination blob. '
'If the request does not include the lease ID or it is not valid, the operation fails with status '
'code 412 (Precondition Failed).')
c.extra('source_lease', options_list='--source-lease-id', arg_group='Copy Source',
@@ -1365,15 +1362,42 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
with self.argument_context('storage blob incremental-copy start') as c:
from azure.cli.command_modules.storage._validators import process_blob_source_uri
+ c.register_blob_arguments()
c.register_source_uri_arguments(validator=process_blob_source_uri, blob_only=True)
- c.argument('destination_if_modified_since', arg_group='Pre-condition', arg_type=if_modified_since_type)
- c.argument('destination_if_unmodified_since', arg_group='Pre-condition', arg_type=if_unmodified_since_type)
- c.argument('destination_if_match', arg_group='Pre-condition')
- c.argument('destination_if_none_match', arg_group='Pre-condition')
- c.argument('container_name', container_name_type, options_list=('--destination-container', '-c'))
- c.argument('blob_name', blob_name_type, options_list=('--destination-blob', '-b'),
+ c.argument('destination_if_modified_since', arg_group='Pre-condition',
+ help='Commence only if modified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')')
+ c.argument('destination_if_unmodified_since', arg_group='Pre-condition',
+ help='Commence only if unmodified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')',)
+ c.argument('destination_if_match', arg_group='Pre-condition',
+ help='An ETag value, or the wildcard character (*). Specify an ETag value for this conditional '
+ 'header to copy the blob only if the specified ETag value matches the ETag value for an '
+ 'existing destination blob. If the ETag for the destination blob does not match the ETag '
+ 'specified for If-Match, the Blob service returns status code 412 (Precondition Failed).')
+ c.argument('destination_if_none_match', arg_group='Pre-condition',
+ help="An ETag value, or the wildcard character (*). Specify an ETag value for this conditional "
+ "header to copy the blob only if the specified ETag value does not match the ETag value for "
+ "the destination blob. Specify the wildcard character (*) to perform the operation only if the "
+ "destination blob does not exist. If the specified condition isn't met, the Blob service "
+ "returns status code 412 (Precondition Failed).")
+ c.argument('container_name', options_list=('--destination-container', '-c'), required=True,
+ help='The container name.')
+ c.argument('blob_name', options_list=('--destination-blob', '-b'), required=True,
help='Name of the destination blob. If the exists, it will be overwritten.')
- c.argument('source_lease_id', arg_group='Copy Source')
+ c.extra('destination_lease', options_list='--destination-lease-id',
+ help='The lease ID specified for this header must match the lease ID of the destination blob. '
+ 'If the request does not include the lease ID or it is not valid, the operation fails with status '
+ 'code 412 (Precondition Failed).')
+ c.extra('source_lease', options_list='--source-lease-id', arg_group='Copy Source',
+ help='Specify this to perform the Copy Blob operation only if the lease ID given matches the '
+ 'active lease ID of the source blob.')
+ c.extra('metadata', nargs='+',
+ help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.',
+ validator=validate_metadata)
+
+ with self.argument_context('storage blob incremental-copy cancel') as c:
+ c.register_blob_arguments()
+ c.argument('copy_id', help='Copy identifier provided in the copy.id of the original copy_blob operation.')
+ c.extra('lease', options_list='--lease-id', help='Required if the destination blob has an active infinite lease.')
with self.argument_context('storage blob query') as c:
from ._validators import validate_text_configuration
@@ -1441,7 +1465,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.extra('destination_container', options_list=['--container', '-c'], required=True,
help='The sync destination container.')
c.extra('destination_path', options_list=['--destination', '-d'],
- validator=validate_azcopy_upload_destination_url,
+ validator=validate_azcopy_sync_destination_path,
help='The sync destination path.')
c.argument('source', options_list=['--source', '-s'],
help='The source file path to sync from.')
@@ -1581,7 +1605,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('container_name', container_name_type)
c.argument('policy_name', options_list=('--name', '-n'), help='The stored access policy name.',
completer=get_storage_acl_name_completion_list(t_base_blob_service, 'container_name',
- 'get_container_acl'))
+ 'get_access_policy'))
help_str = 'Allowed values: {}. Can be combined'.format(get_permission_help_string(t_container_permissions))
c.argument('permission', options_list='--permissions', help=help_str,
validator=get_permission_validator(t_container_permissions))
@@ -1608,7 +1632,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('id', options_list='--policy-name', validator=validate_policy,
help='The name of a stored access policy within the container\'s ACL.',
completer=get_storage_acl_name_completion_list(t_base_blob_service, 'container_name',
- 'get_container_acl'))
+ 'get_access_policy'))
c.argument('permission', options_list='--permissions',
help=sas_help.format(get_permission_help_string(t_container_permissions)),
validator=get_permission_validator(t_container_permissions))
@@ -1622,7 +1646,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
'using this shared access signature.')
c.argument('content_type', help='Response header value for Content-Type when resource is accessed '
'using this shared access signature.')
- c.argument('as_user', min_api='2018-11-09', action='store_true',
+ c.argument('as_user', action='store_true',
validator=as_user_validator,
help="Indicates that this command return the SAS signed with the user delegation key. "
"The expiry parameter and '--auth-mode login' are required if this argument is specified. ")
@@ -1675,7 +1699,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
help='Specify that container metadata to be returned in the response.')
c.argument('show_next_marker', action='store_true', is_preview=True,
help='Show nextMarker in result when specified.')
- c.argument('include_deleted', arg_type=get_three_state_flag(), min_api='2020-02-10',
+ c.argument('include_deleted', arg_type=get_three_state_flag(),
help='Specify that deleted containers to be returned in the response. This is for container restore '
'enabled account. The default value is `False`')
@@ -2151,7 +2175,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.extra('no_progress', progress_type, validator=add_progress_callback)
c.argument('max_connections', type=int, help='Maximum number of parallel connections to use.')
c.extra('share_name', share_name_type)
- c.argument('validate_content', action='store_true', min_api='2016-05-31',
+ c.argument('validate_content', action='store_true',
help='If true, calculates an MD5 hash for each range of the file. The storage service checks the '
'hash of the content that has arrived with the hash that was sent. This is primarily valuable '
'for detecting bitflips on the wire if using http instead of https as https (the default) will '
@@ -2183,7 +2207,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('source', options_list=('--source', '-s'), validator=process_file_upload_batch_parameters)
c.argument('destination', options_list=('--destination', '-d'))
c.argument('max_connections', arg_group='Download Control', type=int)
- c.argument('validate_content', action='store_true', min_api='2016-05-31')
+ c.argument('validate_content', action='store_true')
c.register_content_settings_argument(t_file_content_settings, update=False, arg_group='Content Settings')
c.extra('no_progress', progress_type, validator=add_progress_callback)
@@ -2192,7 +2216,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.argument('source', options_list=('--source', '-s'), validator=process_file_download_batch_parameters)
c.argument('destination', options_list=('--destination', '-d'))
c.argument('max_connections', arg_group='Download Control', type=int)
- c.argument('validate_content', action='store_true', min_api='2016-05-31')
+ c.argument('validate_content', action='store_true')
c.extra('no_progress', progress_type, validator=add_progress_callback)
c.extra('snapshot', help='The snapshot parameter is an opaque DateTime value that, when present, '
'specifies the snapshot.')
@@ -2377,7 +2401,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
from .completers import get_storage_acl_name_completion_list
c.argument('policy_name', options_list=('--name', '-n'), help='The stored access policy name.',
- completer=get_storage_acl_name_completion_list(t_table_service, 'table_name', 'get_table_acl'))
+ completer=get_storage_acl_name_completion_list(t_table_service, 'table_name', 'get_table_access_policy'))
help_str = 'Allowed values: (r)ead/query (a)dd (u)pdate (d)elete. Can be combined.'
c.argument('permission', options_list='--permissions', help=help_str, validator=table_permission_validator)
@@ -2392,7 +2416,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
c.register_sas_arguments()
c.argument('id', options_list='--policy-name',
help='The name of a stored access policy within the table\'s ACL.',
- completer=get_storage_acl_name_completion_list(t_table_service, 'table_name', 'get_table_acl'))
+ completer=get_storage_acl_name_completion_list(t_table_service, 'table_name', 'get_table_access_policy'))
c.argument('permission', options_list='--permissions',
help=sas_help.format('(r)ead/query (a)dd (u)pdate (d)elete'),
validator=table_permission_validator)
@@ -2479,7 +2503,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
'using this shared access signature.')
c.argument('content_type', help='Response header value for Content-Type when resource is accessed'
'using this shared access signature.')
- c.argument('as_user', min_api='2018-11-09', action='store_true',
+ c.argument('as_user', action='store_true',
validator=as_user_validator,
help="Indicates that this command return the SAS signed with the user delegation key. "
"The expiry parameter and '--auth-mode login' are required if this argument is specified. ")
@@ -2515,8 +2539,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
'generator will begin returning results from the point where the previous '
'generator stopped.')
- with self.argument_context('storage fs service-properties update', resource_type=ResourceType.DATA_STORAGE_FILEDATALAKE,
- min_api='2020-06-12') as c:
+ with self.argument_context('storage fs service-properties update',
+ resource_type=ResourceType.DATA_STORAGE_FILEDATALAKE) as c:
c.argument('delete_retention', arg_type=get_three_state_flag(), arg_group='Soft Delete',
help='Enable soft-delete.')
c.argument('delete_retention_period', type=int, arg_group='Soft Delete',
diff --git a/src/azure-cli/azure/cli/command_modules/storage/_validators.py b/src/azure-cli/azure/cli/command_modules/storage/_validators.py
index 013f9bca89c..3b8118eb039 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/_validators.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/_validators.py
@@ -13,14 +13,10 @@
from azure.cli.core.util import get_file_json, shell_safe_json_parse
from azure.cli.core.azclierror import UnrecognizedArgumentError
-from azure.cli.command_modules.storage._client_factory import (get_storage_data_service_client,
- blob_data_service_factory,
- storage_client_factory,
+from azure.cli.command_modules.storage._client_factory import (storage_client_factory,
cf_adls_file_system)
from azure.cli.command_modules.storage.util import glob_files_locally, guess_content_type
-from azure.cli.command_modules.storage.sdkutil import get_table_data_type
from azure.cli.command_modules.storage.url_quote_util import encode_for_url
-from azure.cli.command_modules.storage.oauth_token_util import TokenUpdater
from knack.log import get_logger
from knack.util import CLIError
@@ -57,20 +53,6 @@ def _query_account_rg(cli_ctx, account_name):
raise ValueError("Storage account '{}' not found.".format(account_name))
-def _create_token_credential(cli_ctx):
- from knack.cli import EVENT_CLI_POST_EXECUTE
-
- TokenCredential = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'common#TokenCredential')
-
- token_credential = TokenCredential()
- updater = TokenUpdater(token_credential, cli_ctx)
-
- def _cancel_timer_event_handler(_, **__):
- updater.cancel()
- cli_ctx.register_event(EVENT_CLI_POST_EXECUTE, _cancel_timer_event_handler)
- return token_credential
-
-
# region PARAMETER VALIDATORS
def parse_storage_account(cmd, namespace):
"""Parse storage account which can be either account name or account id"""
@@ -116,17 +98,6 @@ def process_resource_group(cmd, namespace):
namespace.resource_group_name = _query_account_rg(cmd.cli_ctx, namespace.account_name)[0]
-def validate_table_payload_format(cmd, namespace):
- t_table_payload = get_table_data_type(cmd.cli_ctx, 'table', 'TablePayloadFormat')
- if namespace.accept:
- formats = {
- 'none': t_table_payload.JSON_NO_METADATA,
- 'minimal': t_table_payload.JSON_MINIMAL_METADATA,
- 'full': t_table_payload.JSON_FULL_METADATA
- }
- namespace.accept = formats[namespace.accept.lower()]
-
-
def validate_bypass(namespace):
if namespace.bypass:
namespace.bypass = ', '.join(namespace.bypass) if isinstance(namespace.bypass, list) else namespace.bypass
@@ -144,10 +115,6 @@ def get_config_value(cmd, section, key, default):
return cmd.cli_ctx.config.get(section, key, default)
-def is_storagev2(import_prefix):
- return import_prefix.startswith('azure.multiapi.storagev2.') or import_prefix.startswith('azure.data.tables')
-
-
# pylint: disable=too-many-branches, too-many-statements
def validate_client_parameters(cmd, namespace):
""" Retrieves storage connection parameters from environment variables and parses out connection string into
@@ -164,16 +131,9 @@ def validate_client_parameters(cmd, namespace):
else:
n.account_name = get_config_value(cmd, 'storage', 'account', None)
if auth_mode == 'login':
- prefix = cmd.command_kwargs['resource_type'].value[0]
- # is_storagv2() is used to distinguish if the command is in track2 SDK
- # If yes, we will use get_login_credentials() as token credential
- if is_storagev2(prefix):
- from azure.cli.core._profile import Profile
- profile = Profile(cli_ctx=cmd.cli_ctx)
- n.token_credential, _, _ = profile.get_login_credentials(subscription_id=n._subscription)
- # Otherwise, we will assume it is in track1 and keep previous token updater
- else:
- n.token_credential = _create_token_credential(cmd.cli_ctx)
+ from azure.cli.core._profile import Profile
+ profile = Profile(cli_ctx=cmd.cli_ctx)
+ n.token_credential, _, _ = profile.get_login_credentials(subscription_id=n._subscription)
if hasattr(n, 'token_credential') and n.token_credential:
# give warning if there are account key args being ignored
@@ -268,7 +228,7 @@ def process_blob_source_uri(cmd, namespace):
"""
Validate the parameters referenced to a blob source and create the source URI from them.
"""
- from .util import create_short_lived_blob_sas, create_short_lived_blob_sas_v2
+ from .util import create_short_lived_blob_sas_v2
usage_string = \
'Invalid usage: {}. Supply only one of the following argument sets to specify source:' \
'\n\t --source-uri' \
@@ -322,12 +282,7 @@ def process_blob_source_uri(cmd, namespace):
raise ValueError(usage_string.format('Storage account name not found'))
if not sas:
- prefix = cmd.command_kwargs['resource_type'].value[0]
- if is_storagev2(prefix):
- sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container,
- blob, account_key=source_account_key)
- else:
- sas = create_short_lived_blob_sas(cmd, source_account_name, source_account_key, container, blob)
+ sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container, blob, account_key=source_account_key)
query_params = []
if sas:
query_params.append(sas)
@@ -345,8 +300,7 @@ def process_blob_source_uri(cmd, namespace):
def validate_source_uri(cmd, namespace): # pylint: disable=too-many-statements
- from .util import create_short_lived_blob_sas, create_short_lived_blob_sas_v2, \
- create_short_lived_file_sas, create_short_lived_file_sas_v2
+ from .util import create_short_lived_blob_sas_v2, create_short_lived_file_sas_v2
usage_string = \
'Invalid usage: {}. Supply only one of the following argument sets to specify source:' \
'\n\t --source-uri [--source-sas]' \
@@ -422,23 +376,15 @@ def validate_source_uri(cmd, namespace): # pylint: disable=too-many-statements
# Both source account name and either key or sas (or both) are now available
if not source_sas:
# generate a sas token even in the same account when the source and destination are not the same kind.
- prefix = cmd.command_kwargs['resource_type'].value[0]
if valid_file_source and (ns.get('container_name', None) or not same_account):
dir_name, file_name = os.path.split(path) if path else (None, '')
if dir_name == '':
dir_name = None
- if is_storagev2(prefix):
- source_sas = create_short_lived_file_sas_v2(cmd, source_account_name, source_account_key, share,
- dir_name, file_name)
- else:
- source_sas = create_short_lived_file_sas(cmd, source_account_name, source_account_key, share,
- dir_name, file_name)
+ source_sas = create_short_lived_file_sas_v2(cmd, source_account_name, source_account_key, share,
+ dir_name, file_name)
elif valid_blob_source and (ns.get('share_name', None) or not same_account):
- if is_storagev2(prefix):
- source_sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container,
- blob, account_key=source_account_key)
- else:
- source_sas = create_short_lived_blob_sas(cmd, source_account_name, source_account_key, container, blob)
+ source_sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container,
+ blob, account_key=source_account_key)
query_params = []
if source_sas:
@@ -461,8 +407,7 @@ def validate_source_uri(cmd, namespace): # pylint: disable=too-many-statements
def validate_source_url(cmd, namespace): # pylint: disable=too-many-statements, too-many-locals
- from .util import create_short_lived_blob_sas, create_short_lived_blob_sas_v2, create_short_lived_file_sas, \
- create_short_lived_file_sas_v2
+ from .util import create_short_lived_blob_sas_v2, create_short_lived_file_sas_v2
from azure.cli.core.azclierror import InvalidArgumentValueError, RequiredArgumentMissingError, \
MutuallyExclusiveArgumentError
usage_string = \
@@ -555,28 +500,17 @@ def validate_source_url(cmd, namespace): # pylint: disable=too-many-statements,
# Both source account name and either key or sas (or both) are now available
if not source_sas:
- prefix = cmd.command_kwargs['resource_type'].value[0]
# generate a sas token even in the same account when the source and destination are not the same kind.
if valid_file_source and (ns.get('container_name', None) or not same_account):
dir_name, file_name = os.path.split(path) if path else (None, '')
if dir_name == '':
dir_name = None
- if is_storagev2(prefix):
- source_sas = create_short_lived_file_sas_v2(cmd, source_account_name, source_account_key, share,
- dir_name, file_name)
- else:
- source_sas = create_short_lived_file_sas(cmd, source_account_name, source_account_key, share,
- dir_name, file_name)
+ source_sas = create_short_lived_file_sas_v2(cmd, source_account_name, source_account_key, share,
+ dir_name, file_name)
elif valid_blob_source and (ns.get('share_name', None) or not same_account):
- prefix = cmd.command_kwargs['resource_type'].value[0]
- # is_storagev2() is used to distinguish if the command is in track2 SDK
- # If yes, we will use get_login_credentials() as token credential
- if is_storagev2(prefix):
- source_sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container, blob,
- account_key=source_account_key,
- user_delegation_key=source_user_delegation_key)
- else:
- source_sas = create_short_lived_blob_sas(cmd, source_account_name, source_account_key, container, blob)
+ source_sas = create_short_lived_blob_sas_v2(cmd, source_account_name, container, blob,
+ account_key=source_account_key,
+ user_delegation_key=source_user_delegation_key)
query_params = []
if source_sas:
@@ -619,25 +553,14 @@ def _class_name(class_type):
# pylint: disable=too-many-locals
def validator(cmd, namespace):
- t_base_blob_service, t_file_service, t_blob_content_settings, t_file_content_settings = cmd.get_models(
- 'blob.baseblobservice#BaseBlobService',
- 'file#FileService',
- 'blob.models#ContentSettings',
- 'file.models#ContentSettings')
-
- prefix = cmd.command_kwargs['resource_type'].value[0]
- if is_storagev2(prefix):
- t_blob_content_settings = cmd.get_models('_models#ContentSettings',
- resource_type=ResourceType.DATA_STORAGE_BLOB)
- t_file_content_settings = cmd.get_models('_models#ContentSettings',
- resource_type=ResourceType.DATA_STORAGE_FILESHARE)
+ t_blob_content_settings = cmd.get_models('_models#ContentSettings',
+ resource_type=ResourceType.DATA_STORAGE_BLOB)
+ t_file_content_settings = cmd.get_models('_models#ContentSettings',
+ resource_type=ResourceType.DATA_STORAGE_FILESHARE)
# must run certain validators first for an update
if update:
validate_client_parameters(cmd, namespace)
- if not is_storagev2(prefix):
- if update and _class_name(settings_class) == _class_name(t_file_content_settings):
- get_file_path_validator()(namespace)
ns = vars(namespace)
clear_content_settings = ns.pop('clear_content_settings', False)
@@ -659,17 +582,9 @@ def validator(cmd, namespace):
container = ns.get('container_name')
blob = ns.get('blob_name')
lease_id = ns.get('lease_id')
- if is_storagev2(prefix):
- client = cf_blob_service(cmd.cli_ctx, account_kwargs).get_blob_client(container=container,
- blob=blob)
- props = client.get_blob_properties(lease=lease_id).content_settings
- else:
- client = get_storage_data_service_client(cmd.cli_ctx,
- service=t_base_blob_service,
- name=account,
- key=key, connection_string=cs, sas_token=sas,
- token_credential=token_credential)
- props = client.get_blob_properties(container, blob, lease_id=lease_id).properties.content_settings
+ client = cf_blob_service(cmd.cli_ctx, account_kwargs).get_blob_client(container=container,
+ blob=blob)
+ props = client.get_blob_properties(lease=lease_id).content_settings
elif _class_name(settings_class) == _class_name(t_file_content_settings):
share = ns.get('share_name')
@@ -679,14 +594,10 @@ def validator(cmd, namespace):
account_kwargs["snapshot"] = ns.get('snapshot')
if ns.get('enable_file_backup_request_intent', None):
account_kwargs["enable_file_backup_request_intent"] = ns.get("enable_file_backup_request_intent")
- if is_storagev2(prefix):
- client = cf_share_client(cmd.cli_ctx, account_kwargs).\
- get_directory_client(directory_path=directory).\
- get_file_client(file_name=filename)
- props = client.get_file_properties().content_settings
- else:
- client = get_storage_data_service_client(cmd.cli_ctx, t_file_service, account, key, cs, sas)
- props = client.get_file_properties(share, directory, filename).properties.content_settings
+ client = cf_share_client(cmd.cli_ctx, account_kwargs). \
+ get_directory_client(directory_path=directory). \
+ get_file_client(file_name=filename)
+ props = client.get_file_properties().content_settings
# create new properties
new_props = settings_class(
@@ -712,12 +623,11 @@ def validator(cmd, namespace):
# In track2 SDK, the content_md5 type should be bytearray. And then it will serialize to a string for request.
# To keep consistent with track1 input and CLI will treat all parameter values as string. Here is to transform
# content_md5 value to bytearray. And track2 SDK will serialize it into the right value with str type in header.
- if is_storagev2(prefix):
- if process_md5 and new_props.content_md5:
- # During update, the content_md5 might be bytearray, we do not need to convert again.
- if not isinstance(new_props.content_md5, bytearray):
- from .track2_util import _str_to_bytearray
- new_props.content_md5 = _str_to_bytearray(new_props.content_md5)
+ if process_md5 and new_props.content_md5:
+ # During update, the content_md5 might be bytearray, we do not need to convert again.
+ if not isinstance(new_props.content_md5, bytearray):
+ from .track2_util import _str_to_bytearray
+ new_props.content_md5 = _str_to_bytearray(new_props.content_md5)
ns['content_settings'] = new_props
@@ -1003,100 +913,6 @@ def validate_select(namespace):
namespace.select = ','.join(namespace.select)
-# pylint: disable=too-many-statements
-def get_source_file_or_blob_service_client(cmd, namespace):
- """
- Create the second file service or blob service client for batch copy command, which is used to
- list the source files or blobs. If both the source account and source URI are omitted, it
- indicates that user want to copy files or blobs in the same storage account, therefore the
- destination client will be set None hence the command will use destination client.
- """
- t_file_svc, t_block_blob_svc = cmd.get_models('file#FileService', 'blob.blockblobservice#BlockBlobService')
- usage_string = 'invalid usage: supply only one of the following argument sets:' + \
- '\n\t --source-uri [--source-sas]' + \
- '\n\tOR --source-container' + \
- '\n\tOR --source-container --source-account-name --source-account-key' + \
- '\n\tOR --source-container --source-account-name --source-sas' + \
- '\n\tOR --source-share --source-account-name --source-account-key' + \
- '\n\tOR --source-share --source-account-name --source-account-sas'
-
- ns = vars(namespace)
- source_account = ns.pop('source_account_name', None)
- source_key = ns.pop('source_account_key', None)
- source_uri = ns.pop('source_uri', None)
- source_sas = ns.get('source_sas', None)
- source_container = ns.get('source_container', None)
- source_share = ns.get('source_share', None)
-
- if source_uri and source_account:
- raise ValueError(usage_string)
- if not source_uri and bool(source_container) == bool(source_share): # must be container or share
- raise ValueError(usage_string)
-
- if (not source_account) and (not source_uri):
- # Set the source_client to None if neither source_account or source_uri is given. This
- # indicates the command that the source files share or blob container is in the same storage
- # account as the destination file share or blob container.
- #
- # The command itself should create the source service client since the validator can't
- # access the destination client through the namespace.
- #
- # A few arguments check will be made as well so as not to cause ambiguity.
- if source_key or source_sas:
- raise ValueError('invalid usage: --source-account-name is missing; the source account is assumed to be the'
- ' same as the destination account. Do not provide --source-sas or --source-account-key')
- ns['source_client'] = None
-
- if 'token_credential' not in ns: # not using oauth
- return
- # oauth is only possible through destination, must still get source creds
- source_account, source_key, source_sas = ns['account_name'], ns['account_key'], ns['sas_token']
-
- if source_account:
- if not (source_key or source_sas):
- # when neither storage account key or SAS is given, try to fetch the key in the current
- # subscription
- source_key = _query_account_key(cmd.cli_ctx, source_account)
-
- if source_container:
- ns['source_client'] = get_storage_data_service_client(
- cmd.cli_ctx, t_block_blob_svc, name=source_account, key=source_key, sas_token=source_sas)
- elif source_share:
- ns['source_client'] = get_storage_data_service_client(
- cmd.cli_ctx, t_file_svc, name=source_account, key=source_key, sas_token=source_sas)
- elif source_uri:
- if source_key or source_container or source_share:
- raise ValueError(usage_string)
-
- from .storage_url_helpers import StorageResourceIdentifier
- if source_sas:
- source_uri = '{}{}{}'.format(source_uri, '?', source_sas.lstrip('?'))
- identifier = StorageResourceIdentifier(cmd.cli_ctx.cloud, source_uri)
- nor_container_or_share = not identifier.container and not identifier.share
- if not identifier.is_url():
- raise ValueError('incorrect usage: --source-uri expects a URI')
- if identifier.blob or identifier.directory or identifier.filename or nor_container_or_share:
- raise ValueError('incorrect usage: --source-uri has to be blob container or file share')
-
- if identifier.sas_token:
- ns['source_sas'] = identifier.sas_token
- else:
- source_key = _query_account_key(cmd.cli_ctx, identifier.account_name)
-
- if identifier.container:
- ns['source_container'] = identifier.container
- if identifier.account_name != ns.get('account_name'):
- ns['source_client'] = get_storage_data_service_client(
- cmd.cli_ctx, t_block_blob_svc, name=identifier.account_name, key=source_key,
- sas_token=identifier.sas_token)
- elif identifier.share:
- ns['source_share'] = identifier.share
- if identifier.account_name != ns.get('account_name'):
- ns['source_client'] = get_storage_data_service_client(
- cmd.cli_ctx, t_file_svc, name=identifier.account_name, key=source_key,
- sas_token=identifier.sas_token)
-
-
def get_source_file_or_blob_service_client_track2(cmd, namespace):
"""
Create the second file service or blob service client for batch copy command, which is used to
@@ -1140,7 +956,11 @@ def get_source_file_or_blob_service_client_track2(cmd, namespace):
if source_key or source_sas:
raise ValueError('invalid usage: --source-account-name is missing; the source account is assumed to be the'
' same as the destination account. Do not provide --source-sas or --source-account-key')
+ ns['source_client'] = None
+ if 'token_credential' not in ns: # not using oauth
+ return
+ # oauth is only possible through destination, must still get source creds
source_account, source_key, source_sas = ns['account_name'], ns['account_key'], ns['sas_token']
if source_account and not is_oauth:
@@ -1178,7 +998,7 @@ def get_source_file_or_blob_service_client_track2(cmd, namespace):
ns['source_container'] = source_container
ns['source_share'] = source_share
# get sas token for source
- if not source_sas and not is_oauth:
+ if not source_sas and not is_oauth and source_key != 'fake_key':
from .util import create_short_lived_container_sas_track2, create_short_lived_share_sas_track2
if source_container:
source_sas = create_short_lived_container_sas_track2(cmd, account_name=source_account,
@@ -1490,19 +1310,6 @@ def ipv4_range_type(string):
return string
-def resource_type_type(loader):
- """ Returns a function which validates that resource types string contains only a combination of service,
- container, and object. Their shorthand representations are s, c, and o. """
-
- def impl(string):
- t_resources = loader.get_models('common.models#ResourceTypes')
- if set(string) - set("sco"):
- raise ValueError
- return t_resources(_str=''.join(set(string)))
-
- return impl
-
-
def resource_type_type_v2(loader):
""" Returns a function which validates that resource types string contains only a combination of service,
container, and object. Their shorthand representations are s, c, and o. """
@@ -1524,19 +1331,6 @@ def impl(string):
return impl
-def services_type(loader):
- """ Returns a function which validates that services string contains only a combination of blob, queue, table,
- and file. Their shorthand representations are b, q, t, and f. """
-
- def impl(string):
- t_services = loader.get_models('common.models#Services')
- if set(string) - set("bqtf"):
- raise ValueError
- return t_services(_str=''.join(set(string)))
-
- return impl
-
-
def services_type_v2():
""" Returns a function which validates that services string contains only a combination of blob, queue, table,
and file. Their shorthand representations are b, q, t, and f. """
@@ -1573,14 +1367,11 @@ def page_blob_tier_validator(cmd, namespace):
raise ValueError('Blob tier is only applicable to page blobs on premium storage accounts.')
try:
- if is_storagev2(cmd.command_kwargs['resource_type'].value[0]):
- namespace.tier = getattr(cmd.get_models('_models#PremiumPageBlobTier'), namespace.tier)
- else:
- namespace.tier = getattr(cmd.get_models('blob.models#PremiumPageBlobTier'), namespace.tier)
+ namespace.tier = getattr(cmd.get_models('_models#PremiumPageBlobTier'), namespace.tier)
except AttributeError:
- from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names
+ from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names_track2
raise ValueError('Unknown premium page blob tier name. Choose among {}'.format(', '.join(
- get_blob_tier_names(cmd.cli_ctx, 'PremiumPageBlobTier'))))
+ get_blob_tier_names_track2(cmd.cli_ctx, '_models#PremiumPageBlobTier'))))
def block_blob_tier_validator(cmd, namespace):
@@ -1591,14 +1382,11 @@ def block_blob_tier_validator(cmd, namespace):
raise ValueError('Blob tier is only applicable to block blobs on standard storage accounts.')
try:
- if is_storagev2(cmd.command_kwargs['resource_type'].value[0]):
- namespace.tier = getattr(cmd.get_models('_models#StandardBlobTier'), namespace.tier)
- else:
- namespace.tier = getattr(cmd.get_models('blob.models#StandardBlobTier'), namespace.tier)
+ namespace.tier = getattr(cmd.get_models('_models#StandardBlobTier'), namespace.tier)
except AttributeError:
- from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names
+ from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names_track2
raise ValueError('Unknown block blob tier name. Choose among {}'.format(', '.join(
- get_blob_tier_names(cmd.cli_ctx, 'StandardBlobTier'))))
+ get_blob_tier_names_track2(cmd.cli_ctx, '_models#StandardBlobTier'))))
def page_blob_tier_validator_track2(cmd, namespace):
@@ -1608,21 +1396,13 @@ def page_blob_tier_validator_track2(cmd, namespace):
if namespace.blob_type != 'page' and namespace.tier:
raise ValueError('Blob tier is only applicable to page blobs on premium storage accounts.')
- track2 = False
try:
- if is_storagev2(cmd.command_kwargs['resource_type'].value[0]):
- track2 = True
- namespace.premium_page_blob_tier = getattr(cmd.get_models(
- '_generated.models._azure_blob_storage_enums#PremiumPageBlobAccessTier'), namespace.tier)
- else:
- namespace.premium_page_blob_tier = getattr(cmd.get_models('blob.models#PremiumPageBlobTier'),
- namespace.tier)
+ namespace.premium_page_blob_tier = getattr(cmd.get_models(
+ '_generated.models._azure_blob_storage_enums#PremiumPageBlobAccessTier'), namespace.tier)
except AttributeError:
from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names_track2
- tier_names = get_blob_tier_names_track2(cmd.cli_ctx, 'blob.models#PremiumPageBlobTier', track2)
- if track2:
- tier_names = get_blob_tier_names_track2(
- cmd.cli_ctx, '_generated.models._azure_blob_storage_enums#PremiumPageBlobAccessTier', track2)
+ tier_names = get_blob_tier_names_track2(
+ cmd.cli_ctx, '_generated.models._azure_blob_storage_enums#PremiumPageBlobAccessTier')
raise ValueError('Unknown premium page blob tier name. Choose among {}'.format(', '.join(tier_names)))
@@ -1633,18 +1413,11 @@ def block_blob_tier_validator_track2(cmd, namespace):
if namespace.blob_type != 'block' and namespace.tier:
raise ValueError('Blob tier is only applicable to block blobs on standard storage accounts.')
- track2 = False
try:
- if is_storagev2(cmd.command_kwargs['resource_type'].value[0]):
- track2 = True
- namespace.standard_blob_tier = getattr(cmd.get_models('_models#StandardBlobTier'), namespace.tier)
- else:
- namespace.standard_blob_tier = getattr(cmd.get_models('blob.models#StandardBlobTier'), namespace.tier)
+ namespace.standard_blob_tier = getattr(cmd.get_models('_models#StandardBlobTier'), namespace.tier)
except AttributeError:
from azure.cli.command_modules.storage.sdkutil import get_blob_tier_names_track2
- tier_names = get_blob_tier_names_track2(cmd.cli_ctx, 'blob.models#StandardBlobTier', track2)
- if track2:
- tier_names = get_blob_tier_names_track2(cmd.cli_ctx, '_models#StandardBlobTier', track2)
+ tier_names = get_blob_tier_names_track2(cmd.cli_ctx, '_models#StandardBlobTier')
raise ValueError('Unknown block blob tier name. Choose among {}'.format(', '.join(tier_names)))
@@ -1685,13 +1458,19 @@ def blob_rehydrate_priority_validator(namespace):
namespace.rehydrate_priority = 'Standard'
-def validate_azcopy_upload_destination_url(cmd, namespace):
- client = blob_data_service_factory(cmd.cli_ctx, {
- 'account_name': namespace.account_name, 'connection_string': namespace.connection_string})
+def validate_azcopy_sync_destination_path(cmd, namespace):
+ kwargs = {'account_name': namespace.account_name,
+ 'account_key': namespace.account_key,
+ 'connection_string': namespace.connection_string,
+ 'sas_token': namespace.sas_token}
+ if hasattr(namespace, 'token_credential'):
+ kwargs.update({'token_credential': namespace.token_credential})
+ client = cf_blob_service(cmd.cli_ctx, kwargs)
destination_path = namespace.destination_path
if not destination_path:
destination_path = ''
- url = client.make_blob_url(namespace.destination_container, destination_path)
+ from .operations.blob import create_blob_url
+ url = create_blob_url(client, namespace.destination_container, destination_path, snapshot=None)
namespace.destination = url
del namespace.destination_container
del namespace.destination_path
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/__init__.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/__init__.py
index f6acc11aa4e..6439dd20eb7 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/__init__.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/__init__.py
@@ -8,3 +8,4 @@
# pylint: skip-file
# flake8: noqa
+from ._clients import *
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/_clients.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/_clients.py
new file mode 100644
index 00000000000..8dbb31720b0
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/_clients.py
@@ -0,0 +1,46 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_client("AAZMicrosoftBlobstorageDataPlaneClient_storage")
+class AAZMicrosoftBlobstorageDataPlaneClient(AAZBaseClient):
+ _CLOUD_HOST_TEMPLATES = {
+ CloudNameEnum.AzureCloud: "https://{accountName}.blob.core.windows.net",
+ }
+
+ _AAD_CREDENTIAL_SCOPES = [
+ "https://storage.azure.com/.default",
+ ]
+
+ @classmethod
+ def _build_base_url(cls, ctx, **kwargs):
+ endpoint = None
+ if not endpoint:
+ endpoint = cls._CLOUD_HOST_TEMPLATES.get(ctx.cli_ctx.cloud.name, None)
+ return endpoint
+
+ @classmethod
+ def _build_configuration(cls, ctx, credential, **kwargs):
+ return AAZClientConfiguration(
+ credential=credential,
+ credential_scopes=cls._AAD_CREDENTIAL_SCOPES,
+ **kwargs
+ )
+
+
+class _AAZMicrosoftBlobstorageDataPlaneClientHelper:
+ """Helper class for AAZMicrosoftBlobstorageDataPlaneClient"""
+
+
+__all__ = [
+ "AAZMicrosoftBlobstorageDataPlaneClient",
+]
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__cmd_group.py
new file mode 100644
index 00000000000..006b6436e0f
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__cmd_group.py
@@ -0,0 +1,25 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_command_group(
+ "storage blob",
+)
+class __CMDGroup(AAZCommandGroup):
+ """Manage object storage for unstructured data (blobs).
+
+ Please specify one of the following authentication parameters for your commands: --auth- mode, --account-key, --connection-string, --sas-token. You also can use corresponding environment variables to store your authentication credentials, e.g. AZURE_STORAGE_KEY, AZURE_STORAGE_CONNECTION_STRING and AZURE_STORAGE_SAS_TOKEN.
+ """
+ pass
+
+
+__all__ = ["__CMDGroup"]
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__init__.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__init__.py
new file mode 100644
index 00000000000..5a9d61963d6
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/__init__.py
@@ -0,0 +1,11 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from .__cmd_group import *
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__cmd_group.py
new file mode 100644
index 00000000000..6f81d745877
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__cmd_group.py
@@ -0,0 +1,23 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_command_group(
+ "storage blob incremental-copy",
+)
+class __CMDGroup(AAZCommandGroup):
+ """Manage blob incremental copy operations.
+ """
+ pass
+
+
+__all__ = ["__CMDGroup"]
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__init__.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__init__.py
new file mode 100644
index 00000000000..0fae59e6503
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/__init__.py
@@ -0,0 +1,12 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from .__cmd_group import *
+from ._start import *
diff --git a/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/_start.py b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/_start.py
new file mode 100644
index 00000000000..733a2950e90
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/blob/incremental_copy/_start.py
@@ -0,0 +1,236 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+#
+# Code generated by aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_command(
+ "storage blob incremental-copy start",
+)
+class Start(AAZCommand):
+ """Copies an incremental copy of a blob asynchronously. Create Copy Incremental operation copies a snapshot of the source page blob to a destination page blob. The snapshot is copied such that only the differential changes between the previously copied snapshot are transferred to the destination. The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual.
+ """
+
+ _aaz_info = {
+ "version": "2025-07-05",
+ "resources": [
+ ["data-plane:microsoft.blobstorage", "/{containername}/{}?comp=incrementalcopy", "2025-07-05"],
+ ]
+ }
+
+ def _handler(self, command_args):
+ super()._handler(command_args)
+ self._execute_operations()
+ return None
+
+ _args_schema = None
+
+ @classmethod
+ def _build_arguments_schema(cls, *args, **kwargs):
+ if cls._args_schema is not None:
+ return cls._args_schema
+ cls._args_schema = super()._build_arguments_schema(*args, **kwargs)
+
+ # define Arg Group "Client"
+
+ _args_schema = cls._args_schema
+ _args_schema.account_name = AAZStrArg(
+ options=["--account-name"],
+ arg_group="Client",
+ required=True,
+ )
+
+ # define Arg Group ""
+
+ _args_schema = cls._args_schema
+ _args_schema.x_ms_if_tags = AAZStrArg(
+ options=["--x-ms-if-tags"],
+ help="Specify a SQL where clause on blob tags to operate only on blobs with a matching value.",
+ )
+ _args_schema.x_ms_version = AAZStrArg(
+ options=["--x-ms-version"],
+ help="Specifies the version of the operation to use for this request.",
+ required=True,
+ default="2025-07-05",
+ enum={"2025-07-05": "2025-07-05"},
+ )
+ _args_schema.destination_blob = AAZStrArg(
+ options=["-b", "--destination-blob"],
+ help="Name of the destination blob. If the exists, it will be overwritten.",
+ required=True,
+ fmt=AAZStrArgFormat(
+ pattern="^[a-zA-Z0-9]+(?:/[a-zA-Z0-9]+)*(?:\\.[a-zA-Z0-9]+){0,1}$",
+ max_length=1024,
+ min_length=1,
+ ),
+ )
+ _args_schema.destination_container = AAZStrArg(
+ options=["-c", "--destination-container"],
+ help="The container name.",
+ required=True,
+ )
+ _args_schema.comp = AAZStrArg(
+ options=["--comp"],
+ help="comp",
+ required=True,
+ enum={"incrementalcopy": "incrementalcopy"},
+ )
+ _args_schema.timeout = AAZIntArg(
+ options=["--timeout"],
+ help="The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.",
+ fmt=AAZIntArgFormat(
+ minimum=0,
+ ),
+ )
+
+ # define Arg Group "Copy Source"
+
+ _args_schema = cls._args_schema
+ _args_schema.source_uri = AAZStrArg(
+ options=["-u", "--source-uri"],
+ arg_group="Copy Source",
+ help="Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature.",
+ required=True,
+ )
+
+ # define Arg Group "Pre-condition"
+
+ _args_schema = cls._args_schema
+ _args_schema.destination_if_match = AAZStrArg(
+ options=["--destination-if-match"],
+ arg_group="Pre-condition",
+ help="Specify an ETag value to operate only on blobs with a matching value.",
+ )
+ _args_schema.destination_if_modified_since = AAZDateTimeArg(
+ options=["--destination-if-modified-since"],
+ arg_group="Pre-condition",
+ help="Specify this header value to operate only on a blob if it has been modified since the specified date/time.",
+ )
+ _args_schema.destination_if_none_match = AAZStrArg(
+ options=["--destination-if-none-match"],
+ arg_group="Pre-condition",
+ help="Specify an ETag value to operate only on blobs without a matching value.",
+ )
+ _args_schema.destination_if_unmodified_since = AAZDateTimeArg(
+ options=["--destination-if-unmodified-since"],
+ arg_group="Pre-condition",
+ help="Specify this header value to operate only on a blob if it has not been modified since the specified date/time.",
+ )
+ return cls._args_schema
+
+ def _execute_operations(self):
+ self.pre_operations()
+ self.PageBlobCopyIncremental(ctx=self.ctx)()
+ self.post_operations()
+
+ @register_callback
+ def pre_operations(self):
+ pass
+
+ @register_callback
+ def post_operations(self):
+ pass
+
+ class PageBlobCopyIncremental(AAZHttpOperation):
+ CLIENT_TYPE = "AAZMicrosoftBlobstorageDataPlaneClient_storage"
+
+ def __call__(self, *args, **kwargs):
+ request = self.make_request()
+ session = self.client.send_request(request=request, stream=False, **kwargs)
+ if session.http_response.status_code in [202]:
+ return self.on_202(session)
+
+ return self.on_error(session.http_response)
+
+ @property
+ def url(self):
+ return self.client.format_url(
+ "/{containerName}/{blob}?comp=incrementalcopy",
+ **self.url_parameters
+ )
+
+ @property
+ def method(self):
+ return "PUT"
+
+ @property
+ def error_format(self):
+ return "ODataV4Format"
+
+ @property
+ def url_parameters(self):
+ parameters = {
+ **self.serialize_url_param(
+ "accountName", self.ctx.args.account_name,
+ skip_quote=True,
+ required=True,
+ ),
+ **self.serialize_url_param(
+ "blob", self.ctx.args.destination_blob,
+ required=True,
+ ),
+ **self.serialize_url_param(
+ "containerName", self.ctx.args.destination_container,
+ required=True,
+ ),
+ }
+ return parameters
+
+ @property
+ def query_parameters(self):
+ parameters = {
+ **self.serialize_query_param(
+ "comp", self.ctx.args.comp,
+ required=True,
+ ),
+ **self.serialize_query_param(
+ "timeout", self.ctx.args.timeout,
+ ),
+ }
+ return parameters
+
+ @property
+ def header_parameters(self):
+ parameters = {
+ **self.serialize_header_param(
+ "If-Match", self.ctx.args.destination_if_match,
+ ),
+ **self.serialize_header_param(
+ "If-Modified-Since", self.ctx.args.destination_if_modified_since,
+ ),
+ **self.serialize_header_param(
+ "If-None-Match", self.ctx.args.destination_if_none_match,
+ ),
+ **self.serialize_header_param(
+ "If-Unmodified-Since", self.ctx.args.destination_if_unmodified_since,
+ ),
+ **self.serialize_header_param(
+ "x-ms-copy-source", self.ctx.args.source_uri,
+ required=True,
+ ),
+ **self.serialize_header_param(
+ "x-ms-if-tags", self.ctx.args.x_ms_if_tags,
+ ),
+ **self.serialize_header_param(
+ "x-ms-version", self.ctx.args.x_ms_version,
+ required=True,
+ ),
+ }
+ return parameters
+
+ def on_202(self, session):
+ pass
+
+
+class _StartHelper:
+ """Helper class for Start"""
+
+
+__all__ = ["Start"]
diff --git a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py
index 4abdc96c4f2..47e765fb502 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py
@@ -145,9 +145,9 @@ def login_auth_for_azcopy(cmd):
return AzCopyCredentials(token_info=token_info)
-def client_auth_for_azcopy(cmd, client, service='blob'):
+def client_auth_for_azcopy(cmd, client):
# prefer oauth mode
- if client.token_credential:
+ if client.credential:
raw_token = Profile(cli_ctx=cmd.cli_ctx).get_raw_token(resource=STORAGE_RESOURCE_ENDPOINT)
token_info = raw_token[0][2]
try:
@@ -158,20 +158,6 @@ def client_auth_for_azcopy(cmd, client, service='blob'):
return AzCopyCredentials(tenant_id=tenant_id)
return AzCopyCredentials(token_info=token_info)
- # try to get sas
- azcopy_creds = storage_client_auth_for_azcopy(client, service)
- if azcopy_creds is not None:
- return azcopy_creds
-
- return None
-
-
-def storage_client_auth_for_azcopy(client, service):
- if service not in SERVICES:
- raise Exception('{} not one of: {}'.format(service, str(SERVICES))) # pylint: disable=broad-exception-raised
-
- if client.sas_token:
- return AzCopyCredentials(sas_token=client.sas_token)
return None
diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py
index b376fe78ebd..d337be7a9a0 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/commands.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py
@@ -3,8 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from azure.cli.command_modules.storage._client_factory import (cf_sa, cf_blob_container_mgmt, blob_data_service_factory,
- page_blob_service_factory,
+from azure.cli.command_modules.storage._client_factory import (cf_sa, cf_blob_container_mgmt,
multi_service_properties_factory,
cf_mgmt_policy, cf_sa_for_keys,
cf_mgmt_blob_services, cf_mgmt_file_shares,
@@ -77,12 +76,7 @@ def load_command_table(self, _): # pylint: disable=too-many-locals, too-many-st
operations_tmpl='azure.cli.command_modules.storage.operations.account#{}',
client_factory=cf_sa)
- block_blob_sdk = CliCommandType(
- operations_tmpl='azure.multiapi.storage.blob.blockblobservice#BlockBlobService.{}',
- client_factory=blob_data_service_factory,
- resource_type=ResourceType.DATA_STORAGE)
-
- def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DATA_STORAGE):
+ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.MGMT_STORAGE):
"""Returns a CliCommandType instance with specified operation template based on the given custom module name.
This is useful when the command is not defined in the default 'custom' module but instead in a module under
'operations' package."""
@@ -93,8 +87,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
resource_type=resource_type
)
- with self.command_group('storage', command_type=block_blob_sdk,
- custom_command_type=get_custom_sdk('azcopy', blob_data_service_factory)) as g:
+ with self.command_group('storage', custom_command_type=get_custom_sdk('azcopy', cf_blob_service)) as g:
g.storage_custom_command_oauth('remove', 'storage_remove')
with self.command_group('storage', custom_command_type=get_custom_sdk('azcopy', None)) as g:
@@ -382,6 +375,8 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
table_transformer=transform_boolean_for_table)
g.storage_custom_command_oauth('delete-batch', 'storage_blob_delete_batch', client_factory=cf_blob_service,
validator=process_blob_delete_batch_parameters)
+ g.storage_custom_command_oauth('incremental-copy start', 'incremental_copy_start')
+ g.storage_command_oauth('incremental-copy cancel', 'abort_copy')
blob_service_custom_sdk = get_custom_sdk('blob', client_factory=cf_blob_service,
resource_type=ResourceType.DATA_STORAGE_BLOB)
@@ -432,22 +427,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
custom_command_type=storage_blob_custom_type) as g:
g.custom_command('restore', 'restore_blob_ranges', supports_no_wait=True)
- with self.command_group('storage blob incremental-copy',
- operations_tmpl='azure.multiapi.storage.blob.pageblobservice#PageBlobService.{}',
- client_factory=page_blob_service_factory,
- resource_type=ResourceType.DATA_STORAGE,
- min_api='2016-05-31') as g:
- g.storage_command_oauth('start', 'incremental_copy_blob')
-
- with self.command_group('storage blob incremental-copy',
- operations_tmpl='azure.multiapi.storage.blob.blockblobservice#BlockBlobService.{}',
- client_factory=page_blob_service_factory,
- resource_type=ResourceType.DATA_STORAGE,
- min_api='2016-05-31') as g:
- g.storage_command_oauth('cancel', 'abort_copy_blob')
-
- with self.command_group('storage blob', command_type=block_blob_sdk,
- custom_command_type=get_custom_sdk('azcopy', blob_data_service_factory)) as g:
+ with self.command_group('storage blob', custom_command_type=get_custom_sdk('azcopy', cf_blob_service)) as g:
g.storage_custom_command_oauth('sync', 'storage_blob_sync', is_preview=True)
container_client_sdk = CliCommandType(
@@ -534,8 +514,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
with self.command_group('storage container immutability-policy', command_type=blob_container_mgmt_sdk,
custom_command_type=get_custom_sdk('blob', cf_blob_container_mgmt,
- resource_type=ResourceType.MGMT_STORAGE),
- min_api='2018-02-01') as g:
+ resource_type=ResourceType.MGMT_STORAGE)) as g:
from azure.cli.command_modules.storage._transformers import transform_immutability_policy
g.show_command('show', 'get_immutability_policy',
@@ -548,8 +527,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
with self.command_group('storage container legal-hold', command_type=blob_container_mgmt_sdk,
custom_command_type=get_custom_sdk('blob', cf_blob_container_mgmt,
- resource_type=ResourceType.MGMT_STORAGE),
- min_api='2018-02-01') as g:
+ resource_type=ResourceType.MGMT_STORAGE)) as g:
g.custom_command('set', 'set_legal_hold')
g.custom_command('clear', 'clear_legal_hold')
g.show_command(
diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/acl.py b/src/azure-cli/azure/cli/command_modules/storage/operations/acl.py
deleted file mode 100644
index aee717253d2..00000000000
--- a/src/azure-cli/azure/cli/command_modules/storage/operations/acl.py
+++ /dev/null
@@ -1,97 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-
-def create_acl_policy(cmd, client, container_name, policy_name, start=None, expiry=None, permission=None, **kwargs):
- """Create a stored access policy on the containing object"""
- t_access_policy = cmd.get_models('common.models#AccessPolicy') or cmd.get_models('models#AccessPolicy')
-
- acl = _get_acl(cmd, client, container_name, **kwargs)
- acl[policy_name] = t_access_policy(permission, expiry, start)
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- return _set_acl(cmd, client, container_name, acl, **kwargs)
-
-
-def get_acl_policy(cmd, client, container_name, policy_name, **kwargs):
- """Show a stored access policy on a containing object"""
- acl = _get_acl(cmd, client, container_name, **kwargs)
- return acl.get(policy_name)
-
-
-def list_acl_policies(cmd, client, container_name, **kwargs):
- """List stored access policies on a containing object"""
- return _get_acl(cmd, client, container_name, **kwargs)
-
-
-def set_acl_policy(cmd, client, container_name, policy_name, start=None, expiry=None, permission=None, **kwargs):
- """Set a stored access policy on a containing object"""
- if not (start or expiry or permission):
- from knack.util import CLIError
- raise CLIError('Must specify at least one property when updating an access policy.')
-
- acl = _get_acl(cmd, client, container_name, **kwargs)
- try:
- policy = acl[policy_name]
- policy.start = start or policy.start
- policy.expiry = expiry or policy.expiry
- policy.permission = permission or policy.permission
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- except KeyError:
- from knack.util import CLIError
- raise CLIError('ACL does not contain {}'.format(policy_name))
- return _set_acl(cmd, client, container_name, acl, **kwargs)
-
-
-def delete_acl_policy(cmd, client, container_name, policy_name, **kwargs):
- """ Delete a stored access policy on a containing object """
- acl = _get_acl(cmd, client, container_name, **kwargs)
- del acl[policy_name]
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- return _set_acl(cmd, client, container_name, acl, **kwargs)
-
-
-def _get_service_container_type(cmd, client):
- from ..sdkutil import get_table_data_type
- t_block_blob_svc, t_file_svc, t_queue_svc = cmd.get_models('blob#BlockBlobService',
- 'file#FileService',
- 'queue#QueueService')
- t_table_svc = get_table_data_type(cmd.cli_ctx, 'table', 'TableService')
-
- if isinstance(client, t_block_blob_svc):
- return 'container'
- if isinstance(client, t_file_svc):
- return 'share'
- if isinstance(client, t_table_svc):
- return 'table'
- if isinstance(client, t_queue_svc):
- return 'queue'
- raise ValueError('Unsupported service {}'.format(type(client)))
-
-
-def _get_acl(cmd, client, container_name, **kwargs):
- container = _get_service_container_type(cmd, client)
- get_acl_fn = getattr(client, 'get_{}_acl'.format(container))
- lease_id = kwargs.get('lease_id', None)
- return get_acl_fn(container_name, lease_id=lease_id) if lease_id else get_acl_fn(container_name)
-
-
-def _set_acl(cmd, client, container_name, acl, **kwargs):
- from knack.util import CLIError
- try:
- method_name = 'set_{}_acl'.format(_get_service_container_type(cmd, client))
- method = getattr(client, method_name)
- return method(container_name, acl, **kwargs)
- except TypeError:
- raise CLIError("Failed to invoke SDK method {}. The installed azure SDK may not be"
- "compatible to this version of Azure CLI.".format(method_name))
- except AttributeError:
- raise CLIError("Failed to get function {} from {}. The installed azure SDK may not be "
- "compatible to this version of Azure CLI.".format(client.__class__.__name__, method_name))
diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/azcopy.py b/src/azure-cli/azure/cli/command_modules/storage/operations/azcopy.py
index 936f3eb9988..587351fe4a8 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/operations/azcopy.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/operations/azcopy.py
@@ -68,10 +68,9 @@ def storage_remove(cmd, client, service, target, recursive=None, exclude_pattern
elif service == 'blob':
flags.append('--from-to=BlobTrash')
- sas_token = client.sas_token
-
- if not sas_token and client.account_key:
- sas_token = _generate_sas_token(cmd, client.account_name, client.account_key, service=service,
+ sas_token = None
+ if not sas_token and client.credential and hasattr(client.credential, "account_key"):
+ sas_token = _generate_sas_token(cmd, client.account_name, client.credential.account_key, service=service,
resource_types='co',
permissions='rdl')
@@ -105,10 +104,9 @@ def storage_blob_sync(cmd, client, source, destination, delete_destination='true
if extra_options is not None:
flags.extend(extra_options)
- sas_token = client.sas_token
-
- if not sas_token and client.account_key:
- sas_token = _generate_sas_token(cmd, client.account_name, client.account_key, service='blob',
+ sas_token = None
+ if not sas_token and client.credential and hasattr(client.credential, "account_key"):
+ sas_token = _generate_sas_token(cmd, client.account_name, client.credential.account_key, service='blob',
resource_types='co',
permissions='rwdlac')
@@ -135,7 +133,7 @@ def _azcopy_blob_client(cmd, client):
def _azcopy_file_client(cmd, client):
- return AzCopy(creds=client_auth_for_azcopy(cmd, client, service='file'))
+ return AzCopy(creds=client_auth_for_azcopy(cmd, client))
def _azcopy_login_client(cmd):
diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/blob.py b/src/azure-cli/azure/cli/command_modules/storage/operations/blob.py
index 7963a7f7686..1bcc53c7cab 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/operations/blob.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/operations/blob.py
@@ -1089,3 +1089,40 @@ def exists(client, container_name, blob_name, snapshot, timeout):
else:
client = client.get_container_client(container=container_name)
return client.exists(timeout=timeout)
+
+
+def incremental_copy_start(client, cmd, copy_source=None, metadata=None,
+ destination_if_modified_since=None, destination_if_unmodified_since=None,
+ destination_if_match=None, destination_if_none_match=None, **kwargs):
+ from ..aaz.latest.storage.blob.incremental_copy import Start
+
+ cmd_args = {
+ "x_ms_version": "2025-07-05",
+ "account_name": client.account_name,
+ "destination_blob": client.blob_name,
+ "destination_container": client.container_name,
+ "source_uri": copy_source,
+ "comp": 'incrementalcopy',
+ "destination_if_modified_since": destination_if_modified_since,
+ "destination_if_unmodified_since": destination_if_unmodified_since,
+ "destination_if_match": destination_if_match,
+ "destination_if_none_match": destination_if_none_match,
+ }
+ _Start = Start(cli_ctx=cmd.cli_ctx)
+
+ def on_202(self, session):
+ result = dict(session.http_response.headers._store)
+ output = {
+ "completionTime": None,
+ "id": result.get('x-ms-copy-id')[1],
+ "progress": None,
+ "source": None,
+ "status": result.get('x-ms-copy-status')[1],
+ "statusDescription": None
+ }
+ self.ctx.vars._output = output
+
+ _Start.PageBlobCopyIncremental.on_202 = on_202
+
+ _Start(command_args=cmd_args)
+ return _Start.ctx.vars._output
diff --git a/src/azure-cli/azure/cli/command_modules/storage/sdkutil.py b/src/azure-cli/azure/cli/command_modules/storage/sdkutil.py
index fc12a26a13a..bde9695389c 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/sdkutil.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/sdkutil.py
@@ -5,50 +5,15 @@
"""Assist the command module to get correct type from SDK based on current API version"""
-from azure.cli.core.profiles import get_sdk, supported_api_version, ResourceType
-from azure.cli.core.profiles._shared import APIVersionException
-
-
-def cosmosdb_table_exists(cli_ctx):
- try:
- return supported_api_version(cli_ctx, ResourceType.DATA_COSMOS_TABLE, min_api='2017-04-17')
- except APIVersionException:
- return False
-
-
-def get_table_data_type(cli_ctx, module_name, *type_names):
- if cosmosdb_table_exists(cli_ctx):
- return get_sdk(cli_ctx, ResourceType.DATA_COSMOS_TABLE, *type_names, mod=module_name)
-
- return get_sdk(cli_ctx, ResourceType.DATA_STORAGE, *type_names, mod=module_name)
-
-
-def get_blob_service_by_type(cli_ctx, blob_type):
- type_to_service = {
- 'block': lambda ctx: get_sdk(ctx, ResourceType.DATA_STORAGE, 'BlockBlobService', mod='blob', checked=False),
- 'page': lambda ctx: get_sdk(ctx, ResourceType.DATA_STORAGE, 'PageBlobService', mod='blob', checked=False),
- 'append': lambda ctx: get_sdk(ctx, ResourceType.DATA_STORAGE, 'AppendBlobService', mod='blob', checked=False)
- }
-
- try:
- return type_to_service[blob_type](cli_ctx)
- except KeyError:
- return None
+from azure.cli.core.profiles import get_sdk, ResourceType
def get_blob_types():
return 'block', 'page', 'append'
-def get_blob_tier_names(cli_ctx, model):
- t_blob_tier_model = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob.models#' + model)
- return [v for v in dir(t_blob_tier_model) if not v.startswith('_')]
-
-
-def get_blob_tier_names_track2(cli_ctx, model_path, track2=False):
- t_blob_tier_model = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, model_path)
- if track2:
- t_blob_tier_model = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB, model_path)
+def get_blob_tier_names_track2(cli_ctx, model_path):
+ t_blob_tier_model = get_sdk(cli_ctx, ResourceType.DATA_STORAGE_BLOB, model_path)
return [v for v in dir(t_blob_tier_model) if not v.startswith('_')]
@@ -56,34 +21,10 @@ def get_delete_blob_snapshot_type_names():
return 'include', 'only'
-def get_delete_blob_snapshot_type(cli_ctx, name):
- t_delete_snapshot = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'DeleteSnapshot', mod='blob')
- return {'include': t_delete_snapshot.Include, 'only': t_delete_snapshot.Only}[name]
-
-
-def get_delete_file_snapshot_type_names():
- return ['include']
-
-
-def get_delete_file_snapshot_type(cli_ctx, name):
- t_delete_snapshot = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'DeleteSnapshot', mod='file.models')
- return {'include': t_delete_snapshot.Include}[name]
-
-
def get_container_access_type_names():
return 'off', 'blob', 'container'
-def get_container_access_type(cli_ctx, name):
- if name == 'off':
- return None
- if name == 'blob':
- return get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'PublicAccess', mod='blob.models').Blob
- if name == 'container':
- return get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'PublicAccess', mod='blob.models').Container
- raise KeyError
-
-
def get_fs_access_type_names():
return 'off', 'file', 'filesystem'
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_logging_operations.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_logging_operations.yaml
index 4505651bc01..5ad468e5fe5 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_logging_operations.yaml
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_logging_operations.yaml
@@ -15,12 +15,12 @@ interactions:
ParameterSetName:
- -g -n -o
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2024-01-01&$expand=kerb
response:
body:
- string: '{"keys":[{"creationTime":"2025-02-23T09:10:28.0811710Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-02-23T09:10:28.0811710Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
+ string: '{"keys":[{"creationTime":"2025-06-09T07:30:34.9834664Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-06-09T07:30:34.9834664Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
@@ -29,7 +29,7 @@ interactions:
content-type:
- application/json
date:
- - Sun, 23 Feb 2025 09:10:53 GMT
+ - Mon, 09 Jun 2025 07:31:02 GMT
expires:
- '-1'
pragma:
@@ -41,9 +41,9 @@ interactions:
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/70bb68c0-1462-4f78-8553-73aa3d255753
+ - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/f0f4016c-c3ba-4a64-8bed-2bb81a367878
x-ms-ratelimit-remaining-subscription-resource-requests:
- - '11995'
+ - '799'
status:
code: 200
message: OK
@@ -61,12 +61,12 @@ interactions:
ParameterSetName:
- -g -n -o
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2024-01-01
response:
body:
- string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"keyCreationTime":{"key1":"2025-02-23T09:10:28.0811710Z","key2":"2025-02-23T09:10:28.0811710Z"},"allowCrossTenantReplication":false,"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":false,"networkAcls":{"ipv6Rules":[],"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-02-23T09:10:30.0499969Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-02-23T09:10:30.0499969Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2025-02-23T09:10:27.9874239Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'
+ string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"keyCreationTime":{"key1":"2025-06-09T07:30:34.9834664Z","key2":"2025-06-09T07:30:34.9834664Z"},"allowCrossTenantReplication":false,"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":false,"networkAcls":{"ipv6Rules":[],"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-06-09T07:30:34.9990372Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2025-06-09T07:30:34.9990372Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2025-06-09T07:30:34.8428472Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'
headers:
cache-control:
- no-cache
@@ -75,7 +75,7 @@ interactions:
content-type:
- application/json
date:
- - Sun, 23 Feb 2025 09:10:54 GMT
+ - Mon, 09 Jun 2025 07:31:03 GMT
expires:
- '-1'
pragma:
@@ -87,7 +87,7 @@ interactions:
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- - '3748'
+ - '3749'
status:
code: 200
message: OK
@@ -102,33 +102,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:31:03 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:10:54 GMT
+ - Mon, 09 Jun 2025 07:31:03 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:10:55 GMT
+ - Mon, 09 Jun 2025 07:31:03 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -143,33 +143,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:10:56 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:10:56 GMT
+ - Mon, 09 Jun 2025 07:31:04 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:10:56 GMT
+ - Mon, 09 Jun 2025 07:31:05 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -187,28 +185,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:10:57 GMT
+ - Mon, 09 Jun 2025 07:31:05 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:10:57 GMT
+ - Mon, 09 Jun 2025 07:31:06 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
@@ -230,11 +230,11 @@ interactions:
Content-Type:
- application/xml
ParameterSetName:
- - --services --log --retention --service --connection-string
+ - --services --log --retention --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:10:58 GMT
+ - Mon, 09 Jun 2025 07:31:06 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -246,7 +246,7 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:10:59 GMT
+ - Mon, 09 Jun 2025 07:31:07 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -265,33 +265,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:31:08 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:00 GMT
+ - Mon, 09 Jun 2025 07:31:08 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:00 GMT
+ - Mon, 09 Jun 2025 07:31:08 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -306,33 +306,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:11:01 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:01 GMT
+ - Mon, 09 Jun 2025 07:31:09 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0truefalsefalsetrue11.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:01 GMT
+ - Mon, 09 Jun 2025 07:31:09 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -350,28 +348,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:02 GMT
+ - Mon, 09 Jun 2025 07:31:10 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0truefalsefalsetrue11.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:02 GMT
+ - Mon, 09 Jun 2025 07:31:10 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
@@ -393,11 +393,11 @@ interactions:
Content-Type:
- application/xml
ParameterSetName:
- - --services --log --retention --service --connection-string
+ - --services --log --retention --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:03 GMT
+ - Mon, 09 Jun 2025 07:31:11 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -409,7 +409,7 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:11:03 GMT
+ - Mon, 09 Jun 2025 07:31:11 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -428,33 +428,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:31:12 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:05 GMT
+ - Mon, 09 Jun 2025 07:31:12 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:05 GMT
+ - Mon, 09 Jun 2025 07:31:12 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -469,33 +469,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:11:06 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:06 GMT
+ - Mon, 09 Jun 2025 07:31:13 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0truefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:06 GMT
+ - Mon, 09 Jun 2025 07:31:13 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -513,28 +511,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:07 GMT
+ - Mon, 09 Jun 2025 07:31:14 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0truefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:07 GMT
+ - Mon, 09 Jun 2025 07:31:15 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
@@ -555,28 +555,30 @@ interactions:
- '252'
Content-Type:
- application/xml
+ Date:
+ - Mon, 09 Jun 2025 07:31:15 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:08 GMT
+ - Mon, 09 Jun 2025 07:31:15 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: PUT
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
- content-length:
- - '0'
date:
- - Sun, 23 Feb 2025 09:11:09 GMT
+ - Mon, 09 Jun 2025 07:31:15 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ transfer-encoding:
+ - chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 202
message: Accepted
@@ -597,30 +599,28 @@ interactions:
- '252'
Content-Type:
- application/xml
- Date:
- - Sun, 23 Feb 2025 09:11:09 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:09 GMT
+ - Mon, 09 Jun 2025 07:31:16 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: PUT
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
+ content-length:
+ - '0'
date:
- - Sun, 23 Feb 2025 09:11:09 GMT
+ - Mon, 09 Jun 2025 07:31:17 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 202
message: Accepted
@@ -644,13 +644,13 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:10 GMT
+ - Mon, 09 Jun 2025 07:31:18 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: PUT
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
@@ -658,11 +658,11 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:11:11 GMT
+ - Mon, 09 Jun 2025 07:31:19 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 202
message: Accepted
@@ -677,33 +677,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:31:19 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:12 GMT
+ - Mon, 09 Jun 2025 07:31:19 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:12 GMT
+ - Mon, 09 Jun 2025 07:31:20 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -718,33 +718,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:11:13 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:13 GMT
+ - Mon, 09 Jun 2025 07:31:20 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:13 GMT
+ - Mon, 09 Jun 2025 07:31:20 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -762,28 +760,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:14 GMT
+ - Mon, 09 Jun 2025 07:31:21 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:11:14 GMT
+ - Mon, 09 Jun 2025 07:31:22 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
@@ -805,13 +805,13 @@ interactions:
Content-Type:
- application/xml
Date:
- - Sun, 23 Feb 2025 09:11:15 GMT
+ - Mon, 09 Jun 2025 07:31:22 GMT
ParameterSetName:
- --services --log --retention --version --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:11:15 GMT
+ - Mon, 09 Jun 2025 07:31:22 GMT
x-ms-version:
- '2019-02-02'
method: PUT
@@ -821,7 +821,7 @@ interactions:
string: ''
headers:
date:
- - Sun, 23 Feb 2025 09:11:16 GMT
+ - Mon, 09 Jun 2025 07:31:23 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
@@ -842,33 +842,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:32:24 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:17 GMT
+ - Mon, 09 Jun 2025 07:32:24 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0truefalsefalsetrue11.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:17 GMT
+ - Mon, 09 Jun 2025 07:32:24 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -883,33 +883,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:12:18 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:18 GMT
+ - Mon, 09 Jun 2025 07:32:25 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0truefalsefalsetrue11.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:19 GMT
+ - Mon, 09 Jun 2025 07:32:26 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -927,28 +925,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:19 GMT
+ - Mon, 09 Jun 2025 07:32:26 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:19 GMT
+ - Mon, 09 Jun 2025 07:32:27 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
@@ -970,13 +970,13 @@ interactions:
Content-Type:
- application/xml
Date:
- - Sun, 23 Feb 2025 09:12:20 GMT
+ - Mon, 09 Jun 2025 07:32:27 GMT
ParameterSetName:
- --services --log --retention --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:20 GMT
+ - Mon, 09 Jun 2025 07:32:27 GMT
x-ms-version:
- '2019-02-02'
method: PUT
@@ -986,7 +986,7 @@ interactions:
string: ''
headers:
date:
- - Sun, 23 Feb 2025 09:12:20 GMT
+ - Mon, 09 Jun 2025 07:32:27 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
@@ -1007,33 +1007,33 @@ interactions:
- storage logging show
Connection:
- keep-alive
+ Date:
+ - Mon, 09 Jun 2025 07:32:39 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-queue/12.3.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-data-tables/12.4.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:31 GMT
+ - Mon, 09 Jun 2025 07:32:39 GMT
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
method: GET
- uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse1.0truefalsefalsetrue11.0falsefalse1.0falsefalse"
headers:
- cache-control:
- - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:32 GMT
+ - Mon, 09 Jun 2025 07:32:39 GMT
server:
- - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-02-12'
+ - '2019-02-02'
status:
code: 200
message: OK
@@ -1048,33 +1048,31 @@ interactions:
- storage logging show
Connection:
- keep-alive
- Date:
- - Sun, 23 Feb 2025 09:12:32 GMT
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-data-tables/12.4.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:32 GMT
+ - Mon, 09 Jun 2025 07:32:40 GMT
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
method: GET
- uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0truefalsefalsetrue11.0truetruetrue71.0falsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse"
headers:
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:33 GMT
+ - Mon, 09 Jun 2025 07:32:40 GMT
server:
- - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2019-02-02'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -1092,28 +1090,30 @@ interactions:
ParameterSetName:
- --connection-string
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:12:33 GMT
+ - Mon, 09 Jun 2025 07:32:40 GMT
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
method: GET
- uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
+ uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"
+ string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse"
headers:
+ cache-control:
+ - no-cache
content-type:
- application/xml
date:
- - Sun, 23 Feb 2025 09:12:34 GMT
+ - Mon, 09 Jun 2025 07:32:41 GMT
server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2022-11-02'
+ - '2021-02-12'
status:
code: 200
message: OK
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_incremental_copy.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_incremental_copy.yaml
index f88185872f0..864d8871724 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_incremental_copy.yaml
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_incremental_copy.yaml
@@ -15,12 +15,12 @@ interactions:
ParameterSetName:
- -n -g --query -o
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2024-01-01&$expand=kerb
response:
body:
- string: '{"keys":[{"creationTime":"2025-02-23T09:20:23.3891740Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-02-23T09:20:23.3891740Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
+ string: '{"keys":[{"creationTime":"2025-08-07T08:21:18.6052429Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-08-07T08:21:18.6052429Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
@@ -29,7 +29,7 @@ interactions:
content-type:
- application/json
date:
- - Sun, 23 Feb 2025 09:21:16 GMT
+ - Thu, 07 Aug 2025 08:22:35 GMT
expires:
- '-1'
pragma:
@@ -41,9 +41,11 @@ interactions:
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/2e1be1d7-8a78-4abc-9a11-dc143cbe3709
+ - tenantId=213e87ed-8e08-4eb4-a63c-c073058f7b00,objectId=175893bd-58f2-4ddb-827d-b919019026bf/eastus2euap/463d6059-ac03-46cb-ba92-77c57b88754b
x-ms-ratelimit-remaining-subscription-resource-requests:
- - '11991'
+ - '799'
+ x-ms-throttling-version:
+ - v1
status:
code: 200
message: OK
@@ -63,9 +65,9 @@ interactions:
ParameterSetName:
- -n --account-name --account-key
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:21:17 GMT
+ - Thu, 07 Aug 2025 08:22:38 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -77,11 +79,11 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:21:18 GMT
+ - Thu, 07 Aug 2025 08:22:39 GMT
etag:
- - '"0x8DD53EB6E23120D"'
+ - '"0x8DDD58B931F21EA"'
last-modified:
- - Sun, 23 Feb 2025 09:21:18 GMT
+ - Thu, 07 Aug 2025 08:22:40 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -107,13 +109,13 @@ interactions:
ParameterSetName:
- -c -n -f -t --account-name --account-key
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-blob-content-length:
- - '16384'
+ - '16384000'
x-ms-blob-type:
- PageBlob
x-ms-date:
- - Sun, 23 Feb 2025 09:21:19 GMT
+ - Thu, 07 Aug 2025 08:22:42 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -125,11 +127,11 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:21:19 GMT
+ - Thu, 07 Aug 2025 08:22:43 GMT
etag:
- - '"0x8DD53EB6EDC99C8"'
+ - '"0x8DDD58B95711B78"'
last-modified:
- - Sun, 23 Feb 2025 09:21:19 GMT
+ - Thu, 07 Aug 2025 08:22:44 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
@@ -155,9 +157,9 @@ interactions:
ParameterSetName:
- -c -n --account-name --account-key
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:21:20 GMT
+ - Thu, 07 Aug 2025 08:22:46 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -169,17 +171,17 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:21:20 GMT
+ - Thu, 07 Aug 2025 08:22:47 GMT
etag:
- - '"0x8DD53EB6EDC99C8"'
+ - '"0x8DDD58B95711B78"'
last-modified:
- - Sun, 23 Feb 2025 09:21:19 GMT
+ - Thu, 07 Aug 2025 08:22:44 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'false'
x-ms-snapshot:
- - '2025-02-23T09:21:21.0142561Z'
+ - '2025-08-07T08:22:48.0393311Z'
x-ms-version:
- '2022-11-02'
status:
@@ -201,12 +203,12 @@ interactions:
ParameterSetName:
- -n -g --query -o
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000003/listKeys?api-version=2024-01-01&$expand=kerb
response:
body:
- string: '{"keys":[{"creationTime":"2025-02-23T09:20:50.9833404Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-02-23T09:20:50.9833404Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
+ string: '{"keys":[{"creationTime":"2025-08-07T08:22:02.3558410Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2025-08-07T08:22:02.3558410Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
@@ -215,7 +217,7 @@ interactions:
content-type:
- application/json
date:
- - Sun, 23 Feb 2025 09:21:22 GMT
+ - Thu, 07 Aug 2025 08:22:51 GMT
expires:
- '-1'
pragma:
@@ -227,9 +229,11 @@ interactions:
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/64d5b6f6-1b86-443a-97b4-c3fdde239fc1
+ - tenantId=213e87ed-8e08-4eb4-a63c-c073058f7b00,objectId=175893bd-58f2-4ddb-827d-b919019026bf/eastus2euap/e48c368e-ab43-464b-8a0f-7c573320ed45
x-ms-ratelimit-remaining-subscription-resource-requests:
- - '11989'
+ - '799'
+ x-ms-throttling-version:
+ - v1
status:
code: 200
message: OK
@@ -249,9 +253,9 @@ interactions:
ParameterSetName:
- -n --account-name --account-key
User-Agent:
- - AZURECLI/2.69.0 azsdk-python-storage-blob/12.16.0 Python/3.12.9 (Windows-10-10.0.19045-SP0)
+ - AZURECLI/2.76.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sun, 23 Feb 2025 09:21:22 GMT
+ - Thu, 07 Aug 2025 08:22:55 GMT
x-ms-version:
- '2022-11-02'
method: PUT
@@ -263,11 +267,11 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:21:23 GMT
+ - Thu, 07 Aug 2025 08:22:56 GMT
etag:
- - '"0x8DD53EB7146B55A"'
+ - '"0x8DDD58B9D044771"'
last-modified:
- - Sun, 23 Feb 2025 09:21:23 GMT
+ - Thu, 07 Aug 2025 08:22:56 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -278,20 +282,28 @@ interactions:
- request:
body: null
headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - storage blob incremental-copy start
Connection:
- keep-alive
Content-Length:
- '0'
If-Modified-Since:
- - Mon, 29 Jun 2020 06:32:00 GMT
+ - '2020-06-29T06:32:00.000Z'
+ ParameterSetName:
+ - --source-container --source-blob --source-account-name --source-account-key
+ --source-snapshot --destination-container --destination-blob --destination-if-modified-since
+ --account-name --account-key
User-Agent:
- - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.12.9; Windows 10) AZURECLI/2.69.0
+ - AZURECLI/2.76.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-copy-source:
- - https://clitestniwm3pu6w42yxkuwr.blob.core.windows.net/contoeyw6ibs3mbpjrmquwyv/src?se=2025-02-24T09%3A21%3A24Z&sp=r&spr=https&sv=2018-11-09&sr=b&sig=GsD%2BNrFI5ip8Edf0MI9cw1rluyvLyr7n4AWEYHUBKg0%3D&snapshot=2025-02-23T09:21:21.0142561Z
- x-ms-date:
- - Sun, 23 Feb 2025 09:21:24 GMT
+ - https://clitest2xrzud7oehlf6vaus.blob.core.windows.net/conte6rnubeae33uzzrdsxpj/src?se=2025-08-08T08%3A22%3A59Z&sp=r&spr=https&sv=2022-11-02&sr=b&sig=YZJpOHGl7gR2iQT3%2BB95OjjC/GMHVHrXRQAB9D2tbe4%3D&snapshot=2025-08-07T08:22:48.0393311Z
x-ms-version:
- - '2018-11-09'
+ - '2025-07-05'
method: PUT
uri: https://clitest000003.blob.core.windows.net/cont000005/backup?comp=incrementalcopy
response:
@@ -301,20 +313,67 @@ interactions:
content-length:
- '0'
date:
- - Sun, 23 Feb 2025 09:21:24 GMT
+ - Thu, 07 Aug 2025 08:23:00 GMT
etag:
- - '"0x8DD53EB71FA4563"'
+ - '"0x8DDD58B9FD2195B"'
last-modified:
- - Sun, 23 Feb 2025 09:21:25 GMT
+ - Thu, 07 Aug 2025 08:23:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-id:
- - 1c7ce4fa-bb56-4b72-99f5-e8e5a4363cf1
+ - 4db19988-baca-45d9-8ed0-835286682ccb
x-ms-copy-status:
- pending
x-ms-version:
- - '2018-11-09'
+ - '2025-07-05'
status:
code: 202
message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/xml
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - storage blob incremental-copy cancel
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - --container-name --name --copy-id --lease-id --account-name --account-key
+ User-Agent:
+ - AZURECLI/2.76.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
+ x-ms-copy-action:
+ - abort
+ x-ms-date:
+ - Thu, 07 Aug 2025 08:23:50 GMT
+ x-ms-lease-id:
+ - abcdabcd-abcd-abcd-abcd-abcdabcdabcd
+ x-ms-version:
+ - '2022-11-02'
+ method: PUT
+ uri: https://clitest000003.blob.core.windows.net/cont000005/backup?comp=copy©id=4db19988-baca-45d9-8ed0-835286682ccb
+ response:
+ body:
+ string: "\uFEFFNoPendingCopyOperationThere
+ is currently no pending copy operation.\nRequestId:b10b1209-f01e-003d-6074-07dd21000000\nTime:2025-08-07T08:23:51.9452772Z"
+ headers:
+ content-length:
+ - '234'
+ content-type:
+ - application/xml
+ date:
+ - Thu, 07 Aug 2025 08:23:51 GMT
+ server:
+ - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
+ x-ms-error-code:
+ - NoPendingCopyOperation
+ x-ms-version:
+ - '2022-11-02'
+ status:
+ code: 409
+ message: There is currently no pending copy operation.
version: 1
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_oauth.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_oauth.yaml
index bccd09205db..4478b36b1a3 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_oauth.yaml
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_oauth.yaml
@@ -15,11 +15,11 @@ interactions:
ParameterSetName:
- -n --account-name --public-access --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Tue, 26 Jul 2022 06:45:06 GMT
+ - Mon, 09 Jun 2025 07:22:38 GMT
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: PUT
uri: https://clitest000002.blob.core.windows.net/container000003?restype=container
response:
@@ -29,15 +29,15 @@ interactions:
content-length:
- '0'
date:
- - Tue, 26 Jul 2022 06:45:12 GMT
+ - Mon, 09 Jun 2025 07:22:39 GMT
etag:
- - '"0x8DA6ED264473865"'
+ - '"0x8DDA7266ACB941A"'
last-modified:
- - Tue, 26 Jul 2022 06:45:13 GMT
+ - Mon, 09 Jun 2025 07:22:39 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 201
message: Created
@@ -61,13 +61,13 @@ interactions:
ParameterSetName:
- -c -f -n --type --account-name --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-blob-type:
- BlockBlob
x-ms-date:
- - Tue, 26 Jul 2022 06:45:09 GMT
+ - Mon, 09 Jun 2025 07:22:40 GMT
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: PUT
uri: https://clitest000002.blob.core.windows.net/container000003/blob000004
response:
@@ -79,11 +79,11 @@ interactions:
content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
date:
- - Tue, 26 Jul 2022 06:45:13 GMT
+ - Mon, 09 Jun 2025 07:22:40 GMT
etag:
- - '"0x8DA6ED264FDB391"'
+ - '"0x8DDA7266BAE1BA9"'
last-modified:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-content-crc64:
@@ -91,7 +91,7 @@ interactions:
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 201
message: Created
@@ -109,11 +109,11 @@ interactions:
ParameterSetName:
- -n -c --account-name --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Tue, 26 Jul 2022 06:45:10 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/container000003/blob000004
response:
@@ -129,17 +129,17 @@ interactions:
content-type:
- application/octet-stream
date:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
etag:
- - '"0x8DA6ED264FDB391"'
+ - '"0x8DDA7266BAE1BA9"'
last-modified:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
@@ -147,7 +147,7 @@ interactions:
x-ms-server-encrypted:
- 'true'
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -165,19 +165,19 @@ interactions:
ParameterSetName:
- -c --account-name --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Tue, 26 Jul 2022 06:45:12 GMT
+ - Mon, 09 Jun 2025 07:22:42 GMT
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: GET
uri: https://clitest000002.blob.core.windows.net/container000003?restype=container&comp=list&maxresults=5000
response:
body:
string: "\uFEFF5000blob000004Tue,
- 26 Jul 2022 06:45:14 GMTTue, 26 Jul 2022 06:45:14
- GMT0x8DA6ED264FDB3911024application/octet-stream5000blob000004Mon,
+ 09 Jun 2025 07:22:41 GMTMon, 09 Jun 2025 07:22:41
+ GMT0x8DDA7266BAE1BA91024application/octet-streamDzQ7CTESaiDxM9Z8KwGKOw==BlockBlobunlockedavailabletrue"
@@ -185,13 +185,13 @@ interactions:
content-type:
- application/xml
date:
- - Tue, 26 Jul 2022 06:45:15 GMT
+ - Mon, 09 Jun 2025 07:22:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -209,11 +209,11 @@ interactions:
ParameterSetName:
- -c --account-name -n --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Tue, 26 Jul 2022 06:45:13 GMT
+ - Mon, 09 Jun 2025 07:22:43 GMT
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/container000003/blob000004
response:
@@ -229,17 +229,17 @@ interactions:
content-type:
- application/octet-stream
date:
- - Tue, 26 Jul 2022 06:45:16 GMT
+ - Mon, 09 Jun 2025 07:22:44 GMT
etag:
- - '"0x8DA6ED264FDB391"'
+ - '"0x8DDA7266BAE1BA9"'
last-modified:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
@@ -247,7 +247,7 @@ interactions:
x-ms-server-encrypted:
- 'true'
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 200
message: OK
@@ -265,13 +265,13 @@ interactions:
ParameterSetName:
- -n -c --file --account-name --auth-mode
User-Agent:
- - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-blob/12.16.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:44 GMT
x-ms-range:
- bytes=0-33554431
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
method: GET
uri: https://clitest000002.blob.core.windows.net/container000003/blob000004
response:
@@ -287,11 +287,11 @@ interactions:
content-type:
- application/octet-stream
date:
- - Tue, 26 Jul 2022 06:45:18 GMT
+ - Mon, 09 Jun 2025 07:22:45 GMT
etag:
- - '"0x8DA6ED264FDB391"'
+ - '"0x8DDA7266BAE1BA9"'
last-modified:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-content-md5:
@@ -299,7 +299,7 @@ interactions:
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- - Tue, 26 Jul 2022 06:45:14 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
@@ -307,7 +307,7 @@ interactions:
x-ms-server-encrypted:
- 'true'
x-ms-version:
- - '2021-06-08'
+ - '2022-11-02'
status:
code: 206
message: Partial Content
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_oauth.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_oauth.yaml
index ae994e40f91..2cf2e434cb2 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_oauth.yaml
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_oauth.yaml
@@ -15,9 +15,9 @@ interactions:
ParameterSetName:
- -n --account-name --fail-on-exist --metadata --auth-mode
User-Agent:
- - AZURECLI/2.34.1 azsdk-python-storage-queue/12.2.0 Python/3.8.7 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sat, 02 Apr 2022 04:20:39 GMT
+ - Mon, 09 Jun 2025 07:22:39 GMT
x-ms-meta:
- '{''a'': ''b'', ''c'': ''d''}'
x-ms-meta-a:
@@ -35,7 +35,7 @@ interactions:
content-length:
- '0'
date:
- - Sat, 02 Apr 2022 04:20:40 GMT
+ - Mon, 09 Jun 2025 07:22:39 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -57,9 +57,9 @@ interactions:
ParameterSetName:
- -n --account-name --auth-mode
User-Agent:
- - AZURECLI/2.34.1 azsdk-python-storage-queue/12.2.0 Python/3.8.7 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sat, 02 Apr 2022 04:20:41 GMT
+ - Mon, 09 Jun 2025 07:22:40 GMT
x-ms-version:
- '2021-02-12'
method: GET
@@ -73,7 +73,7 @@ interactions:
content-length:
- '0'
date:
- - Sat, 02 Apr 2022 04:20:42 GMT
+ - Mon, 09 Jun 2025 07:22:40 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-approximate-messages-count:
@@ -101,9 +101,9 @@ interactions:
ParameterSetName:
- -n --account-name --auth-mode
User-Agent:
- - AZURECLI/2.34.1 azsdk-python-storage-queue/12.2.0 Python/3.8.7 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sat, 02 Apr 2022 04:20:43 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
x-ms-version:
- '2021-02-12'
method: GET
@@ -117,7 +117,7 @@ interactions:
content-length:
- '0'
date:
- - Sat, 02 Apr 2022 04:20:43 GMT
+ - Mon, 09 Jun 2025 07:22:41 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-approximate-messages-count:
@@ -147,9 +147,9 @@ interactions:
ParameterSetName:
- -n --account-name --metadata --auth-mode
User-Agent:
- - AZURECLI/2.34.1 azsdk-python-storage-queue/12.2.0 Python/3.8.7 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sat, 02 Apr 2022 04:20:44 GMT
+ - Mon, 09 Jun 2025 07:22:42 GMT
x-ms-meta-e:
- f
x-ms-meta-g:
@@ -165,7 +165,7 @@ interactions:
content-length:
- '0'
date:
- - Sat, 02 Apr 2022 04:20:44 GMT
+ - Mon, 09 Jun 2025 07:22:43 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
@@ -187,9 +187,9 @@ interactions:
ParameterSetName:
- -n --account-name --auth-mode
User-Agent:
- - AZURECLI/2.34.1 azsdk-python-storage-queue/12.2.0 Python/3.8.7 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.74.0 azsdk-python-storage-queue/12.3.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
x-ms-date:
- - Sat, 02 Apr 2022 04:20:46 GMT
+ - Mon, 09 Jun 2025 07:22:43 GMT
x-ms-version:
- '2021-02-12'
method: GET
@@ -203,7 +203,7 @@ interactions:
content-length:
- '0'
date:
- - Sat, 02 Apr 2022 04:20:46 GMT
+ - Mon, 09 Jun 2025 07:22:43 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-approximate-messages-count:
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py
index cde5ee73fb5..50f0d38d2fc 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py
@@ -705,7 +705,7 @@ def test_logging_operations(self, resource_group, storage_account):
])
self.cmd('storage logging update --services b --log r --retention 1 '
- '--service b --connection-string {}'.format(connection_string))
+ '--connection-string {}'.format(connection_string))
self.cmd('storage logging show --connection-string {}'.format(connection_string), checks=[
JMESPathCheck('blob.read', True),
@@ -714,7 +714,7 @@ def test_logging_operations(self, resource_group, storage_account):
])
self.cmd('storage logging update --services b --log r --retention 0 '
- '--service b --connection-string {}'.format(connection_string))
+ '--connection-string {}'.format(connection_string))
self.cmd('storage logging show --connection-string {}'.format(connection_string), checks=[
JMESPathCheck('blob.read', True),
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py
index 6c3d294383c..2dd4eca1e3a 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py
@@ -22,7 +22,7 @@ class StorageBlobUploadTests(StorageScenarioMixin, ScenarioTest):
@StorageAccountPreparer(parameter_name='source_account')
@StorageAccountPreparer(parameter_name='target_account')
def test_storage_blob_incremental_copy(self, resource_group, source_account, target_account):
- source_file = self.create_temp_file(16)
+ source_file = self.create_temp_file(16*1000) # 16MB for a longer copying period
source_account_info = self.get_account_info(resource_group, source_account)
source_container = self.create_container(source_account_info)
self.storage_cmd('storage blob upload -c {} -n src -f "{}" -t page', source_account_info,
@@ -33,12 +33,17 @@ def test_storage_blob_incremental_copy(self, resource_group, source_account, tar
target_account_info = self.get_account_info(resource_group, target_account)
target_container = self.create_container(target_account_info)
- self.storage_cmd('storage blob incremental-copy start --source-container {} --source-blob '
- 'src --source-account-name {} --source-account-key {} --source-snapshot '
- '{} --destination-container {} --destination-blob backup '
- '--destination-if-modified-since "2020-06-29T06:32Z" ',
- target_account_info, source_container, source_account,
- source_account_info[1], snapshot, target_container)
+ copy_id = self.storage_cmd('storage blob incremental-copy start --source-container {} --source-blob '
+ 'src --source-account-name {} --source-account-key {} --source-snapshot '
+ '{} --destination-container {} --destination-blob backup '
+ '--destination-if-modified-since "2020-06-29T06:32Z" ',
+ target_account_info, source_container, source_account,
+ source_account_info[1], snapshot, target_container).get_output_in_json()['id']
+ from azure.core.exceptions import ResourceExistsError
+ with self.assertRaisesRegex(ResourceExistsError, "There is currently no pending copy operation"):
+ self.storage_cmd('storage blob incremental-copy cancel --container-name {} --name {} --copy-id {} '
+ '--lease-id abcdabcd-abcd-abcd-abcd-abcdabcdabcd',
+ target_account_info, target_container, "backup", copy_id)
def test_storage_blob_no_credentials_scenario(self):
source_file = self.create_temp_file(1)
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_oauth.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_oauth.py
index 53dd8b183d4..bd47e79ba1e 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_oauth.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_oauth.py
@@ -10,7 +10,6 @@
from ..storage_test_util import StorageScenarioMixin
-@api_version_constraint(ResourceType.DATA_STORAGE, min_api='2017-11-09')
class StorageOauthTests(StorageScenarioMixin, ScenarioTest):
@AllowLargeResponse()
@ResourceGroupPreparer(name_prefix='cli_test_storage_oauth')
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_validators.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_validators.py
index 7d06803af3d..355e92ea45a 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_validators.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_validators.py
@@ -12,12 +12,12 @@
from azure.cli.core._config import GLOBAL_CONFIG_DIR, ENV_VAR_PREFIX
from azure.cli.core.cloud import get_active_cloud
-from azure.cli.core.profiles import get_sdk, ResourceType, supported_api_version
+from azure.cli.core.profiles import get_sdk, ResourceType
from azure.cli.command_modules.storage._validators import (get_permission_validator, get_datetime_type,
- ipv4_range_type, resource_type_type, services_type,
+ ipv4_range_type, resource_type_type_v2, services_type_v2,
process_blob_source_uri, get_char_options_validator,
- get_source_file_or_blob_service_client,
+ get_source_file_or_blob_service_client_track2,
validate_encryption_source, validate_source_uri,
validate_encryption_services, as_user_validator,
get_not_none_validator)
@@ -38,8 +38,7 @@ def __init__(self, ctx):
def get_models(self, *attr_args, **_):
from azure.cli.core.profiles import get_sdk
- return get_sdk(self.ctx, ResourceType.DATA_STORAGE, *attr_args, mod='models')
-
+ return get_sdk(self.ctx, ResourceType.DATA_STORAGE_BLOB, *attr_args, mod='models')
class MockCmd:
def __init__(self, ctx, arguments={}):
@@ -49,7 +48,8 @@ def __init__(self, ctx, arguments={}):
self.command_kwargs = {}
def get_models(self, *attr_args, **kwargs):
- return get_sdk(self.cli_ctx, ResourceType.DATA_STORAGE, *attr_args, **kwargs)
+ resource_type = kwargs.get('resource_type', self.command_kwargs.get('resource_type', None))
+ return get_sdk(self.cli_ctx, resource_type, *attr_args)
class TestCmdModuleStorageValidators(unittest.TestCase):
@@ -62,7 +62,7 @@ def tearDown(self):
self.io.close()
def test_permission_validator(self):
- t_container_permissions = get_sdk(self.cli, ResourceType.DATA_STORAGE, 'blob.models#ContainerPermissions')
+ t_container_permissions = get_sdk(self.cli, ResourceType.DATA_STORAGE_BLOB, '_models#ContainerSasPermissions')
ns1 = Namespace(permission='rwdl')
ns2 = Namespace(permission='abc')
@@ -114,27 +114,23 @@ def test_ipv4_range_type(self):
def test_resource_types_type(self):
input = "sso"
- actual = str(resource_type_type(self.loader)(input))
+ actual = str(resource_type_type_v2(self.loader)(input))
expected = "so"
self.assertEqual(actual, expected)
input = "blob"
with self.assertRaises(ValueError):
- actual = resource_type_type(self.loader)(input)
+ actual = resource_type_type_v2(self.loader)(input)
def test_services_type(self):
input = "ttfqbqtf"
- actual = str(services_type(self.loader)(input))
- if supported_api_version(self.cli, ResourceType.DATA_STORAGE, max_api='2016-05-31') or \
- supported_api_version(self.cli, ResourceType.DATA_STORAGE, min_api='2017-07-29'):
- expected = "bqtf"
- else:
- expected = "bqf"
- self.assertEqual(actual, expected)
+ actual = str(services_type_v2()(input))
+ expected = "bqtf"
+ self.assertEqual(set(actual), set(expected))
input = "everything"
with self.assertRaises(ValueError):
- services_type(self.loader)(input)
+ services_type_v2()(input)
def test_storage_process_blob_source_uri_redundent_parameter(self):
with self.assertRaises(ValueError):
@@ -232,23 +228,26 @@ def setUp(self):
def test_validate_with_container_name_blob(self):
# source container name given, validator does not change namespace aside from ensuring source-client none
ns = self._create_namespace(source_container='container2', destination_container='container1')
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertIsNone(ns.source_client)
+ self.assertEqual(ns.source_container, 'container2')
+ self.assertEqual(ns.destination_container, 'container1')
def test_validate_with_source_uri_blob(self):
# source given in form of uri, source_container parsed from uri, source and dest account are the same
ns = self._create_namespace(source_uri='https://storage_name.blob.core.windows.net/container2',
destination_container='container1')
with mock.patch('azure.cli.command_modules.storage._validators._query_account_key', return_value="fake_key"):
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertEqual(ns.source_container, 'container2')
- self.assertIsNone(ns.source_client)
+ self.assertIsNotNone(ns.source_client)
+ self.assertEqual(ns.destination_container, 'container1')
def test_validate_with_different_source_uri_sas_blob(self):
# source given in form of uri, source_container parsed from uri, source and dest account are different
ns = self._create_namespace(source_uri='https://other_name.blob.core.windows.net/container2?some_sas_token',
destination_container='container1')
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertEqual(ns.source_container, 'container2')
self.assertIsNotNone(ns.source_client)
self.assertEqual(ns.source_client.account_name, 'other_name')
@@ -256,23 +255,25 @@ def test_validate_with_different_source_uri_sas_blob(self):
def test_validate_with_share_name_file(self):
# source share name given, validator does not change namespace aside from ensuring source-client none
ns = self._create_namespace(source_share='share2', destination_share='share1')
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertIsNone(ns.source_client)
+ self.assertEqual(ns.source_share, 'share2')
+ self.assertEqual(ns.destination_share, 'share1')
def test_validate_with_source_uri_file(self):
# source given in form of uri, source_share parsed from uri, source and dest account are the same
ns = self._create_namespace(source_uri='https://storage_name.file.core.windows.net/share2',
destination_share='share1')
with mock.patch('azure.cli.command_modules.storage._validators._query_account_key', return_value="fake_key"):
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertEqual(ns.source_share, 'share2')
- self.assertIsNone(ns.source_client)
+ self.assertIsNotNone(ns.source_client)
def test_validate_with_different_source_uri_sas_file(self):
# source given in form of uri, source_share parsed from uri, source and dest account are different
ns = self._create_namespace(source_uri='https://other_name.file.core.windows.net/share2?some_sas_token',
destination_share='share1')
- get_source_file_or_blob_service_client(MockCmd(self.cli), ns)
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), ns)
self.assertEqual(ns.source_share, 'share2')
self.assertIsNotNone(ns.source_client)
self.assertEqual(ns.source_client.account_name, 'other_name')
@@ -280,16 +281,16 @@ def test_validate_with_different_source_uri_sas_file(self):
def test_validate_negatives(self):
# bad argument combinations
with self.assertRaises(ValueError):
- get_source_file_or_blob_service_client(
+ get_source_file_or_blob_service_client_track2(
MockCmd(self.cli),
self._create_namespace(source_uri='https://storage_name.file.core.windows.net/share2',
source_account_name='some_name'))
with self.assertRaises(ValueError):
- get_source_file_or_blob_service_client(MockCmd(self.cli), self._create_namespace(source_uri='faulty_uri'))
+ get_source_file_or_blob_service_client_track2(MockCmd(self.cli), self._create_namespace(source_uri='faulty_uri'))
with self.assertRaises(ValueError):
- get_source_file_or_blob_service_client(
+ get_source_file_or_blob_service_client_track2(
MockCmd(self.cli),
self._create_namespace(source_container='container_name', source_share='share_name'))
diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/storage_test_util.py b/src/azure-cli/azure/cli/command_modules/storage/tests/storage_test_util.py
index 865bc2abe95..324647f9126 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/tests/storage_test_util.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/tests/storage_test_util.py
@@ -19,10 +19,7 @@ def get_current_profile(self):
return self.profile
def get_account_key(self, group, name):
- if self.get_current_profile() == '2017-03-09-profile':
- template = 'storage account keys list -n {} -g {} --query "key1" -otsv'
- else:
- template = 'storage account keys list -n {} -g {} --query "[0].value" -otsv'
+ template = 'storage account keys list -n {} -g {} --query "[0].value" -otsv'
return self.cmd(template.format(name, group)).output
diff --git a/src/azure-cli/azure/cli/command_modules/storage/util.py b/src/azure-cli/azure/cli/command_modules/storage/util.py
index abb05045c60..57efb0f6ca8 100644
--- a/src/azure-cli/azure/cli/command_modules/storage/util.py
+++ b/src/azure-cli/azure/cli/command_modules/storage/util.py
@@ -45,7 +45,7 @@ def collect_blob_objects(blob_service, container, pattern=None):
blobs = container_client.list_blobs()
for blob in blobs:
try:
- blob_name = blob.name.encode('utf-8') if isinstance(blob.name, unicode) else blob.name
+ blob_name = blob.name.encode('utf-8') if isinstance(blob.name, str) else blob.name
except NameError:
blob_name = blob.name
@@ -53,23 +53,6 @@ def collect_blob_objects(blob_service, container, pattern=None):
yield blob_name, blob
-def collect_files(cmd, file_service, share, pattern=None):
- """
- Search files in the the given file share recursively. Filter the files by matching their path to the given pattern.
- Returns a iterable of tuple (dir, name).
- """
- if not file_service:
- raise ValueError('missing parameter file_service')
-
- if not share:
- raise ValueError('missing parameter share')
-
- if not _pattern_has_wildcards(pattern):
- return [pattern]
-
- return glob_files_remotely(cmd, file_service, share, pattern)
-
-
def collect_files_track2(file_service, share, pattern=None):
"""
Search files in the given file share recursively. Filter the files by matching their path to the given pattern.
@@ -87,20 +70,6 @@ def collect_files_track2(file_service, share, pattern=None):
return glob_files_remotely_track2(file_service, share, pattern)
-def create_blob_service_from_storage_client(cmd, client):
- t_block_blob_svc = cmd.get_models('blob#BlockBlobService')
- return t_block_blob_svc(account_name=client.account_name,
- account_key=client.account_key,
- sas_token=client.sas_token)
-
-
-def create_file_share_from_storage_client(cmd, client):
- t_file_svc = cmd.get_models('file.fileservice#FileService')
- return t_file_svc(account_name=client.account_name,
- account_key=client.account_key,
- sas_token=client.sas_token)
-
-
def filter_none(iterable):
return (x for x in iterable if x is not None)
@@ -118,22 +87,6 @@ def glob_files_locally(folder_path, pattern):
yield (full_path, full_path[len_folder_path:])
-def glob_files_remotely(cmd, client, share_name, pattern, snapshot=None):
- """glob the files in remote file share based on the given pattern"""
- from collections import deque
- t_dir, t_file = cmd.get_models('file.models#Directory', 'file.models#File')
-
- queue = deque([""])
- while queue:
- current_dir = queue.pop()
- for f in client.list_directories_and_files(share_name, current_dir, snapshot=snapshot):
- if isinstance(f, t_file):
- if not pattern or _match_path(os.path.join(current_dir, f.name), pattern):
- yield current_dir, f.name
- elif isinstance(f, t_dir):
- queue.appendleft(os.path.join(current_dir, f.name))
-
-
def glob_files_remotely_track2(client, share_name, pattern, snapshot=None, is_share_client=False):
"""glob the files in remote file share based on the given pattern"""
from collections import deque
@@ -151,19 +104,6 @@ def glob_files_remotely_track2(client, share_name, pattern, snapshot=None, is_sh
queue.appendleft(os.path.join(current_dir, f['name']))
-def create_short_lived_blob_sas(cmd, account_name, account_key, container, blob):
- from datetime import timedelta
- if cmd.supported_api_version(min_api='2017-04-17'):
- t_sas = cmd.get_models('blob.sharedaccesssignature#BlobSharedAccessSignature')
- else:
- t_sas = cmd.get_models('shareaccesssignature#SharedAccessSignature')
-
- t_blob_permissions = cmd.get_models('blob.models#BlobPermissions')
- expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ')
- sas = t_sas(account_name, account_key)
- return sas.generate_blob(container, blob, permission=t_blob_permissions(read=True), expiry=expiry, protocol='https')
-
-
def create_short_lived_blob_sas_v2(cmd, account_name, container, blob, account_key=None, user_delegation_key=None):
from datetime import timedelta
@@ -181,22 +121,6 @@ def create_short_lived_blob_sas_v2(cmd, account_name, container, blob, account_k
return sas.generate_blob(container, blob, permission=t_blob_permissions(read=True), expiry=expiry, protocol='https')
-def create_short_lived_file_sas(cmd, account_name, account_key, share, directory_name, file_name):
- from datetime import timedelta
- if cmd.supported_api_version(min_api='2017-04-17'):
- t_sas = cmd.get_models('file.sharedaccesssignature#FileSharedAccessSignature')
- else:
- t_sas = cmd.get_models('sharedaccesssignature#SharedAccessSignature')
-
- t_file_permissions = cmd.get_models('file.models#FilePermissions')
- # if dir is empty string change it to None
- directory_name = directory_name if directory_name else None
- expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ')
- sas = t_sas(account_name, account_key)
- return sas.generate_file(share, directory_name=directory_name, file_name=file_name,
- permission=t_file_permissions(read=True), expiry=expiry, protocol='https')
-
-
def create_short_lived_file_sas_v2(cmd, account_name, account_key, share, directory_name, file_name):
from datetime import timedelta
@@ -210,19 +134,6 @@ def create_short_lived_file_sas_v2(cmd, account_name, account_key, share, direct
permission=t_file_permissions(read=True), expiry=expiry, protocol='https')
-def create_short_lived_container_sas(cmd, account_name, account_key, container):
- from datetime import timedelta
- if cmd.supported_api_version(min_api='2017-04-17'):
- t_sas = cmd.get_models('blob.sharedaccesssignature#BlobSharedAccessSignature')
- else:
- t_sas = cmd.get_models('sharedaccesssignature#SharedAccessSignature')
- t_blob_permissions = cmd.get_models('blob.models#BlobPermissions')
-
- expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ')
- sas = t_sas(account_name, account_key)
- return sas.generate_container(container, permission=t_blob_permissions(read=True), expiry=expiry, protocol='https')
-
-
def create_short_lived_container_sas_track2(cmd, account_name, account_key, container):
from datetime import timedelta
t_generate_container_sas = cmd.get_models('_shared_access_signature#generate_container_sas',
@@ -232,19 +143,6 @@ def create_short_lived_container_sas_track2(cmd, account_name, account_key, cont
protocol='https')
-def create_short_lived_share_sas(cmd, account_name, account_key, share):
- from datetime import timedelta
- if cmd.supported_api_version(min_api='2017-04-17'):
- t_sas = cmd.get_models('file.sharedaccesssignature#FileSharedAccessSignature')
- else:
- t_sas = cmd.get_models('sharedaccesssignature#SharedAccessSignature')
-
- t_file_permissions = cmd.get_models('file.models#FilePermissions')
- expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ')
- sas = t_sas(account_name, account_key)
- return sas.generate_share(share, permission=t_file_permissions(read=True), expiry=expiry, protocol='https')
-
-
def create_short_lived_share_sas_track2(cmd, account_name, account_key, share):
from datetime import timedelta
t_generate_share_sas = cmd.get_models('#generate_share_sas', resource_type=ResourceType.DATA_STORAGE_FILESHARE)
diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py
index ec1e4854815..a4a79a455fa 100644
--- a/src/azure-cli/azure/cli/command_modules/vm/custom.py
+++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py
@@ -17,7 +17,6 @@
import requests
-from urllib.parse import urlparse
# the urlopen is imported for automation purpose
from urllib.request import urlopen # noqa, pylint: disable=import-error,unused-import,ungrouped-imports
@@ -35,7 +34,7 @@
from azure.cli.core.commands.validators import validate_file_or_dict
from azure.cli.core.commands import LongRunningOperation, DeploymentOutputLongRunningOperation
-from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_data_service_client
+from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
from azure.cli.core.util import sdk_no_wait
@@ -1998,8 +1997,7 @@ def get_boot_log(cmd, resource_group_name, vm_name):
import sys
from azure.cli.core.profiles import get_sdk
from azure.core.exceptions import HttpResponseError
- BlockBlobService = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE, 'blob.blockblobservice#BlockBlobService')
-
+ BlobClient = get_sdk(cmd.cli_ctx, ResourceType.DATA_STORAGE_BLOB, '_blob_client#BlobClient')
client = _compute_client_factory(cmd.cli_ctx)
virtual_machine = client.virtual_machines.get(resource_group_name, vm_name, expand='instanceView')
@@ -2038,18 +2036,11 @@ def get_boot_log(cmd, resource_group_name, vm_name):
# Get account key
keys = storage_mgmt_client.storage_accounts.list_keys(rg, storage_account.name)
- # Extract container and blob name from url...
- container, blob = urlparse(blob_uri).path.split('/')[-2:]
-
- storage_client = get_data_service_client(
- cmd.cli_ctx,
- BlockBlobService,
- storage_account.name,
- keys.keys[0].value,
- endpoint_suffix=cmd.cli_ctx.cloud.suffixes.storage_endpoint) # pylint: disable=no-member
+ blob_client = BlobClient.from_blob_url(blob_url=blob_uri, credential=keys.keys[0].value)
# our streamwriter not seekable, so no parallel.
- storage_client.get_blob_to_stream(container, blob, BootLogStreamWriter(sys.stdout), max_connections=1)
+ downloader = blob_client.download_blob(max_concurrency=1)
+ downloader.readinto(BootLogStreamWriter(sys.stdout))
# endregion
diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py
index baafd58d751..8c9a9ce0d1a 100644
--- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py
+++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py
@@ -304,7 +304,7 @@ class ErrorToExitCommandEarly(Exception):
get_boot_log(cmd_mock, 'rg1', 'vm1')
self.fail("'get_boot_log' didn't exit early")
except ErrorToExitCommandEarly:
- get_sdk_mock.assert_called_with(cli_ctx_mock, ResourceType.DATA_STORAGE, 'blob.blockblobservice#BlockBlobService')
+ get_sdk_mock.assert_called_with(cli_ctx_mock, ResourceType.DATA_STORAGE_BLOB, '_blob_client#BlobClient')
class FakedVM: # pylint: disable=too-few-public-methods
diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt
index 42b28904110..2a2d59f264a 100644
--- a/src/azure-cli/requirements.py3.Darwin.txt
+++ b/src/azure-cli/requirements.py3.Darwin.txt
@@ -83,7 +83,7 @@ azure-mgmt-synapse==2.1.0b5
azure-mgmt-trafficmanager==1.0.0
azure-mgmt-web==9.0.0
azure-monitor-query==1.2.0
-azure-multiapi-storage==1.4.1
+azure-multiapi-storage==1.5.0
azure-nspkg==3.0.2
azure-storage-common==1.4.2
azure-synapse-accesscontrol==0.5.0
diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt
index 51486a6882e..fc56b6aff1b 100644
--- a/src/azure-cli/requirements.py3.Linux.txt
+++ b/src/azure-cli/requirements.py3.Linux.txt
@@ -83,7 +83,7 @@ azure-mgmt-synapse==2.1.0b5
azure-mgmt-trafficmanager==1.0.0
azure-mgmt-web==9.0.0
azure-monitor-query==1.2.0
-azure-multiapi-storage==1.4.1
+azure-multiapi-storage==1.5.0
azure-nspkg==3.0.2
azure-storage-common==1.4.2
azure-synapse-accesscontrol==0.5.0
diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt
index 4aaa73da18b..50ef96eb631 100644
--- a/src/azure-cli/requirements.py3.windows.txt
+++ b/src/azure-cli/requirements.py3.windows.txt
@@ -83,7 +83,7 @@ azure-mgmt-synapse==2.1.0b5
azure-mgmt-trafficmanager==1.0.0
azure-mgmt-web==9.0.0
azure-monitor-query==1.2.0
-azure-multiapi-storage==1.4.1
+azure-multiapi-storage==1.5.0
azure-nspkg==3.0.2
azure-storage-common==1.4.2
azure-synapse-accesscontrol==0.5.0
diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py
index 5750d039aeb..cdf2085e1e3 100644
--- a/src/azure-cli/setup.py
+++ b/src/azure-cli/setup.py
@@ -126,7 +126,7 @@
'azure-mgmt-trafficmanager~=1.0.0',
'azure-mgmt-web==9.0.0',
'azure-monitor-query==1.2.0',
- 'azure-multiapi-storage==1.4.1',
+ 'azure-multiapi-storage==1.5.0',
'azure-storage-common~=1.4',
'azure-synapse-accesscontrol~=0.5.0',
'azure-synapse-artifacts~=0.20.0',