Skip to content

Commit

Permalink
Add vnet address space parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Jul 9, 2024
1 parent c9bade9 commit b8fd42f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ param appStorageAccountName string
param aspEnvironment string
param cosmosAccountName string
param location string
param vnetPrefix string
param subnetPrefix string

var cosmosContributorRoleId = '00000000-0000-0000-0000-000000000002' // Built-in Contributor role

Expand All @@ -23,7 +25,7 @@ resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
properties: {
addressSpace: {
addressPrefixes: [
'10.8.0.0/16'
vnetPrefix
]
}
virtualNetworkPeerings: []
Expand All @@ -35,7 +37,7 @@ resource subnet 'Microsoft.Network/virtualNetworks/subnets@2023-11-01' = {
parent: vnet
name: 'default'
properties: {
addressPrefix: '10.8.0.0/24'
addressPrefix: subnetPrefix
networkSecurityGroup: {
id: networkSecurityGroup.id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
},
"vnetName": {
"value": "pipelinewitnessprod"
},
"vnetPrefix": {
"value": "10.9.0.0/16"
},
"subnetPrefix": {
"value": "10.9.0.0/24"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
},
"vnetName": {
"value": "pipelinewitnessstaging"
},
"vnetPrefix": {
"value": "10.8.0.0/16"
},
"subnetPrefix": {
"value": "10.8.0.0/24"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
},
"vnetName": {
"value": "pipelinewitnesstest"
},
"vnetPrefix": {
"value": "10.7.0.0/16"
},
"subnetPrefix": {
"value": "10.7.0.0/24"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ param appServicePlanName string
param webAppName string
param networkSecurityGroupName string
param vnetName string
param vnetPrefix string
param subnetPrefix string
param cosmosAccountName string
param appStorageAccountName string
param aspEnvironment string
Expand All @@ -28,6 +30,8 @@ module pipelineWitness 'appResourceGroup.bicep' = {
params: {
location: location
appServicePlanName: appServicePlanName
vnetPrefix: vnetPrefix
subnetPrefix: subnetPrefix
webAppName: webAppName
cosmosAccountName: cosmosAccountName
appStorageAccountName: appStorageAccountName
Expand Down

0 comments on commit b8fd42f

Please sign in to comment.