Azure Client ID and Client Secret Configuration
Client ID and Client Secret will be needed to pass the argument. To create the Client ID and Client Secret, follow the steps below step –
Steps to Generate Client ID and Client Secret
Step 1. Register a new application
Navigate to the application registration portal (e.g., Azure Active Directory > App Registrations).
Register a new application by providing the required details such as Name, Redirect URI (if applicable), and supported account types.
Step 2. Obtain Client Id
After successful registration, the system generates a Client ID.
Copy and securely store this value, as it will be required when passing arguments
Step 3. Generate Client Secret Key
Under the Certificates & Secrets section, create a new Client Secret.
Copy and save the secret immediately, as it will not be fully visible after you leave the page.
Pass the Client ID and Client Secret as part of the required arguments in the format specified for the job execution – --crmUrl "https://CRM URL.crm8.dynamics.com/" --clientId "Add Client ID" --clientSecret " Add Client Secret" --duplicateDetectionJobId "Add Job id that you have copied earlier".
Final argument will something like this - --crmUrl "https://xxxxxx.crmx.dynamics.com/" --clientId "f8abcdefcda3-d8af-4511-9898-333185daabb22" --clientSecret "qQ28P~nYtzfQsCGsyoJyJVMk~fWGW0JB7BPOhawk" --duplicateDetectionJobId "c81afd37-0f2c-f011-8c4d-7ced8d27d1b1"
Click OK to save the scheduled task.
Add Application user into your environment –
Open Environment Settings: Navigate to the target environment in Dynamics 365 CRM and Click on Settings.
Access User Permissions: Expand User + Permissions from the settings menu.
Open Application Users: Click on Application User to view or manage application-level users.

Add Application User –

Select the application and provide the security role –

And click on Create.
Last updated
Was this helpful?