azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

webapp:Setting runtime stack for web app

Open tcsdmaic opened this issue 7 years ago • 17 comments

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.

tcsdmaic avatar Nov 11 '19 23:11 tcsdmaic

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI

ghost avatar Nov 12 '19 01:11 ghost

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI

ghost avatar Nov 12 '19 01:11 ghost

same here, but with a node app. please add the option to set the stack using the pwsh. thank you,

scibotaru avatar Nov 25 '19 15:11 scibotaru

Taking a look at this.

ThejaChoudary avatar Jan 22 '20 14:01 ThejaChoudary

@ThejaChoudary / @Kotasudhakarreddy what is the update on this issue?

panchagnula avatar Mar 31 '20 16:03 panchagnula

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

tj-jyk avatar Apr 01 '20 07:04 tj-jyk

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.

Kotasudhakarreddy avatar Apr 07 '20 16:04 Kotasudhakarreddy

Any updates on this?

Japeth avatar Apr 28 '20 17:04 Japeth

WebApp team, is there any update about this feature request?

dingmeng-xue avatar Aug 03 '20 05:08 dingmeng-xue

@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!

panchagnula avatar Aug 03 '20 15:08 panchagnula

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,

mplasch avatar Jan 27 '21 14:01 mplasch

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.

ransagy avatar Apr 22 '21 15:04 ransagy

Having same issue. Any update on this?

promisepreston avatar Jun 22 '21 14:06 promisepreston

Replicated issue and still exists. Following up and will provide an update shortly.

seligj95 avatar Jun 24 '21 14:06 seligj95

dependent on latest sdk to be available

seligj95 avatar Jul 07 '21 19:07 seligj95

any powershell update on this plz? for web apps and function apps

sarah026 avatar Dec 17 '21 11:12 sarah026

:bell: Routing this issue to @act-observability-squad.