I am new to Pulumi. I'm using C# to create an app...
# dotnet
b
I am new to Pulumi. I'm using C# to create an app service. In that app service, I'd like the stack to show up as .NET with version 6.0 (e.g. in portal under Configuration/General Settings/Stack Settings/Stack). I have NetFrameworkVersion to "v6.0" on the SiteConfig property of the app. There is no reference in the C# code that I can find to "stack". When I publish the app service, the Stack value in the configuration shows up as blank. So, is there a way to make it show up as .NET as it does in app services I've created manually? And more generally, is there a process I can follow to answer this kind of question, or do I need to just spam the Slack channel every time I have a question?
i
For .NET x64, in SiteConfigArgs I use:
Copy code
NetFrameworkVersion = "6",
Use32BitWorkerProcess = false,
1
1
b
That answers another question I had. Setting the framework version to 6 instead of v6.0 fixes the stack problem. When I try to set the Use32BitWorkerProcess to false, it fails, but upon reflection I think that's because I'm using a free service plan which supports only 32 bit app services. Thanks!
🎉 1
m
is there a process I can follow to answer this kind of question
I've been having a lot of success in property value "discovery" using the import resource operation https://www.pulumi.com/docs/guides/adopting/import/ 1. Create an app with the desired configuration in the portal. 2. Declare an app via pulumi with the
ImportId
to what is in (1). 3. Use the "details" view (
pulumi up
) to see diffs, which are very helpful for what properties and values need configuring in (2).