Fix 101-synapse (#187)

* fix 101-synapse

Co-authored-by: zjhe <hezijie@microsoft.com>
This commit is contained in:
lonegunmanb
2023-03-14 07:20:21 +08:00
committed by GitHub
parent 03954463dc
commit bf49ecaafd
6 changed files with 53 additions and 11 deletions

View File

@ -1,3 +1,7 @@
locals {
current_user_id = coalesce(var.msi_id, data.azurerm_client_config.current.object_id)
}
resource "azurerm_storage_account" "default" {
name = "st${local.safe_basename}"
resource_group_name = azurerm_resource_group.default.name
@ -11,7 +15,7 @@ resource "azurerm_storage_account" "default" {
resource "azurerm_role_assignment" "sbdc_current_user" {
scope = azurerm_storage_account.default.id
role_definition_name = "Storage Blob Data Contributor"
principal_id = data.azurerm_client_config.current.object_id
principal_id = local.current_user_id
}
resource "azurerm_role_assignment" "sbdc_syn_ws" {