如何在服务原则密钥到期时在azure中设置警报? [英] How to set alerts in azure for service principle key expiry ?

查看:103
本文介绍了如何在服务原则密钥到期时在azure中设置警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的服务原则密钥到期设置警报,而不是在门户网站或任何地方找到任何选项,如何实现? 



Vineesha Reddy

解决方案

您好Vineesha Reddy,


您可以编写脚本来获取服务主键的到期时间。请在MSDN上查看以下答案以获得到期时间。


https://social.msdn.microsoft.com /论坛/天蓝色/ EN-US / ef93391d-DACF-46a4-80a3-924e21dffda1 /如何到获取客户端的秘密 - 到期-日期使用最Azure的广告图形的API?论坛= WindowsAzureAD


但是现在没有选项可以在门户网站上为服务主密钥到期设置警报。


我希望这会有所帮助。


谢谢。


I'm trying to set alerts for my service principle key expiry not finding any option in the portal or anywhere, how to achieve that ? 


Vineesha Reddy

解决方案

Hi Vineesha Reddy,

You can write a script to get the expiry time of service principal key. Please check the below answer on MSDN to get expiry time.

https://social.msdn.microsoft.com/Forums/azure/en-US/ef93391d-dacf-46a4-80a3-924e21dffda1/how-to-get-client-secret-expiry-date-using-the-azure-ad-graph-api?forum=WindowsAzureAD

But right now there is no option to set an alert on portal for service principal key expiry.

I hope this helps.

Thank you.


这篇关于如何在服务原则密钥到期时在azure中设置警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆