How anomaly cost alerts should work

Janne Kujanpää 256 Reputation points
2023-03-27T14:09:09.21+00:00

We created anomaly cost alerts[1] on all subscriptions and configured recurrence weekly on Mondays and Thursdays.

We are now getting the report on Mondays and Thursdays and the content is snapshot of the cost but no explanation about anomaly like linked documentation page has on example screenshot.

What we should get:

User's image

What are we getting:

User's image

User's image


Is this feature broken or does it require some special configuration I missed?


Resource definition:

{
  "value": [
    {
      "id": "subscriptions/43b7da78-afca-4f29-b049-xxxx/providers/Microsoft.CostManagement/scheduledActions/dailyanomalybyresourcegroup",
      "name": "dailyanomalybyresourcegroup",
      "kind": "Email",
      "type": "Microsoft.CostManagement/ScheduledActions",
      "eTag": "\"23011208-0000-0100-0000-6419819d0000\"",
      "systemData": {
        "createdAt": "2023-03-21T10:01:47.9104343Z",
        "createdBy": "janne.kujanpaa@",
        "lastModifiedAt": "2023-03-21T10:06:21.0192251Z",
        "lastModifiedBy": "janne.kujanpaa@"
      },
      "properties": {
        "displayName": "Daily anomaly by resource group",
        "scope": "subscriptions/43b7da78-afca-4f29-b049-xxxx",
        "status": "Enabled",
        "viewId": "/subscriptions/43b7da78-afca-4f29-b049-xxxx/providers/Microsoft.CostManagement/views/ms:DailyAnomalyByResourceGroup",
        "fileDestination": {
          "fileFormats": [
            "Csv"
          ]
        },
        "schedule": {
          "frequency": "Weekly",
          "hourOfDay": 11,
          "daysOfWeek": [
            "Monday",
            "Thursday"
          ],
          "weeksOfMonth": [],
          "dayOfMonth": 0,
          "startDate": "2023-03-21T10:06:17Z",
          "endDate": "2024-03-20T10:06:17+00:00"
        },
        "notification": {
          "subject": "Cost anomaly detected in the {} subscription",
          "message": null,
          "to": [
            "1",
            "2",
            "3"
          ],
          "language": "en",
          "regionalFormat": "en"
        },
        "notificationEmail": null
      }
    }
  ],
  "nextLink": null
}

[1] https://learn.microsoft.com/en-us/azure/cost-management-billing/understand/analyze-unexpected-charges#create-an-anomaly-alert

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,615 questions
{count} votes

1 answer

Sort by: Most helpful
  1. David Broggy 6,371 Reputation points MVP Volunteer Moderator
    2023-03-27T14:40:06.28+00:00

    Hi Janne,

    Although your average cost change over 1 full day was 7.94%, there were several spikes between hours that exceeded 10% which is likely why you're getting the 'anomaly'.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.