Skip to content

Commit f36e278

Browse files
committed
Add support for vnet in app service/functions
1 parent 8685f4d commit f36e278

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

templates/common/infra/bicep/core/host/appservice.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ param scmDoBuildDuringDeployment bool = false
3636
param use32BitWorkerProcess bool = false
3737
param ftpsState string = 'FtpsOnly'
3838
param healthCheckPath string = ''
39+
param virtualNetworkSubnetId string = ''
3940

4041
resource appService 'Microsoft.Web/sites@2022-03-01' = {
4142
name: name
@@ -61,6 +62,7 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {
6162
}
6263
clientAffinityEnabled: clientAffinityEnabled
6364
httpsOnly: true
65+
virtualNetworkSubnetId: !empty(virtualNetworkSubnetId) ? virtualNetworkSubnetId : null
6466
}
6567

6668
identity: { type: managedIdentity ? 'SystemAssigned' : 'None' }

templates/common/infra/bicep/core/host/functions.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ param appServicePlanId string
99
param keyVaultName string = ''
1010
param managedIdentity bool = !empty(keyVaultName)
1111
param storageAccountName string
12+
param virtualNetworkSubnetId string = ''
1213

1314
// Runtime Properties
1415
@allowed([
@@ -74,6 +75,7 @@ module functions 'appservice.bicep' = {
7475
runtimeNameAndVersion: runtimeNameAndVersion
7576
scmDoBuildDuringDeployment: scmDoBuildDuringDeployment
7677
use32BitWorkerProcess: use32BitWorkerProcess
78+
virtualNetworkSubnetId: virtualNetworkSubnetId
7779
}
7880
}
7981

0 commit comments

Comments
 (0)