https://pulumi.com logo
#general
Title
# general
b

billowy-television-23506

12/03/2018, 11:45 PM
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

white-balloon-205

12/03/2018, 11:55 PM
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

billowy-television-23506

12/04/2018, 12:43 AM
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