webapp:Setting runtime stack for web app
Description of the new feature
When you manually create a new web app in Azure, one of the selections is “Runtime stack”, which I can set to “.NET Core 2.2”. But when I create a new web app via a powershell script, or even try to set its settings after the fact, there is no parameter for this. Going into it in Azure after it’s created, I see it has defaulted to “.NET” with a framework version in a separate selection. If I output the web app itself or its SiteConfig in powershell, I see nothing that seems to indicate the “Stack” selection.
Proposed implementation details (optional)
Add the Web App (App Service) 'Stack' property to both the output in powershell as well as an optional parameter in both New-AzWebApp and Set-AzWebApp.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI
same here, but with a node app. please add the option to set the stack using the pwsh. thank you,
Taking a look at this.
@ThejaChoudary / @Kotasudhakarreddy what is the update on this issue?
I have the same problem. this code sets current stack as metadata and it's work. (but you need always use New-AzResource!)
$propertiesObject = @{"CURRENT_STACK" = "dotnetcore"} New-AzResource -PropertyObject $propertiesObject -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Web/sites/config -ResourceName "$appName/metadata" -ApiVersion 2018-02-01 -Force
we have identified the issue. With the current available API we can set the runtime for Linux stack. We are checking with API team on ETA for the API to support Windows. Will start working on it based on the ETA provided by API team.
Any updates on this?
WebApp team, is there any update about this feature request?
@btardif can you share the details of the new API for runtime - so PS team can decide if we can start working on this. Thanks!
Just curious if the API now support changing runtime stack via powershell? I understand you can only create new one app service/plans currently. For instance I am curious if I can take a .netcore windows app service and change it to .netframework using powershell.
Thanks,
Still an issue as far as i can tell. I'm trying to set the stack for a Linux-app-plan using app service, where i also need to set the VERSION (Core 3.1 LTS at this case), which the AzureResource snippet above does not help with.
Having same issue. Any update on this?
Replicated issue and still exists. Following up and will provide an update shortly.
dependent on latest sdk to be available
any powershell update on this plz? for web apps and function apps
:bell: Routing this issue to @act-observability-squad.