Azdevify eshopOnWeb
This commit is contained in:
34
infra/core/host/functions-python.bicep
Normal file
34
infra/core/host/functions-python.bicep
Normal file
@@ -0,0 +1,34 @@
|
||||
param environmentName string
|
||||
param location string = resourceGroup().location
|
||||
|
||||
param allowedOrigins array = []
|
||||
param applicationInsightsName string = ''
|
||||
param appServicePlanId string
|
||||
param appSettings object = {}
|
||||
param keyVaultName string = ''
|
||||
param linuxFxVersion string = 'PYTHON|3.8'
|
||||
param managedIdentity bool = !(empty(keyVaultName))
|
||||
param serviceName string
|
||||
param storageAccountName string
|
||||
|
||||
module functions 'functions.bicep' = {
|
||||
name: '${serviceName}-functions-python'
|
||||
params: {
|
||||
environmentName: environmentName
|
||||
location: location
|
||||
allowedOrigins: allowedOrigins
|
||||
applicationInsightsName: applicationInsightsName
|
||||
appServicePlanId: appServicePlanId
|
||||
appSettings: appSettings
|
||||
functionsWorkerRuntime: 'python'
|
||||
keyVaultName: keyVaultName
|
||||
linuxFxVersion: linuxFxVersion
|
||||
managedIdentity: managedIdentity
|
||||
serviceName: serviceName
|
||||
storageAccountName: storageAccountName
|
||||
}
|
||||
}
|
||||
|
||||
output identityPrincipalId string = functions.outputs.identityPrincipalId
|
||||
output name string = functions.outputs.name
|
||||
output uri string = functions.outputs.uri
|
||||
Reference in New Issue
Block a user