Azdev-ify changes for latest /bicep/core

This commit is contained in:
zedy
2022-11-18 10:25:09 +08:00
parent c783174933
commit 88a27783a1
45 changed files with 762 additions and 633 deletions

View File

@@ -1,18 +1,23 @@
param environmentName string
param name string
param location string = resourceGroup().location
param appServicePlanId string
param tags object = {}
param serviceName string = 'web'
param appCommandLine string = 'pm2 serve /home/site/wwwroot --no-daemon --spa'
param applicationInsightsName string = ''
param appServicePlanId string
param appSettings object = {}
module web '../core/host/appservice-dotnet.bicep' = {
name: '${serviceName}-appservice-dotnet-module'
module web '../core/host/appservice.bicep' = {
name: '${name}-deployment'
params: {
environmentName: environmentName
name: name
location: location
appServicePlanId: appServicePlanId
serviceName: serviceName
runtimeName: 'dotnetcore'
runtimeVersion: '6.0'
tags: union(tags, { 'azd-service-name': serviceName })
scmDoBuildDuringDeployment: false
}
}
output WEB_NAME string = web.outputs.name
output WEB_URI string = web.outputs.uri
output REACT_APP_WEB_BASE_URL string = web.outputs.uri