Fix deprecated storage connection string
MODIFY
azure-cs-functions-consumption/FunctionsStack.cs
azure-cs-functions-consumption/FunctionsStack.cs
@@ -55,7 +55,8 @@ class FunctionsStack : Stack
{"runtime", "dotnet"},
{"WEBSITE_RUN_FROM_PACKAGE", codeBlobUrl},
},
- StorageConnectionString = storageAccount.PrimaryConnectionString,
+ StorageAccountName = storageAccount.Name,
+ StorageAccountAccessKey = storageAccount.PrimaryAccessKey,
Version = "~3"
});

MODIFY
azure-cs-functions-linux-app/FunctionsStack.cs
azure-cs-functions-linux-app/FunctionsStack.cs
@@ -72,7 +72,8 @@ class FunctionsStack : Stack
{"WEBSITE_RUN_FROM_PACKAGE", codeBlobUrl},
{"APPLICATIONINSIGHTS_CONNECTION_STRING", Output.Format($"InstrumentationKey={insights.InstrumentationKey}")}
},
- StorageConnectionString = storageAccount.PrimaryConnectionString,
+ StorageAccountName = storageAccount.Name,
+ StorageAccountAccessKey = storageAccount.PrimaryAccessKey,
Version = "~3",
OsType = "linux",
SiteConfig = new FunctionAppSiteConfigArgs

Fix deprecated storage connection string (#772)