Azdevify eshopOnWeb
This commit is contained in:
35
infra/core/host/appservice-node.bicep
Normal file
35
infra/core/host/appservice-node.bicep
Normal file
@@ -0,0 +1,35 @@
|
||||
param environmentName string
|
||||
param location string = resourceGroup().location
|
||||
|
||||
param allowedOrigins array = []
|
||||
param appCommandLine string = ''
|
||||
param applicationInsightsName string = ''
|
||||
param appServicePlanId string
|
||||
param appSettings object = {}
|
||||
param keyVaultName string = ''
|
||||
param linuxFxVersion string = 'NODE|16-lts'
|
||||
param managedIdentity bool = !(empty(keyVaultName))
|
||||
param scmDoBuildDuringDeployment bool = false
|
||||
param serviceName string
|
||||
|
||||
module appService 'appservice.bicep' = {
|
||||
name: '${serviceName}-appservice-node'
|
||||
params: {
|
||||
environmentName: environmentName
|
||||
location: location
|
||||
allowedOrigins: allowedOrigins
|
||||
appCommandLine: appCommandLine
|
||||
applicationInsightsName: applicationInsightsName
|
||||
appServicePlanId: appServicePlanId
|
||||
appSettings: appSettings
|
||||
keyVaultName: keyVaultName
|
||||
linuxFxVersion: linuxFxVersion
|
||||
managedIdentity: managedIdentity
|
||||
scmDoBuildDuringDeployment: scmDoBuildDuringDeployment
|
||||
serviceName: serviceName
|
||||
}
|
||||
}
|
||||
|
||||
output identityPrincipalId string = appService.outputs.identityPrincipalId
|
||||
output name string = appService.outputs.name
|
||||
output uri string = appService.outputs.uri
|
||||
Reference in New Issue
Block a user