@boundless-library-86481 I don’t define
kind
on the
WebApp
, this is what I do:
const plan = new web.AppServicePlan(`${environment}-plan`, {
name: `${environment}-plan`,
resourceGroupName: resourceGroup.name,
location: resourceGroup.location,
kind: "Linux",
reserved: true,
sku: {
name: "P1v2",
tier: "PremiumV2",
capacity: 1,
},
});
const app = new web.WebApp(`${environment}-app`, {
name: `${environment}-app`,
location: resourceGroup.location,
resourceGroupName: resourceGroup.name,
serverFarmId: plan.id,
httpsOnly: true,
identity: {
type: "SystemAssigned",
},
siteConfig: {
alwaysOn: true,
linuxFxVersion: pulumi.interpolate`DOCKER|${batchDockerImage}`,
healthCheckPath: healthCheckPath,
appSettings: [
{
name: "WEBSITES_PORT",
value: "9090",
},
{
name: "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
value: "false",
},
{
name: "DOCKER_REGISTRY_SERVER_URL",
value: dockerRegistryServerUrl,
},
{
name: "DOCKER_REGISTRY_SERVER_USERNAME",
value: dockerRegistryServerUsername,
},
{
name: "DOCKER_REGISTRY_SERVER_PASSWORD",
value: dockerRegistryServerPassword,
}
],
},
tags: {
environment: environment,
},
});