Skip to content

Commit

Permalink
V n et gov fix (#687)
Browse files Browse the repository at this point in the history
* updates

* updates

* DSC fix

* DSC fix
  • Loading branch information
danycontre authored Oct 15, 2024
1 parent 2798bc5 commit 53355a8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion workload/bicep/modules/networking/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ var varExistingAvdVnetName = !createVnet ? split(existingAvdSubnetResourceId, '/
var varExistingAvdVnetResourceId = !createVnet
? '/subscriptions/${varExistingAvdVnetSubId}/resourceGroups/${varExistingAvdVnetSubRgName}/providers/Microsoft.Network/virtualNetworks/${varExistingAvdVnetName}'
: ''
var varVnetDiagnosticSettings = (!empty(alaWorkspaceResourceId) && (environment().name == 'AzureCloud'))
? [
{
workspaceResourceId: alaWorkspaceResourceId
}
]
: (!empty(alaWorkspaceResourceId) && (environment().name != 'AzureCloud')) ? [
{
workspaceResourceId: alaWorkspaceResourceId
logCategoriesAndGroups: []
}
]: []
var varDiagnosticSettings = !empty(alaWorkspaceResourceId)
? [
{
Expand Down Expand Up @@ -543,7 +555,7 @@ module virtualNetwork '../../../../avm/1.0.0/res/network/virtual-network/main.bi
]
ddosProtectionPlanResourceId: deployDDoSNetworkProtection ? ddosProtectionPlan.outputs.resourceId : ''
tags: tags
diagnosticSettings: varDiagnosticSettings
diagnosticSettings: varVnetDiagnosticSettings
}
dependsOn: createVnet
? [
Expand Down

0 comments on commit 53355a8

Please sign in to comment.