Skip to content

Commit 86c0b85

Browse files
committed
reordering variables
1 parent 9b23040 commit 86c0b85

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

infrastructure/bootstrap/modules/dns.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ resource privateDNSZone 'Microsoft.Network/privateDnsZones@2024-06-01' = {
1919
}
2020

2121
resource 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

infrastructure/bootstrap/modules/privateEndpoint-spoke.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ var groupID = {
1616

1717
// Retrieve the existing vnet resource group
1818
resource vnetRG 'Microsoft.Resources/resourceGroups@2024-11-01' existing = {
19-
name: RGName
2019
scope: subscription()
20+
name: RGName
2121
}
2222

2323
// Retrieve the existing vnet
2424
resource 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

infrastructure/bootstrap/modules/storage.bicep

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
7065
var 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
7979
resource blobContributorAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
8080
name: guid(subscription().subscriptionId, miPrincipalID, 'blobContributor')

0 commit comments

Comments
 (0)