当用户增加 SQL 数据库大小时接收通知

Receive notifications when a user increase the SQL database size

一旦用户将 SQL 服务器大小从 S9 更改为 S12(增加),我们希望收到通知。这在本地是可行的还是我们可以开发自定义 webhook 来接收通知?

此操作被记录到 Activity 日志中。 See here. So with this you should be able to create alerts following this tutorial: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-activity-log

使用 Usage 和 RateCard APIs 来估计云消耗和费用。 使用 API 会给你一个 metricID,你可以在使用 RateCard 的查询中使用它来预测价格,

https://docs.microsoft.com/bs-cyrl-ba/azure/billing/billing-usage-rate-card-overview

Sample is here

另一种选择是创建自定义 Azure 策略来审核 SQL SKU,然后在资源不符合 Azure 策略时创建警报以通知用户。

https://docs.microsoft.com/en-us/azure/governance/policy/samples/allowed-sql-db-skus

@silent 的回答可能是今天最好的选择。除此之外,您还可以使用 Resource Graph 来识别更改:https://docs.microsoft.com/en-us/azure/governance/resource-graph/how-to/get-resource-changes.