az monitor data-collection rule update
fails updating stream declaration
#7743
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Updating an existing data collection rule is not working.
az monitor data-collection rule update --resource-group my-rg --name my-dcr --stream-declarations "columns[{location:string}]"
error:
argument: Model 'AAZObjectArg' has no field named 'location'
az monitor data-collection rule update --resource-group my-rg --name my-dcr --stream-declarations "columns=[{'location':'string'}]"
error:
Failed to parse '--stream-declarations' argument: dict type value expected, got '[OrderedDict([('location', 'string')])]'(<class 'list '>)
Related command
az monitor data-collection rule update --resource-group my-rg --name my-dcr --stream-declarations "columns[{location:string}]"
Errors
Failed to parse '--stream-declarations' argument: dict type value expected, got '[OrderedDict([('location', 'string')])]'(<class 'list or
argument: Model 'AAZObjectArg' has no field named 'location' `Issue script & Debug output
Expected behavior
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: