From 2cc2d165e8869e2e7d102830b93c16db5346d0f9 Mon Sep 17 00:00:00 2001 From: DavidLHannah Date: Mon, 18 Mar 2024 22:44:20 -0400 Subject: [PATCH] Update vwanConnectivity.bicep (#744) resErGatewayLock is improperly scoped on resVpnGateway. Updating to resErGateway --- .../bicep/modules/vwanConnectivity/vwanConnectivity.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep index 955f57595..66d0dce69 100644 --- a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep +++ b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep @@ -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