зеркало из https://github.com/microsoft/lisa.git
storage account: disable blob anonymous access by default when create storage account
This commit is contained in:
Родитель
7cdf089430
Коммит
ca1ebfbc8a
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче