Skip to content

Commit

Permalink
Merge branch 'main' into ztaAddOnForEsri
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dzikowski committed Jan 31, 2024
2 parents 4cbcab6 + 9d4eac8 commit 040947a
Show file tree
Hide file tree
Showing 33 changed files with 7,483 additions and 6,624 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate-build-bicep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- 'src/bicep/**'
- '!src/bicep/**.md'
env:
BICEP_VERSION: 'v0.10.61'
BICEP_VERSION: 'v0.24.24'
jobs:
validate-build:
runs-on: ubuntu-latest
Expand All @@ -28,4 +28,4 @@ jobs:
git add src/bicep/mlz.json
git commit -m "GitHub Action: Build Bicep to JSON"
git push origin HEAD:"$GITHUB_HEAD_REF"
fi
fi
58 changes: 58 additions & 0 deletions src/bicep/core/hub-diagnostics.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
param firewallDiagnosticsLogs array
param firewallDiagnosticsMetrics array
param firewallName string
param hubStorageAccountResourceId string
param logAnalyticsWorkspaceResourceId string
param networkSecurityGroupDiagnosticsLogs array
param networkSecurityGroupDiagnosticsMetrics array
param networkSecurityGroupName string
param publicIPAddressDiagnosticsLogs array
param publicIPAddressDiagnosticsMetrics array
param publicIPAddressNames array
param virtualNetworkDiagnosticsLogs array
param virtualNetworkDiagnosticsMetrics array
param virtualNetworkName string

module networkSecurityGroupDiagnostics '../modules/network-security-group-diagnostics.bicep' = {
name: 'networkSecurityGroupDiagnostics'
params: {
logAnalyticsWorkspaceResourceId: logAnalyticsWorkspaceResourceId
logs: networkSecurityGroupDiagnosticsLogs
logStorageAccountResourceId: hubStorageAccountResourceId
metrics: networkSecurityGroupDiagnosticsMetrics
name: networkSecurityGroupName
}
}

module virtualNetworkDiagnostics '../modules/virtual-network-diagnostics.bicep' = {
name: 'virtualNetworkDiagnostics'
params: {
logAnalyticsWorkspaceResourceId: logAnalyticsWorkspaceResourceId
logs: virtualNetworkDiagnosticsLogs
logStorageAccountResourceId: hubStorageAccountResourceId
metrics: virtualNetworkDiagnosticsMetrics
name: virtualNetworkName
}
}

module publicIpAddressDiagnostics '../modules/public-ip-address-diagnostics.bicep' = [for publicIPAddressName in publicIPAddressNames: {
name: 'publicIPAddressDiagnostics_${publicIPAddressName}'
params: {
hubStorageAccountResourceId: hubStorageAccountResourceId
logAnalyticsWorkspaceResourceId: logAnalyticsWorkspaceResourceId
name: publicIPAddressName
publicIPAddressDiagnosticsLogs: publicIPAddressDiagnosticsLogs
publicIPAddressDiagnosticsMetrics: publicIPAddressDiagnosticsMetrics
}
}]

module firewallDiagnostics '../modules/firewall-diagnostics.bicep' = {
name: 'firewallDiagnostics'
params: {
logAnalyticsWorkspaceResourceId: logAnalyticsWorkspaceResourceId
logs: firewallDiagnosticsLogs
logStorageAccountResourceId: hubStorageAccountResourceId
metrics: firewallDiagnosticsMetrics
name: firewallName
}
}
Loading

0 comments on commit 040947a

Please sign in to comment.