This message was deleted.
# azure
s
This message was deleted.
b
1. yes, 2. yes, this is C# but you get the idea. I find github works great for finding examples. I'll search github for
Pulumi WebApp FunctionApp
for example.
āœ”ļø 1
LinuxFxVersion = "DOTNET-ISOLATED|7.0"
is required for .NET7 / Linux
m
In case you are interested I did a example a while ago with C# and Azure Native : https://github.com/TechWatching/AzureFunctionSQLBindings/blob/main/eng/infra/Components/Function.cs
šŸ‘ 1
l
Thanks @millions-journalist-34868. That's helpful. And thanks @bored-activity-40468 for your replies, too.
šŸ‘ 1
Best I can tell, neither respondent is affiliated with Pulumi (forgive me if I've got that wrong). I'm wondering if someone with Pulumi might be willing to reply, in particular to my final comments that begin with "Related to #3..." Thanks again.
@bored-activity-40468 @millions-journalist-34868 or anyone else that might weigh in... These aren't strictly Pulumi questions, but in trying to map Pulumi examples to Azure capabilities and options for functions... • Under what circumstances is WEBSITE_RUN_FROM_PACKAGE required? Always for linux? I've seen Windows functions (more precisely: Windows app service plans for the function) without that app setting. But I don't think I've seen any linux functions without it. • Does the existence/nonexistence of that setting affect actual deployment of function code (C#/dotnet for us)? It will be from github actions. Does the appropriate action just do the right thing based on whether or not that setting is set? Thanks.
m
I don't think it's required at all. It only is if you want your function app to run from a package which is the recommended way. When you do that you have to use zip deploy method to deploy your function code. You can read this page if you want more details: https://learn.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package
šŸ‘ 1
šŸ‘ļø 1
I have not used the GitHub action for azure function myself but the documentation mentions "Kudu zip deploy method is used by the action for deployment of Functions." so it should be good with the website_run_from_package setting.
šŸ‘ļø 1