You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用Azure Resource Graph Explorer查询Application Gateway证书到期日

通过Azure Resource Graph Explorer查询Azure Application Gateway证书到期日期

可以通过Azure Resource Graph Explorer查询并导出Application Gateway关联证书的到期日期,对应数据存储在资源的properties.sslCertificates属性数组中,其中properties.notAfter字段即为证书的到期时间。

可用查询语句

resources
| where type == "microsoft.network/applicationgateways"
| extend sslCertificates = properties.sslCertificates
| mv-expand sslCertificates
| project 
    订阅ID = subscriptionId,
    资源组 = resourceGroup,
    应用网关名称 = name,
    证书名称 = sslCertificates.name,
    证书到期时间 = sslCertificates.properties.notAfter,
    证书指纹 = sslCertificates.properties.thumbprint
| order by 证书到期时间 asc

使用说明

  • 登录Azure Portal打开Resource Graph Explorer,粘贴上述语句直接运行即可看到结果
  • 点击结果面板顶部的导出按钮,可将结果导出为CSV或Excel文件到本地
  • 查询默认按证书到期时间升序排序,即将过期的证书会优先展示,便于批量巡检
  • 若需要查询应用网关配置的信任根证书到期时间,可将语句中的properties.sslCertificates替换为properties.trustedRootCertificates即可

内容的提问来源于stack exchange,提问作者Steve

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.01 23:48:01