Skip to content

Commit

Permalink
Update vwanConnectivity.bicep (#744)
Browse files Browse the repository at this point in the history
resErGatewayLock is improperly scoped on resVpnGateway. Updating to resErGateway
  • Loading branch information
DavidLHannah authored Mar 19, 2024
1 parent 88b40a5 commit 2cc2d16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ resource resErGateway 'Microsoft.Network/expressRouteGateways@2023-02-01' = [for

// Create a Virtual Network Gateway resource lock if gateway.name is not equal to noconfigVpn or noconfigEr and parGlobalResourceLock.kind != 'None' or if parVpnGatewayLock.kind != 'None'
resource resErGatewayLock 'Microsoft.Authorization/locks@2020-05-01' = [for (hub, i) in parVirtualWanHubs: if ((parVirtualHubEnabled) && (hub.parExpressRouteGatewayEnabled) && (parExpressRouteGatewayLock.kind != 'None' || parGlobalResourceLock.kind != 'None')) {
scope: resVpnGateway[i]
scope: resErGateway[i]
name: parExpressRouteGatewayLock.?name ?? '${resErGateway[i].name}-lock'
properties: {
level: (parGlobalResourceLock.kind != 'None') ? parGlobalResourceLock.kind : parExpressRouteGatewayLock.kind
Expand Down

0 comments on commit 2cc2d16

Please sign in to comment.