I am using "az monitor data-collection rule create" and "az monitor data-collection rule syslog add" cli commands to collect syslogs data for linux VMs. It gives error as below:-
WARNING: Command group 'monitor data-collection' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
ERROR: BadRequestError: (InvalidPayload) Data collection rule is invalid
Please note I have created a log analytics workspace and connected the VMs.
Requesting your help on this.