创建任何人都可以启动的自定义 SQL Azure 警报

Create an custom SQL Azure Alert that can be initiated by anyone

我正在尝试创建一个自定义 Azure 警报,它会在我订阅的任何资源组中 "A SQL Database is created by anyone" 时发送电子邮件。

这可能吗?

当我在 "Event Initiated by" 框中放置 * 时(见图),它不会让我保存并抛出错误。

When I put a * in the "Event Initiated by" box (see image), it wont let me save and throws an error.

您不需要输入 *

只需将该字段留空,完成后它的值应该为 "any"。

I am trying to create a custom Azure Alert that sends an email whenever "A SQL Database is created by anyone" in any resource group across my subscription.

我发现此处的措辞与您尝试根据问题中的图片配置的规则之间存在差异。我这样说是因为在图像中你似乎 select "testserver/testdb" 作为特定资源组 "SQL-Sandbox".

下的目标

此配置不等同于对您的订阅进行监控。

如果您想监控整个订阅,您可以通过两种可能的方式配置您的目标。我也很快在免费订阅中试用了它,并将显示屏幕截图。

  1. 目标只是顶级订阅,仅此而已。

  2. 目标是顶级订阅下的所有数据库。

根据类型 1 的目标屏幕截图

根据类型 2 的目标屏幕截图