straight-sunset-92336
06/13/2022, 12:06 PMconst defaultfunctionAppArgs = {
name: name,
resourceGroupName: args.resourcegroupname,
serverFarmId: args.WebAppPlanID,
kind: "functionapp,linux",
isDisabled: false,
linuxFxVersion: 'Python|3.9',
alwaysOn: true,
use32BitWorkerProcess: false,
siteConfig: {
appSettings: [
{
name: 'FUNCTIONS_WORKER_RUNTIME',
value: 'python'
},
{
name: 'FUNCTIONS_EXTENSION_VERSION',
value: '~4'
},
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY',
value: appinsightscomponent.instrumentationKey
},
{
name: 'AzureWebJobsStorage',
value: storageConnectionString
},
{
name: "WEBSITE_RUN_FROM_PACKAGE",
value: codeBlobUrl
},
{
name: 'WORKSPACE_ID',
value: args.wrkspaceid
},
]
},
};
const functionAppArgs = FunctionAppModifier ? FunctionAppModifier(defaultfunctionAppArgs) : defaultfunctionAppArgs;
const functionapp = new web.WebApp("Policycompliance-webapp", functionAppArgs, { deleteBeforeReplace: true });
const defaultfunctionAppArgs = {
name: name,
resourceGroupName: args.resourcegroupname,
serverFarmId: args.WebAppPlanID,
kind: "functionapp,linux",
siteConfig: {
linuxFxVersion: 'PYTHON|3.9',
alwaysOn: true,
use32BitWorkerProcess: false,
isDisabled: false,
appSettings: [
{
name: 'FUNCTIONS_WORKER_RUNTIME',
value: 'python'
},
{
name: 'FUNCTIONS_EXTENSION_VERSION',
value: '~4'
},
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY',
value: appinsightscomponent.instrumentationKey
},
{
name: 'AzureWebJobsStorage',
value: storageConnectionString
},
{
name: "WEBSITE_RUN_FROM_PACKAGE",
value: codeBlobUrl
},
{
name: 'WORKSPACE_ID',
value: args.wrkspaceid
},
]
},
};
const functionAppArgs = FunctionAppModifier ? FunctionAppModifier(defaultfunctionAppArgs) : defaultfunctionAppArgs;
const functionapp = new web.WebApp("Policycompliance-webapp", functionAppArgs, { deleteBeforeReplace: true });