ambitious-crayon-56788
01/22/2020, 5:51 PMFUNCTIONS_EXTENSION_VERSION
version ~1
, I explicitly added an app setting to set it to ~2
, but this is being ignored.
Happy to share code and screenshots somewhere a little more private. Thanks.plain-eye-9759
01/22/2020, 5:57 PMversion
. Try setting that to ~2
better-rainbow-14549
01/22/2020, 6:45 PMambitious-crayon-56788
01/23/2020, 9:19 AMplain-eye-9759
01/23/2020, 9:25 AMambitious-crayon-56788
01/23/2020, 9:26 AMaz account set
-
If you have previously configured the Azure CLI,Certainly when I look at resources for the relevant stack in the console, the given resource ID for the Storage Account shows the expected Subscription ID and Resource Group. However, clicking the "Open in Azure Portal" link next to the resource results in an infinite spinner, suggesting the Storage Account does not exist. I suspect that Storage Account creation is failing for some reason, but that Pulumi is not catching it and recording the activity as successful., Pulumi will respect and use your configuration settingsaz
name
property of each resource.
"use strict";
const pulumi = require("@pulumi/pulumi");
const azure = require("@pulumi/azure");
// Create a Resource Group.
const resourceGroup = new azure.core.ResourceGroup("resourceGroup", {
name: "example-resource-group",
tags: {
application: "Example Application",
environment: "DEV",
version: "0.0.1"
}
});
// Create a Storage Account for the Function App to use.
const storageAccount = new azure.storage.Account("storageAccount", {
name: "examplestorage",
resourceGroupName: resourceGroup.name,
accountTier: "Standard",
accountReplicationType: "LRS",
});
// Create an App Service Plan for the Funciton App to run on.
const appServicePlan = new azure.appservice.Plan("appServicePlan", {
name: "example-app-service-plan",
kind: "FunctionApp",
resourceGroupName: resourceGroup.name,
sku: {
size: "Y1",
tier: "Dynamic"
}
});
// Create a Function App.
const functionApp = new azure.appservice.FunctionApp("functionApp", {
name: "example-function-app",
appServicePlanId: appServicePlan.id,
resourceGroupName: resourceGroup.name,
storageConnectionString: storageAccount.primaryConnectionString,
version: "~2",
appSettings: {
FUNCTIONS_WORKER_RUNTIME: "powershell"
}
});
// Export the primary connection string for the Storage Account
exports.storageAccountConnectionString = storageAccount.primaryConnectionString;
exports.FunctionAppHostKeys = storageAccount.primaryConnectionString;
plain-eye-9759
01/23/2020, 9:36 AMversion
like you have done, then also in the appSettings, to set FUNCTIONS_EXTENSION_VERSION: "~2"
ambitious-crayon-56788
01/23/2020, 9:47 AMplain-eye-9759
01/23/2020, 9:58 AMambitious-crayon-56788
01/23/2020, 10:46 AM