Azure CLI命令az webapp list-runtimes的PowerShell等效命令查询
等效于
az webapp list-runtimes的PowerShell命令 当然有啦!在Azure PowerShell中,和Azure CLI的az webapp list-runtimes功能完全对应的命令是:
Get-AzWebAppRuntimeStack
这个命令会返回所有Azure Web Apps支持的运行时栈信息,涵盖Windows和Linux操作系统下的各类运行时版本,和az webapp list-runtimes输出的内容完全匹配。
如果需要筛选特定操作系统的运行时,还可以添加参数精准查询:
- 只查看Linux系统的运行时:
Get-AzWebAppRuntimeStack -OsType Linux - 只查看Windows系统的运行时:
Get-AzWebAppRuntimeStack -OsType Windows
这样就能轻松获取你需要的Web应用运行时信息啦!
内容的提问来源于stack exchange,提问作者objectclass




