storage account: disable blob anonymous access by default when create storage account

This commit is contained in:
Lili Deng 2024-10-10 16:18:19 +08:00 коммит произвёл LiliDeng
Родитель 7cdf089430
Коммит ca1ebfbc8a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1706,6 +1706,7 @@ def check_or_create_storage_account(
kind: str = "StorageV2",
enable_https_traffic_only: bool = True,
allow_shared_key_access: bool = False,
allow_blob_public_access: bool = False,
) -> None:
# check and deploy storage account.
# storage account can be deployed inside of arm template, but if the concurrent
@ -1728,6 +1729,7 @@ def check_or_create_storage_account(
location=location,
enable_https_traffic_only=enable_https_traffic_only,
allow_shared_key_access=allow_shared_key_access,
allow_blob_public_access=allow_blob_public_access,
)
operation = storage_client.storage_accounts.begin_create(
resource_group_name=resource_group_name,