I have an ARM template and in the resource of the ...
# general
b
I have an ARM template and in the resource of the type
Microsoft.Web/sites
in the
siteConfig
section there is:
Copy code
"alwaysOn": true,
"linuxFxVersion": "DOCKER CONTAINER"
The Pulumi SDK supports
alwaysOn
is there a way to pass “linuxFxVersion”?
w
That is - something like this:
Copy code
const app = new azure.appservice.AppService(`as`, {
    ...resourceGroupArgs,
    appServicePlanId: appServicePlan.id,
    siteConfig: {
        linuxFxVersion: "DOCKER|nginx"
    },
    appSettings: {
        "WEBSITE_RUN_FROM_ZIP": codeBlobUrl,
        "ApplicationInsights:InstrumentationKey": appInsights.instrumentationKey,
        "APPINSIGHTS_INSTRUMENTATIONKEY": appInsights.instrumentationKey
    },
    connectionStrings: [{
        name: "db",
        value: 
            pulumi.all([sqlServer.name, database.name]).apply(([server, db]) => 
                `Server=tcp:${server}.<http://database.windows.net;initial|database.windows.net;initial> catalog=${db};user ID=${username};password=${pwd};Min Pool Size=0;Max Pool Size=30;Persist Security Info=true;`),
        type: "SQLAzure"
    }]    
});
b
Thank you
I think I was also looking at it from
new azure.appservice.FunctionApp
. I guess I can build the function app up from the AppService with the proper settings