# 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**

Ste**p 1.** [**Register a new application**](https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application#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**](https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application#application-id-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

&#x20;**Step 3. Generate Client** [**Secret Key**](https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application#certificates--secrets)

* 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/["](https://ddddev.crm.dynamics.com/%22) --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/>["](https://ddddev.crm.dynamics.com/%22) --clientId "f8abcdefcda3-d8af-4511-9898-333185daabb22" --clientSecret "qQ28P\~nYtzfQsCGsyoJyJVMk\~fWGW0JB7BPOhawk" --duplicateDetectionJobId "c81afd37-0f2c-f011-8c4d-7ced8d27d1b1"&#x20;
* Click OK to save the scheduled task.

### **Add Application user into your environment –**

* Open <https://admin.powerplatform.microsoft.com/environments.com>
* 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.

<figure><img src="/files/TesdNoogd0JC9QSnd9nR" alt=""><figcaption></figcaption></figure>

Add Application User –

<figure><img src="/files/01HVNKjCCj2vsgwAv5Xk" alt=""><figcaption></figcaption></figure>

Select the application and provide the security role –

<figure><img src="/files/9wdHdEVTUX54VVrsBkm1" alt=""><figcaption></figcaption></figure>

And click on Create.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inogic.com/deduped/configuration/deduped-scheduled-job/azure-client-id-and-client-secret-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
