sparse-intern-71089
06/13/2022, 12:06 PMstraight-sunset-92336
06/13/2022, 12:08 PMstraight-sunset-92336
06/13/2022, 1:54 PMstraight-sunset-92336
06/14/2022, 7:44 AMconst 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 });