diff --git a/deploy/standard/infra/modules/dns.bicep b/deploy/standard/infra/modules/dns.bicep index a505f1a555..9df5a0ce26 100644 --- a/deploy/standard/infra/modules/dns.bicep +++ b/deploy/standard/infra/modules/dns.bicep @@ -1,6 +1,7 @@ param key string param tags object param vnetId string +param vnetName string param zone string output id string = main.id @@ -21,7 +22,7 @@ resource main 'Microsoft.Network/privateDnsZones@2018-09-01' existing = { */ resource link 'Microsoft.Network/privateDnsZones/virtualNetworkLinks@2018-09-01' = { parent: main - name: 'foundationallm' + name: vnetName location: 'global' tags: tags diff --git a/deploy/standard/infra/networking-rg.bicep b/deploy/standard/infra/networking-rg.bicep index 0b7483403b..00cab90a3c 100644 --- a/deploy/standard/infra/networking-rg.bicep +++ b/deploy/standard/infra/networking-rg.bicep @@ -565,6 +565,7 @@ module dns './modules/dns.bicep' = [for zone in items(privateDnsZone): { params: { key: zone.key vnetId: main.id + vnetName: main.name zone: zone.value tags: {