-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[az resource update] Unable to assign an action group ID for a Smart Detection alert rule #29560
Copy link
Copy link
Open
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
I'd like to update the Smart Detection alert rule by assigning an action group with its resource ID.
Related command
az resource update --name "Response Latency Degradation - sandbox" --resource-group "ResourceGroupName" --resource-type Microsoft.AlertsManagement/smartDetectorAlertRules --add properties.actionGroups.groupIds "/subscriptions/subscriptionId/resourceGroups/ResourceGroupName/providers/microsoft.insights/actiongroups/appinsightsperformancemonitoring"Errors
Couldn't find 'groupIds' in 'properties.actionGroups'. 'properties.actionGroups' does not support further indexing.Issue script & Debug output
Not applicable to az resource update.
Expected behavior
Programmatically add an action group to the current Smart Detector alert rule.
Environment Summary
Additional context
I've already tried with the other option like --set but an error appears as below: