Skip to content

Commit dafa23d

Browse files
fix: rename param name to vnetName to avoid collision with output name in virtualNetwork.bicep
Agent-Logs-Url: https://github.com/microsoft/content-generation-solution-accelerator/sessions/738e0d94-7901-44a8-a7a0-da1bf0928444 Co-authored-by: Yatish-Microsoft <234036280+Yatish-Microsoft@users.noreply.github.com>
1 parent 7494e38 commit dafa23d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ var deployAdminAccessResources = enablePrivateNetworking && deployBastionAndJump
381381
module virtualNetwork 'modules/virtualNetwork.bicep' = if (enablePrivateNetworking) {
382382
name: take('module.virtualNetwork.${solutionSuffix}', 64)
383383
params: {
384-
name: 'vnet-${solutionSuffix}'
384+
vnetName: 'vnet-${solutionSuffix}'
385385
addressPrefixes: ['10.0.0.0/20'] // 4096 addresses (enough for 8 /23 subnets or 16 /24)
386386
location: solutionLocation
387387
deployBastionAndJumpbox: deployAdminAccessResources

infra/modules/virtualNetwork.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Networking - NSGs, VNET and Subnets for Content Generation Solution
33
/****************************************************************************************************************************/
44
@description('Name of the virtual network.')
5-
param name string
5+
param vnetName string
66

77
@description('Azure region to deploy resources.')
88
param location string = resourceGroup().location
@@ -227,9 +227,9 @@ module nsgs 'br/public:avm/res/network/network-security-group:0.5.2' = [
227227

228228
// Create VNet and subnets using AVM Virtual Network module
229229
module virtualNetwork 'br/public:avm/res/network/virtual-network:0.7.2' = {
230-
name: take('avm.res.network.virtual-network.${name}', 64)
230+
name: take('avm.res.network.virtual-network.${vnetName}', 64)
231231
params: {
232-
name: name
232+
name: vnetName
233233
location: location
234234
addressPrefixes: addressPrefixes
235235
subnets: [

0 commit comments

Comments
 (0)