From 5242740da2ae3309c9a2c8203bc43ef4132dccd0 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Wed, 1 Jun 2022 16:30:01 -0700 Subject: [PATCH] pass in value by param name instead of in headers (#24668) --- .../azure-storage-blob/azure/storage/blob/_blob_client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py index a9d981e592ea..3800e5ce9640 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py @@ -1521,11 +1521,12 @@ def _create_page_blob_options( # type: ignore kwargs['immutability_policy_expiry'] = immutability_policy.expiry_time kwargs['immutability_policy_mode'] = immutability_policy.policy_mode + tier = None if premium_page_blob_tier: try: - headers['x-ms-access-tier'] = premium_page_blob_tier.value # type: ignore + tier = premium_page_blob_tier.value # type: ignore except AttributeError: - headers['x-ms-access-tier'] = premium_page_blob_tier # type: ignore + tier = premium_page_blob_tier # type: ignore blob_tags_string = serialize_blob_tags_header(kwargs.pop('tags', None)) @@ -1541,6 +1542,7 @@ def _create_page_blob_options( # type: ignore 'cpk_info': cpk_info, 'blob_tags_string': blob_tags_string, 'cls': return_response_headers, + "tier": tier, 'headers': headers} options.update(kwargs) return options