|
1 | 1 | // /******************************************************************************************************************/ |
2 | 2 | // This is an example test program to create private networking resources independently with sample network design. |
3 | | -// It is an illustration of how to use the main.bicep in the infra/modules/network folder, with your own parameters. |
| 3 | +// It is an illustration of how to use the network-resources.bicep in the infra/samples/network folder, with your own parameters. |
4 | 4 | // You can independently deploy this module to create a network with subnets, NSGs, Azure Bastion Host, and Jumpbox VM. |
5 | 5 | // Test them with this test program. Then integrate your design into the modules/network.bicep which is intended for |
6 | 6 | // a specific network design. |
7 | 7 | // |
8 | | -// All things in infra/modules/network are designed to be reusable and composable without the need to modify |
| 8 | +// All things in infra/samples/network are designed to be reusable and composable without the need to modify |
9 | 9 | // any code in the network folder. |
10 | 10 | // |
11 | 11 | // Please review below modules to understand how things are wired together: |
12 | 12 | // infra/main.bicep |
13 | 13 | // infra/modules/network.bicep |
14 | | -// infra/moddules/network/main.bicep |
| 14 | +// infra/samples/network/network-resources.bicep |
15 | 15 | // |
16 | 16 | // /******************************************************************************************************************/ |
17 | 17 |
|
@@ -39,7 +39,7 @@ param vmAdminUsername string = 'JumpboxAdminUser' |
39 | 39 | param vmAdminPassword string = 'JumpboxAdminP@ssw0rd1234!' |
40 | 40 |
|
41 | 41 |
|
42 | | -import { bastionHostConfigurationType } from '../modules/network/bastionHost.bicep' |
| 42 | +import { bastionHostConfigurationType } from 'network/bastionHost.bicep' |
43 | 43 | @description('Optional. Configuration for the Azure Bastion Host. Leave null to omit Bastion creation.') |
44 | 44 | param bastionConfiguration bastionHostConfigurationType = { |
45 | 45 | name: 'bastion-${resourcesName}' |
@@ -106,7 +106,7 @@ param bastionConfiguration bastionHostConfigurationType = { |
106 | 106 | } |
107 | 107 | } |
108 | 108 |
|
109 | | -import { jumpBoxConfigurationType } from '../modules/network/jumpbox.bicep' |
| 109 | +import { jumpBoxConfigurationType } from 'network/jumpbox.bicep' |
110 | 110 | @description('Optional. Configuration for the Jumpbox VM. Leave null to omit Jumpbox creation.') |
111 | 111 | param jumpboxConfiguration jumpBoxConfigurationType = { |
112 | 112 | name: 'vm-jumpbox-${resourcesName}' |
@@ -174,7 +174,7 @@ param addressPrefixes array = ['10.0.0.0/20'] // 4096 addresses (enough for 8 /2 |
174 | 174 | // - Document subnet usage and purpose in code comments. |
175 | 175 | // - For AVM modules, ensure only one delegation per subnet and leave delegations empty if not required. |
176 | 176 |
|
177 | | -import { subnetType } from '../modules/network/virtualNetwork.bicep' |
| 177 | +import { subnetType } from 'network/virtualNetwork.bicep' |
178 | 178 | @description('Array of subnets to be created within the VNET.') |
179 | 179 | param subnets subnetType[] = [ |
180 | 180 | { |
@@ -325,7 +325,7 @@ module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0 |
325 | 325 | // Networking - NSGs, VNET and Subnets. Each subnet has its own NSG |
326 | 326 | // /******************************************************************************************************************/ |
327 | 327 |
|
328 | | -module network '../modules/network/network-resources.bicep' = { |
| 328 | +module network 'network/network-resources.bicep' = { |
329 | 329 | name: take('network-${resourcesName}-create', 64) |
330 | 330 | params: { |
331 | 331 | resourcesName: resourcesName |
|
0 commit comments