Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage account: set allow_shared_key_access as false when create new storage accounts #3302

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lisa/sut_orchestrator/azure/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,7 @@ def check_or_create_storage_account(
sku: str = "Standard_LRS",
kind: str = "StorageV2",
enable_https_traffic_only: bool = True,
allow_shared_key_access: bool = False,
) -> None:
# check and deploy storage account.
# storage account can be deployed inside of arm template, but if the concurrent
Expand All @@ -1718,6 +1719,7 @@ def check_or_create_storage_account(
kind=kind,
location=location,
enable_https_traffic_only=enable_https_traffic_only,
allow_shared_key_access=allow_shared_key_access,
)
operation = storage_client.storage_accounts.begin_create(
resource_group_name=resource_group_name,
Expand Down
Loading