Skip to content

Commit

Permalink
fix: blob storage hardening identity assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
all4code committed Dec 11, 2023
1 parent 7cd0dac commit 072380d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/cli/services/cloud/azure/azure_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from azure.mgmt.storage.v2021_04_01.models import SkuName, Kind
from azure.mgmt.subscription import SubscriptionClient
from azure.storage.blob import BlobServiceClient

from common.logging_config import logger
from services.dns.dns_provider_manager import get_domain_txt_records_dot

Expand Down Expand Up @@ -405,7 +404,8 @@ def set_storage_access(self, identity: str, storage_account_name: str, resource_
{
# Storage Blob Data Owner
"role_definition_id": "/providers/Microsoft.Authorization/roleDefinitions/b7e6dc6d-f1e8-4753-8033-0f276bb0955b",
"principal_id": identity
"principal_id": identity,
"principalType": "ServicePrincipal"
})
return response

Expand Down

0 comments on commit 072380d

Please sign in to comment.