azure monitor action rule create fails with rule type ActionGroup
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62
**Describe the bug**
Getting and issue, while trying to create a "azure monitor action rule" with "ActionGroup" as rule type using Azure CLI.
No specific parameter to pass "action group id" when rule-type is passed as ActionGroup.
What is the name of the parameter that should be used to pass the "action group id".
**To Reproduce**
Run the below CLI command to reproduce the issue.
`az monitor action-rule create --name "actrule-001" --resource-group "rg-dev-001" --status Enabled --rule-type ActionGroup --severity Equals Sev0 --scope-type ResourceGroup --scope /subscription/xyz/resourceGroups/rg-dev-001`
Below is the error while running the command:
Validation Error: Parameter "ActionGroup.action_group_id" can not be None.
**Expected behavior**
CLI documentation is not clear how to pass the action group id, when we pass the rule type as "ActionGroup"
**Environment summary**
CLI version 2.5.1 / OS version - Windows 10/ Shell Type - Bash on Windows
**Additional context**
Please provide sample to create a action rule using rule type as "ActionGroup" using Azure CLI.

Contributor guide
Assessment
This issue has not been assessed yet.