through powershell determine the azure web apps runtime stack

Srinu Raavi 1 Reputation point
2021-03-02T15:22:17.927+00:00

via powershell a Web App to determine the Runtime Stack (.Net Core, ASP.net, Java, Node, PHP, Python, Ruby), the Runtime Version, as well as the Operating System (Windows vs Linux). Some information can be found in the SiteConfig from Get-AzWebApp, but only shows information if a Linux OS, not Windows OS.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,149 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 29,481 Reputation points Microsoft Employee
    2021-03-03T06:22:10.627+00:00

    Hi @Srinu Raavi ,

    Unfortunately, I don't think this is possible. AzureRm.Website returns a Site object, which doesn't contain any property related to an App Service runtime. AzureRm is being phased out, replaced with Az. Get-AzWebApp returns a PSSite object which is like Site and it also doesn't have a property that identifies the runtime. The docs are complete for the PSSite but ran the command just to make sure.

    Regards,
    Ryan

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.