英文:
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来触发电子邮件通知。
- 创建一个应用注册并创建一个机密。
Azure 门户 > Azure Active Directory > 应用注册 > 新建注册
- 在应用中分配权限并授予权限。
-
为了保护HTTP操作,您可以使用Azure Key Vault来存储机密。
-
创建Azure Key Vault
Azure 门户 > 密钥保管库 > 创建
- 在Azure Key Vault中创建机密。
- 创建一个Logic App。
Azure 门户 > Logic Apps > 创建。
按照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.
- Create an app registration and create one secret.
Azure Portal >Azure Active Directory > App registrations > New Registration
- Assign permission in app and grant the permission.
-
To secure HTTP action you can use Azure Key vault to store the secrets.
-
Create azure Key vault
Azure Portal > Key vault > Create
- Create Secrets in Azure Key Vault.
- Create a Logic App.
Azure Portal > Logic Apps > Create.
Follow the document created by Peter to follow the Logic Apps flow to trigger the email when a certain date is reached.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论