File tree Expand file tree Collapse file tree
infrastructure/bootstrap/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ resource privateDNSZone 'Microsoft.Network/privateDnsZones@2024-06-01' = {
1919}
2020
2121resource vnetLink 'Microsoft.Network/privateDnsZones/virtualNetworkLinks@2024-06-01' = {
22+ location : 'global'
2223 name : '${last (split (vnetId , '/' ))}-link'
2324 parent : privateDNSZone
24- location : 'global'
2525 properties : {
2626 virtualNetwork : {
2727 id : vnetId
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ var groupID = {
1616
1717// Retrieve the existing vnet resource group
1818resource vnetRG 'Microsoft.Resources/resourceGroups@2024-11-01' existing = {
19- name : RGName
2019 scope : subscription ()
20+ name : RGName
2121}
2222
2323// Retrieve the existing vnet
2424resource vnet 'Microsoft.Network/virtualNetworks@2024-01-01' existing = {
25- name : vnetName
2625 scope : vnetRG
26+ name : vnetName
2727}
2828
2929// Retrieve the existing Subnet within the vnet
Original file line number Diff line number Diff line change @@ -61,11 +61,6 @@ resource blobContainer 'Microsoft.Storage/storageAccounts/blobServices/container
6161 }
6262}
6363
64- // See: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
65- var roleID = {
66- blobContributor : 'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
67- }
68-
6964// Define role assignments array
7065var roleAssignments = [
7166 {
@@ -75,6 +70,11 @@ var roleAssignments = [
7570 }
7671]
7772
73+ // See: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
74+ var roleID = {
75+ blobContributor : 'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
76+ }
77+
7878// Let the managed identity edit the terraform state
7979resource blobContributorAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
8080 name : guid (subscription ().subscriptionId , miPrincipalID , 'blobContributor' )
You can’t perform that action at this time.
0 commit comments