Data Collection Rule Resource Id should be dcrResourceId according to the initiative definition "Enable Azure Monitor for VMSS with Azure Monitoring Agent(AMA)".
Also, removing quotation marks for the boolean values of "Bring Your Own User-Assigned Managed Identity" as allowed values are false; true and not "false"; "true".
Yes - you are right - I swear the other day when I was looking at this there was a parameter called dataCollectionResourceId - I must have been looking at the wrong initiative.
Data Collection Rule Resource Id should be dcrResourceId according to the initiative definition "Enable Azure Monitor for VMSS with Azure Monitoring Agent(AMA)".
Also, removing quotation marks for the boolean values of "Bring Your Own User-Assigned Managed Identity" as allowed values are false; true and not "false"; "true".