From 104ea965ade81366373f37933dc18585bdb0b648 Mon Sep 17 00:00:00 2001 From: "yishiwang@microsoft.com" Date: Mon, 7 Mar 2022 17:50:32 +0800 Subject: [PATCH 1/3] `az storage account create/update`: Support `--key-vault-federated-identity-client-id` and `--allowed-copy-scope` --- src/storage-preview/HISTORY.rst | 4 +++ .../azext_storage_preview/_params.py | 16 ++++++++++ .../operations/account.py | 31 ++++++++++++++----- src/storage-preview/setup.py | 2 +- 4 files changed, 44 insertions(+), 9 deletions(-) diff --git a/src/storage-preview/HISTORY.rst b/src/storage-preview/HISTORY.rst index 48a0170ced4..12f881058a0 100644 --- a/src/storage-preview/HISTORY.rst +++ b/src/storage-preview/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +0.8.1 +++++++++++++++++++ +* `az storage account create/update`: Support `--key-vault-federated-identity-client-id` and `--allowed-copy-scope` + 0.8.0(2022-01-17) ++++++++++++++++++ * Remove `az storage account file-service-properties` as SMB multichannel and secured SMB has been supported in main Azure CLI diff --git a/src/storage-preview/azext_storage_preview/_params.py b/src/storage-preview/azext_storage_preview/_params.py index 8415589255a..b92a0fee599 100644 --- a/src/storage-preview/azext_storage_preview/_params.py +++ b/src/storage-preview/azext_storage_preview/_params.py @@ -140,6 +140,15 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem 'A policy can only be created in a Disabled or Unlocked state and can be toggled between the ' 'two states. Only a policy in an Unlocked state can transition to a Locked state which cannot ' 'be reverted.') + allowed_copy_scope_enum = self.get_sdk( + 'models._storage_management_client_enums#AllowedCopyScope', + resource_type=CUSTOM_MGMT_STORAGE + ) + allowed_copy_scope_type = CLIArgumentType( + arg_type=get_enum_type(allowed_copy_scope_enum), + options_list=['--allowed-copy-scope', '-s'], min_api='2021-08-01', + help='Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet' + ) public_network_access_enum = self.get_sdk('models._storage_management_client_enums#PublicNetworkAccess', resource_type=CUSTOM_MGMT_STORAGE) num_results_type = CLIArgumentType( @@ -279,6 +288,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem 'modified or deleted.', arg_group='Account Level Immutability', validator=validate_immutability_arguments) + c.argument('allowed_copy_scope', arg_type=allowed_copy_scope_type) c.argument('public_network_access', arg_type=get_enum_type(public_network_access_enum), min_api='2021-06-01', help='Enable or disable public network access to the storage account. ' 'Possible values include: `Enabled` or `Disabled`.') @@ -347,6 +357,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem 'protection and compliance. Only new blocks can be added and any existing blocks cannot be ' 'modified or deleted.', arg_group='Account Level Immutability') + c.argument('allowed_copy_scope', arg_type=allowed_copy_scope_type) c.argument('public_network_access', arg_type=get_enum_type(public_network_access_enum), min_api='2021-06-01', help='Enable or disable public network access to the storage account. ' 'Possible values include: `Enabled` or `Disabled`.') @@ -368,6 +379,11 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem min_api='2021-01-01', help='Resource identifier of the UserAssigned identity to be associated with server-side ' 'encryption on the storage account.') + c.argument('federated_identity_client_id', options_list=['--key-vault-federated-identity-client-id', '-f'], + min_api='2021-08-01', + help='ClientId of the multi-tenant application to be used ' + 'in conjunction with the user-assigned identity for ' + 'cross-tenant customer-managed-keys server-side encryption on the storage account.') for scope in ['storage account create', 'storage account update']: with self.argument_context(scope, resource_type=CUSTOM_MGMT_STORAGE, min_api='2017-06-01', diff --git a/src/storage-preview/azext_storage_preview/operations/account.py b/src/storage-preview/azext_storage_preview/operations/account.py index 12eff33df7f..8cb0c310742 100644 --- a/src/storage-preview/azext_storage_preview/operations/account.py +++ b/src/storage-preview/azext_storage_preview/operations/account.py @@ -28,12 +28,13 @@ def create_storage_account(cmd, resource_group_name, account_name, sku=None, loc routing_choice=None, publish_microsoft_endpoints=None, publish_internet_endpoints=None, require_infrastructure_encryption=None, allow_blob_public_access=None, min_tls_version=None, allow_shared_key_access=None, edge_zone=None, - identity_type=None, user_identity_id=None, key_vault_user_identity_id=None, + identity_type=None, user_identity_id=None, + key_vault_user_identity_id=None, federated_identity_client_id=None, sas_expiration_period=None, key_expiration_period_in_days=None, allow_cross_tenant_replication=None, default_share_permission=None, enable_nfs_v3=None, subnet=None, vnet_name=None, action='Allow', enable_alw=None, immutability_period_since_creation_in_days=None, immutability_policy_state=None, - allow_protected_append_writes=None, public_network_access=None): + allow_protected_append_writes=None, public_network_access=None, allowed_copy_scope=None): StorageAccountCreateParameters, Kind, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = \ cmd.get_models('StorageAccountCreateParameters', 'Kind', 'Sku', 'CustomDomain', 'AccessTier', 'Identity', 'Encryption', 'NetworkRuleSet') @@ -68,10 +69,12 @@ def create_storage_account(cmd, resource_group_name, account_name, sku=None, loc params.identity = Identity(type=identity_type, user_assigned_identities={user_identity_id: {}}) elif identity_type: params.identity = Identity(type=identity_type) - if key_vault_user_identity_id is not None: + if key_vault_user_identity_id is not None or federated_identity_client_id is not None: EncryptionIdentity = cmd.get_models('EncryptionIdentity') params.encryption.encryption_identity = EncryptionIdentity( - encryption_user_assigned_identity=key_vault_user_identity_id) + encryption_user_assigned_identity=key_vault_user_identity_id, + encryption_federated_identity_client_id=federated_identity_client_id + ) if access_tier: params.access_tier = AccessTier(access_tier) @@ -215,6 +218,9 @@ def create_storage_account(cmd, resource_group_name, account_name, sku=None, loc if public_network_access is not None: params.public_network_access = public_network_access + if allowed_copy_scope is not None: + params.allowed_copy_scope = allowed_copy_scope + return scf.storage_accounts.begin_create(resource_group_name, account_name, params) @@ -282,11 +288,12 @@ def update_storage_account(cmd, instance, sku=None, tags=None, custom_domain=Non domain_sid=None, azure_storage_sid=None, sam_account_name=None, account_type=None, routing_choice=None, publish_microsoft_endpoints=None, publish_internet_endpoints=None, allow_blob_public_access=None, min_tls_version=None, allow_shared_key_access=None, - identity_type=None, user_identity_id=None, key_vault_user_identity_id=None, + identity_type=None, user_identity_id=None, + key_vault_user_identity_id=None, federated_identity_client_id=None, sas_expiration_period=None, key_expiration_period_in_days=None, allow_cross_tenant_replication=None, default_share_permission=None, immutability_period_since_creation_in_days=None, immutability_policy_state=None, - allow_protected_append_writes=None, public_network_access=None): + allow_protected_append_writes=None, public_network_access=None, allowed_copy_scope=None): StorageAccountUpdateParameters, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = \ cmd.get_models('StorageAccountUpdateParameters', 'Sku', 'CustomDomain', 'AccessTier', 'Identity', 'Encryption', 'NetworkRuleSet') @@ -344,10 +351,15 @@ def update_storage_account(cmd, instance, sku=None, tags=None, custom_domain=Non elif identity_type: params.identity = Identity(type=identity_type) - if key_vault_user_identity_id is not None: + if key_vault_user_identity_id is not None or federated_identity_client_id is not None: + original_encryption_identity = params.encryption.encryption_identity if params.encryption else None EncryptionIdentity = cmd.get_models('EncryptionIdentity') + if not original_encryption_identity: + original_encryption_identity = EncryptionIdentity() params.encryption.encryption_identity = EncryptionIdentity( - encryption_user_assigned_identity=key_vault_user_identity_id) + encryption_user_assigned_identity=key_vault_user_identity_id if key_vault_user_identity_id else original_encryption_identity.encryption_user_assigned_identity, + encryption_federated_identity_client_id=federated_identity_client_id if federated_identity_client_id else original_encryption_identity.encryption_federated_identity_client_id + ) AzureFilesIdentityBasedAuthentication = cmd.get_models('AzureFilesIdentityBasedAuthentication') if enable_files_aadds is not None: @@ -486,6 +498,9 @@ def update_storage_account(cmd, instance, sku=None, tags=None, custom_domain=Non if public_network_access is not None: params.public_network_access = public_network_access + if allowed_copy_scope is not None: + params.allowed_copy_scope = allowed_copy_scope + if enable_sftp is not None: params.is_sftp_enabled = enable_sftp if enable_local_user is not None: diff --git a/src/storage-preview/setup.py b/src/storage-preview/setup.py index 7303617c4e9..59b295c3870 100644 --- a/src/storage-preview/setup.py +++ b/src/storage-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.8.0" +VERSION = "0.8.1" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From 8e7f6e6a108a10b85a7c87310855adf948edd759 Mon Sep 17 00:00:00 2001 From: "yishiwang@microsoft.com" Date: Tue, 15 Mar 2022 13:36:45 +0800 Subject: [PATCH 2/3] rerun tests --- ..._account_file_delete_retention_policy.yaml | 112 +++++++++--------- ...storage_account_file_smb_multichannel.yaml | 86 +++++++------- 2 files changed, 99 insertions(+), 99 deletions(-) diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_delete_retention_policy.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_delete_retention_policy.yaml index c00d07ccf42..1c7b9599c47 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_delete_retention_policy.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_delete_retention_policy.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - --account-name -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -23,11 +23,11 @@ interactions: cache-control: - no-cache content-length: - - '486' + - '433' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:19 GMT + - Tue, 15 Mar 2022 04:04:30 GMT expires: - '-1' pragma: @@ -59,9 +59,9 @@ interactions: ParameterSetName: - --account-name -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -69,11 +69,11 @@ interactions: cache-control: - no-cache content-length: - - '486' + - '433' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:22 GMT + - Tue, 15 Mar 2022 04:04:32 GMT expires: - '-1' pragma: @@ -110,9 +110,9 @@ interactions: ParameterSetName: - --account-name -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -120,11 +120,11 @@ interactions: cache-control: - no-cache content-length: - - '384' + - '331' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:26 GMT + - Tue, 15 Mar 2022 04:04:34 GMT expires: - '-1' pragma: @@ -158,9 +158,9 @@ interactions: ParameterSetName: - --enable-delete-retention -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -168,11 +168,11 @@ interactions: cache-control: - no-cache content-length: - - '486' + - '433' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:28 GMT + - Tue, 15 Mar 2022 04:04:35 GMT expires: - '-1' pragma: @@ -208,9 +208,9 @@ interactions: ParameterSetName: - --enable-delete-retention -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"shareDeleteRetentionPolicy":{"enabled":false}}}' @@ -218,11 +218,11 @@ interactions: cache-control: - no-cache content-length: - - '376' + - '323' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:32 GMT + - Tue, 15 Mar 2022 04:04:36 GMT expires: - '-1' pragma: @@ -238,7 +238,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -256,9 +256,9 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":false,"days":0}}}' @@ -266,11 +266,11 @@ interactions: cache-control: - no-cache content-length: - - '487' + - '434' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:33 GMT + - Tue, 15 Mar 2022 04:04:38 GMT expires: - '-1' pragma: @@ -302,9 +302,9 @@ interactions: ParameterSetName: - --account-name -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":false,"days":0}}}' @@ -312,11 +312,11 @@ interactions: cache-control: - no-cache content-length: - - '487' + - '434' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:36 GMT + - Tue, 15 Mar 2022 04:04:40 GMT expires: - '-1' pragma: @@ -352,9 +352,9 @@ interactions: ParameterSetName: - --account-name -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"shareDeleteRetentionPolicy":{"enabled":false}}}' @@ -362,11 +362,11 @@ interactions: cache-control: - no-cache content-length: - - '376' + - '323' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:38 GMT + - Tue, 15 Mar 2022 04:04:41 GMT expires: - '-1' pragma: @@ -382,7 +382,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -400,9 +400,9 @@ interactions: ParameterSetName: - --delete-retention-days -n -g -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":false,"days":0}}}' @@ -410,11 +410,11 @@ interactions: cache-control: - no-cache content-length: - - '487' + - '434' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:40 GMT + - Tue, 15 Mar 2022 04:04:42 GMT expires: - '-1' pragma: @@ -446,9 +446,9 @@ interactions: ParameterSetName: - --enable-delete-retention --delete-retention-days -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":false,"days":0}}}' @@ -456,11 +456,11 @@ interactions: cache-control: - no-cache content-length: - - '487' + - '434' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:44 GMT + - Tue, 15 Mar 2022 04:04:43 GMT expires: - '-1' pragma: @@ -497,9 +497,9 @@ interactions: ParameterSetName: - --enable-delete-retention --delete-retention-days -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"shareDeleteRetentionPolicy":{"enabled":true,"days":10}}}' @@ -507,11 +507,11 @@ interactions: cache-control: - no-cache content-length: - - '385' + - '332' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:47 GMT + - Tue, 15 Mar 2022 04:04:45 GMT expires: - '-1' pragma: @@ -527,7 +527,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -545,9 +545,9 @@ interactions: ParameterSetName: - --delete-retention-days -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":10}}}' @@ -555,11 +555,11 @@ interactions: cache-control: - no-cache content-length: - - '487' + - '434' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:49 GMT + - Tue, 15 Mar 2022 04:04:46 GMT expires: - '-1' pragma: @@ -596,9 +596,9 @@ interactions: ParameterSetName: - --delete-retention-days -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_soft_delete000001/providers/Microsoft.Storage/storageAccounts/filesoftdelete000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"shareDeleteRetentionPolicy":{"enabled":true,"days":1}}}' @@ -606,11 +606,11 @@ interactions: cache-control: - no-cache content-length: - - '384' + - '331' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:52 GMT + - Tue, 15 Mar 2022 04:04:48 GMT expires: - '-1' pragma: @@ -626,7 +626,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_smb_multichannel.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_smb_multichannel.yaml index 8ee80758631..3ca23403ef2 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_smb_multichannel.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_account_file_smb_multichannel.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - --mc -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -23,11 +23,11 @@ interactions: cache-control: - no-cache content-length: - - '486' + - '419' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:52 GMT + - Tue, 15 Mar 2022 04:05:00 GMT expires: - '-1' pragma: @@ -64,9 +64,9 @@ interactions: ParameterSetName: - --mc -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-08-01 response: body: string: '{"error":{"code":"FeatureNotSupportedForAccount","message":"SMB Multichannel @@ -79,7 +79,7 @@ interactions: content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:54 GMT + - Tue, 15 Mar 2022 04:05:02 GMT expires: - '-1' pragma: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 409 message: Conflict @@ -109,9 +109,9 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":false}}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -119,11 +119,11 @@ interactions: cache-control: - no-cache content-length: - - '516' + - '449' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:57 GMT + - Tue, 15 Mar 2022 04:05:03 GMT expires: - '-1' pragma: @@ -155,9 +155,9 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb2000003/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -165,11 +165,11 @@ interactions: cache-control: - no-cache content-length: - - '486' + - '419' content-type: - application/json date: - - Thu, 11 Nov 2021 09:12:58 GMT + - Tue, 15 Mar 2022 04:05:05 GMT expires: - '-1' pragma: @@ -201,9 +201,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":false}}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -211,11 +211,11 @@ interactions: cache-control: - no-cache content-length: - - '516' + - '449' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:01 GMT + - Tue, 15 Mar 2022 04:05:06 GMT expires: - '-1' pragma: @@ -252,9 +252,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":true}}},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -262,11 +262,11 @@ interactions: cache-control: - no-cache content-length: - - '445' + - '378' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:04 GMT + - Tue, 15 Mar 2022 04:05:11 GMT expires: - '-1' pragma: @@ -282,7 +282,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -300,9 +300,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":true}}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -310,11 +310,11 @@ interactions: cache-control: - no-cache content-length: - - '515' + - '448' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:07 GMT + - Tue, 15 Mar 2022 04:05:11 GMT expires: - '-1' pragma: @@ -351,9 +351,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":false}}},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -361,11 +361,11 @@ interactions: cache-control: - no-cache content-length: - - '446' + - '379' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:09 GMT + - Tue, 15 Mar 2022 04:05:14 GMT expires: - '-1' pragma: @@ -381,7 +381,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -399,9 +399,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":false}}},"cors":{"corsRules":[]},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -409,11 +409,11 @@ interactions: cache-control: - no-cache content-length: - - '516' + - '449' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:12 GMT + - Tue, 15 Mar 2022 04:05:15 GMT expires: - '-1' pragma: @@ -450,9 +450,9 @@ interactions: ParameterSetName: - --enable-smb-multichannel -n -g User-Agent: - - AZURECLI/2.30.0 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.0 azsdk-python-azure-mgmt-storage/19.1.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default?api-version=2021-08-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_file_smb000001/providers/Microsoft.Storage/storageAccounts/filesmb1000002/fileServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/fileServices","properties":{"protocolSettings":{"smb":{"multichannel":{"enabled":true}}},"shareDeleteRetentionPolicy":{"enabled":true,"days":7}}}' @@ -460,11 +460,11 @@ interactions: cache-control: - no-cache content-length: - - '445' + - '378' content-type: - application/json date: - - Thu, 11 Nov 2021 09:13:15 GMT + - Tue, 15 Mar 2022 04:05:16 GMT expires: - '-1' pragma: @@ -480,7 +480,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK From 11a274abc9d7297f89d91cd6f7f7becbe6629a4a Mon Sep 17 00:00:00 2001 From: Yishi Wang Date: Tue, 15 Mar 2022 14:32:05 +0800 Subject: [PATCH 3/3] Update src/storage-preview/HISTORY.rst --- src/storage-preview/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage-preview/HISTORY.rst b/src/storage-preview/HISTORY.rst index 12f881058a0..5bdc0880861 100644 --- a/src/storage-preview/HISTORY.rst +++ b/src/storage-preview/HISTORY.rst @@ -2,7 +2,7 @@ Release History =============== -0.8.1 +0.8.1(2022-03-15) ++++++++++++++++++ * `az storage account create/update`: Support `--key-vault-federated-identity-client-id` and `--allowed-copy-scope`