-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Closed
Copy link
Description
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az monitor metrics alert update
Errors:
'MetricAlertAction' object has no attribute 'webhook_properties'
Traceback (most recent call last):
Local\Temp\pip-unpacked-wheel-taryuzhh\knack\cli.py, ln 233, in invoke
azure\cli\core\commands\__init__.py, ln 660, in execute
azure\cli\core\commands\__init__.py, ln 723, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 715, in _run_job
azure\cli\command_modules\monitor\_exception_handler.py, ln 23, in exception_handler
azure\cli\core\commands\__init__.py, ln 694, in _run_job
azure\cli\core\commands\__init__.py, ln 331, in __call__
azure\cli\core\commands\arm.py, ln 527, in handler
cli\command_modules\monitor\operations\metric_alert.py, ln 96, in update_metric_alert
AttributeError: 'MetricAlertAction' object has no attribute 'webhook_properties'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az monitor metrics alert update --ids {} --remove-action {} --add-action {}
Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.20.0
Additional Context
The az monitor metrics alert list command returns the json in the following format:
[
{
"actions": [
{
"actionGroupId": "/subscriptions/<guid>/resourceGroups/<resource-group>/providers/microsoft.insights/actiongroups/<action-group-name>",
"webHookProperties": {}
}
],
]
so the property name in response is webHookProperties, not the webhook_properties that is mentioned in exception.
Reactions are currently unavailable