Azure / Azure/azure-quickstart-templates

InvalidSeverityValue in deployment of oms-azure-storage-analytics-solution

Open
#4,693 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

If you try to deploy the "oms-azure-storage-analytics-solution" as is then it fails with:

`"resourceType": {
"value": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions"`

`"statusMessage": "{\"error\":{\"code\":\"InvalidSeverityValue\",\"message\":\"Allowed Severity values are 'critical', 'warning' and 'informational'\"}}"`

It seems that on 18th of may there was an update of Log Analytics Alerts which switched them from OMS to Azure actions. Probably that broke the mapping of severity, which is now should be lower case.
Also now you need to add a reference to an Azure Action Group like this:

`"AzNsNotification": { "GroupIds": [ "/subscriptions/1234a45-123d-4321-12aa-123b12a5678/resourcegroups/my-resource-group/providers/microsoft.insights/actiongroups/test-actiongroup" ] },`

So the template needs update.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the oms-azure-storage-analytics-solution deployment template and reviewing its Log Analytics alert definitions. Deploy the template as described in the issue, then verify that severity values use the accepted lowercase names and that the Azure Action Group reference is present and the deployment succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.