azure - 用于获取与证书链接的所有应用程序服务的 Powershell 脚本
问题描述
有人可以告诉我如何构建一个脚本,该脚本可以列出应用服务内的所有应用服务证书和应用服务在任何 Azure 订阅内链接的应用服务计划吗?
解决方案
根据官方文档,Azure PowerShell不支持通过App Service Name获取证书和服务计划。如果你想这样做,你可以通过resource group获得它们。
1.获取资源组中的Web App证书
Get-AzureRmWebAppCertificate -ResourceGroupName <resourcegroup>
2.从资源组获取应用服务计划
Get-AzureRmAppServicePlan -ResourceGroupName <resourcegroup>
有关详细信息,请参阅Get-AzureRmWebAppCertificate & Get-AzureRmAppServicePlan。
推荐阅读
- pyqt5 - 为 PyQT5 进行 QT5 绑定的 sipconfig 模块在哪里?
- ios - 需要单个数字(日和月)的唯一日期格式化程序
- c - 我们可以在 Linux 中查看 say signal.h 文件的源代码吗
- vba - 如何更改 Word 文档中的背景颜色?
- c# - 当我尝试在我的 Blazor 项目上连接/创建 Sqlite db 时出错
- loops - 找到序列的第 n 项的方程
- wordpress - 删除产品的 WooCommerce 商店页面上的文本
- python-3.x - 已翻译字段和普通字段之间的 Django-parler unique_together 约束
- python - 如何将字符串中的一定数量的零替换为要求用户输入的数量,从字符串的末尾开始?
- python - 使用依赖于另一个 fortran 模块的 fortran 模块打包 Python + f2py 项目