首页 > 解决方案 > 用于获取与证书链接的所有应用程序服务的 Powershell 脚本

问题描述

有人可以告诉我如何构建一个脚本,该脚本可以列出应用服务内的所有应用服务证书和应用服务在任何 Azure 订阅内链接的应用服务计划吗?

标签: azureazure-web-app-serviceazure-powershell

解决方案


根据官方文档,Azure PowerShell不支持通过App Service Name获取证书服务计划。如果你想这样做,你可以通过resource group获得它们。

1.获取资源组中的Web App证书

Get-AzureRmWebAppCertificate -ResourceGroupName <resourcegroup> 

2.从资源组获取应用服务计划

Get-AzureRmAppServicePlan -ResourceGroupName <resourcegroup> 

有关详细信息,请参阅Get-AzureRmWebAppCertificate & Get-AzureRmAppServicePlan


推荐阅读