11// /******************************************************************************************************************/
22// This is an example test program to create private networking resources independently with sample inputs
33//
4- // Please review below modules to understand the how things are wired together:
4+ // Please review below modules to understand how things are wired together:
55// infra/main.bicep
66// infra/modules/network.bicep
77// infra/moddules/network/main.bicep
@@ -205,14 +205,13 @@ param jumpboxSubnet object = {
205205// Azure Bastion Host parameters
206206param bastionSubnet object = {
207207 addressPrefixes : ['10.0.10.0/23' ] // /23 (10.0.10.0 - 10.0.11.255), 512 addresses
208- networkSecurityGroup : null // Azure Bastion subnet must NOT have an NSG
208+ networkSecurityGroup : null // Azure Bastion subnet must NOT have custom NSG as it is managed by Azure
209209}
210210
211211
212- // /****************************************************************************************************************************/
213- // Create Log Analytics Workspace for monitoring and diagnostics
214- // /****************************************************************************************************************************/
215-
212+ // /******************************************************************************************************************/
213+ // Create Log Analytics Workspace for monitoring and diagnostics
214+ // /******************************************************************************************************************/
216215module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0.11.2' = {
217216 name : take ('log-analytics-${resourcesName }-deployment' , 64 )
218217 params : {
@@ -225,10 +224,9 @@ module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0
225224 }
226225}
227226
228- // /**************************************************************************************************************************** /
227+ // /******************************************************************************************************************/
229228// Networking - NSGs, VNET and Subnets. Each subnet has its own NSG
230- // /****************************************************************************************************************************/
231-
229+ // /******************************************************************************************************************/
232230module virtualNetwork 'virtualNetwork.bicep' = {
233231 name : '${resourcesName }-virtualNetwork'
234232 params : {
@@ -241,10 +239,9 @@ module virtualNetwork 'virtualNetwork.bicep' = {
241239 }
242240}
243241
244- // /**************************************************************************************************************************** /
242+ // /******************************************************************************************************************/
245243// // Create Azure Bastion Subnet and Azure Bastion Host
246- // /****************************************************************************************************************************/
247-
244+ // /******************************************************************************************************************/
248245module bastionHost 'bastionHost.bicep' = if (enableBastionHost && !empty (bastionSubnet )) {
249246 name : '${resourcesName }-bastionHost'
250247 params : {
@@ -258,10 +255,9 @@ module bastionHost 'bastionHost.bicep' = if(enableBastionHost && !empty(bastionS
258255 }
259256}
260257
261- // /**************************************************************************************************************************** /
258+ // /******************************************************************************************************************/
262259// // create Jumpbox NSG and Jumpbox Subnet, then create Jumpbox VM
263- // /****************************************************************************************************************************/
264-
260+ // /******************************************************************************************************************/
265261module jumpbox 'jumpbox.bicep' = if (jumpboxVM && !empty (jumpboxSubnet )) {
266262 name : '${resourcesName }-jumpbox'
267263 params : {
0 commit comments