Email notification when a certain date is reached – Microsoft Azure

huangapple go评论54阅读模式
英文:

Email notification when a certain date is reached - Microsoft Azure

问题

有没有办法在达到特定日期时接收电子邮件通知?

因为在我的基础架构中,我正在使用OAuth 2.0 API逻辑,当用于令牌生成的客户机密即将过期时,我希望收到通知。

我注意到在Azure Monitor警报规则中,需要选择目标资源和范围,但我想创建的通知仅基于所选日期。

英文:

is there a way to receive an e-mail notification when a certain date is reached?

Because in my infrastructure I'm using an oAuth 2.0 API logic and I want to be notified when the client secret for the token generation is going to expire.

I have seen that in Azure Monitor Alert Rule, it is necessary to select a target resource and a scope, but the notification that I want to create is only based on the selected date.

答案1

得分: 0

有一种方法可以在达到特定日期时创建电子邮件通知。

感谢rickvdbosch提出了Logic Apps功能的建议。

您可以使用Logic Apps来触发电子邮件通知。

  1. 创建一个应用注册并创建一个机密。

Azure 门户 > Azure Active Directory > 应用注册 > 新建注册

Email notification when a certain date is reached – Microsoft Azure

  1. 在应用中分配权限并授予权限。

Email notification when a certain date is reached – Microsoft Azure

  1. 为了保护HTTP操作,您可以使用Azure Key Vault来存储机密。

  2. 创建Azure Key Vault

Azure 门户 > 密钥保管库 > 创建

Email notification when a certain date is reached – Microsoft Azure

  1. Azure Key Vault中创建机密。

Email notification when a certain date is reached – Microsoft Azure

  1. 创建一个Logic App。

Azure 门户 > Logic Apps > 创建。

Email notification when a certain date is reached – Microsoft Azure

按照Peter创建的文档来遵循Logic Apps的流程,在达到特定日期时触发电子邮件通知。

英文:

There is a way to create email notification when a certain date is reached.

Thanks to rickvdbosch for suggesting Logic Apps feature.

You can use Logic apps to trigger the email notification.

  1. Create an app registration and create one secret.

Azure Portal >Azure Active Directory > App registrations > New Registration

Email notification when a certain date is reached – Microsoft Azure

  1. Assign permission in app and grant the permission.

Email notification when a certain date is reached – Microsoft Azure

  1. To secure HTTP action you can use Azure Key vault to store the secrets.

  2. Create azure Key vault

Azure Portal > Key vault > Create

Email notification when a certain date is reached – Microsoft Azure

  1. Create Secrets in Azure Key Vault.

Email notification when a certain date is reached – Microsoft Azure

  1. Create a Logic App.

Azure Portal > Logic Apps > Create.

Email notification when a certain date is reached – Microsoft Azure

Follow the document created by Peter to follow the Logic Apps flow to trigger the email when a certain date is reached.

huangapple
  • 本文由 发表于 2023年2月8日 16:40:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75383150.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定