Create a data collection rule in Change tracking and inventory

Emmanuelle CHARVOLIN 10 Reputation points
2023-07-24T13:31:21.5233333+00:00

Hello

this article should resolve one of my problem (compatibility between AMA agent + change tracking) for Azure Arc for server.

https://learn.microsoft.com/en-us/azure/automation/change-tracking/enable-vms-monitoring-agent?tabs=singlevm%2Carcvm#enable-change-tracking-at-scale-using-azure-monitoring-agent

in prerequisite I need to creat a Data collection rule

https://learn.microsoft.com/en-us/azure/automation/change-tracking/enable-vms-monitoring-agent?tabs=singlevm%2Carcvm#create-data-collection-rule

and I followed this article : https://learn.microsoft.com/en-us/azure/automation/change-tracking/change-tracking-data-collection-rule-creation

Unfortunatly, the json script seems to be erroned...

I've got this error :

{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template variable 'subscriptionId' is not valid: Unable to evaluate the template language function 'substring'. The length parameter cannot be less than zero. The length parameter: '-16'. Please see https://aka.ms/arm-function-substring for usage details.. Please see https://aka.ms/arm-functions for usage details.'."}

can you help me to resolve this error?

Thank you.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
417 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emmanuelle CHARVOLIN 10 Reputation points
    2023-07-24T14:13:20.41+00:00

    One of my colleague help me to understantd

    in workspace resource ID field put Resource ID like : /subscriptions/idxxx/resourcegroups/rgname/providers/microsoft.operationalinsights/workspaces/lawname

    and no Workspace ID

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.