# Configure InoWiz Prediction Builder

To configure the Predict4Dynamics follow steps below:

After successful deployment, open the Managed Application

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Flw7WMKdtjLCswHA8io6P%2Fimg17.png?alt=media&#x26;token=c67d4729-a23d-42f5-8667-22100f59f69b" alt=""><figcaption></figcaption></figure></div>

### **Open the Managed Resource Group**

* Inside the managed application, go to the Managed Resource Group. This resource group contains all the resources that were created by the managed application.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F8LwDWp0pOpXWwd2yiqwD%2Fimg18.png?alt=media&#x26;token=11ca1515-68bd-4f4f-8c19-cc6363246353" alt=""><figcaption></figcaption></figure></div>

On the managed resource group overview you can:

* View all created resources directly, or
* Click Resource Visualizer to get a visual map of the created resources.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FFsU1Br5TYAaA13ytC9dI%2Fimg19.png?alt=media&#x26;token=968a47c7-ec55-4b16-94c1-275e2f52bee5" alt=""><figcaption></figcaption></figure></div>

### Locate the Container App and Copy the Endpoint URL

&#x20;From the list of resources, open the Container App (example name: contoso-container-app).

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FNY8UVKbu2uuyoBq8D1JR%2Fimg20.png?alt=media&#x26;token=9534804a-2066-4e3e-a60c-14c85bc58b1b" alt=""><figcaption></figcaption></figure></div>

Inside the Container App, copy the **Application URL** — this is the **endpoint URL that** you will use on the Predict4Dynamics home page to connect the app to the container. **Save this URL** for later.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUI10WMA5J44FkR2R6rBu%2F2025-11-07%2001_03_42-MOCK-%20User%20Manual.docx%20-%20WPS%20Office.png?alt=media&#x26;token=0de551f9-57db-4d4e-a78a-9320039a0e7b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** The Container App URL contains the container app name you set during deployment; choose that name carefully earlier.
{% endhint %}

### **Container App: Cool-Down Period (Optional Adjustment)**

* (Optional) In the Container App settings, you can change the cool-down period. By default, it’s 900 seconds.
* The cool-down period is the idle timeout after which the container app becomes idle to save costs; a request sent after this idle period may require a few seconds for the app to spin up. Adjust this value based on usage and cost tradeoffs.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FKYfTDrOJiOlD9h6fmVcg%2Fimg22.png?alt=media&#x26;token=f825df94-e4da-458f-b6c3-737429a7f7b1" alt=""><figcaption></figcaption></figure></div>

### **Add Dataverse (D365) Credentials to Container App Secrets**&#x20;

* In the Container App navigate to Security → Secrets. You must add values for the following three secret keys:
* d365-client-id
* d365-client-secret
* d365-tenant-id

These values connect the container app to your Dataverse (Dynamics 365) environment.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fw7ofsXd9oJWKyUoVMPoa%2Fimg23.png?alt=media&#x26;token=6a4d3b5c-c317-4f9c-813c-fa66279067f7" alt=""><figcaption></figcaption></figure></div>

[Click here ](https://docs.inogic.com/predict4dynamics/configuration/configure-application-user)to configure Application User.

### **Fill Container App Secrets with the Three Keys**

Return to the **Container App → Security → Secrets**. For each secret key:

Click the secret (e.g., d365-client-id) → click the Edit icon.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FZ3v9y4LfBivQvQC6Nte5%2F30.png?alt=media&#x26;token=f716516e-dff6-44e2-bef8-417c89c394a7" alt=""><figcaption></figcaption></figure></div>

Paste the corresponding value (client ID/tenant ID/client secret) → check the confirmation box → Save. Repeat for d365-client-secret and d365-tenant-id.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FcU8nqJsnSSkrh2mpcUVq%2F31.png?alt=media&#x26;token=4ce0c2b5-c564-4364-a9b5-8a9fd75e531b" alt=""><figcaption></figcaption></figure></div>

### **Copy the Container App API Key**

In the Container App secrets list, copy the api-key value. This API key is the secured authentication key used by Predict4Dynamics to talk to the container app. Save this key

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUB0Qk9xxlvs735dArsnM%2F32.png?alt=media&#x26;token=4a422134-d496-4810-9e2f-f93b3d43fb2f" alt=""><figcaption></figcaption></figure></div>

### **Validate Endpoint & API Key in Predict4Dynamics App**

Open the Predict4Dynamics home page. Enter the **Endpoint URL** (container app URL) and the API Key you copied, then click Validate.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FhNOERKh61zk81FnEOGt2%2F33.png?alt=media&#x26;token=27b6ca54-9ec7-4f2d-b974-f5544982058a" alt=""><figcaption></figcaption></figure></div>

On successful validation you will receive a success notification on the form — then click Save to persist the connection.

{% hint style="info" %}
**Tip:** If validation fails, re-check that the container app URL is correct and that the API key copied matches exactly; also ensure the container app is running and not idled (cool-down) when testing.
{% endhint %}

### **Troubleshooting (Common Issues)**

* Insufficient subscription / missing permissions: Confirm the Azure subscription is active and you have permissions to create resources (Owner or Contributor role).
* Model/token selection errors: Check that the selected model and token are available in your Azure tenant; if not, choose a supported model/token or provision required resources.
* Managed Resource Group: Use the resource visualizer to confirm all resources were created correctly.
* Cool-Down Period: Default 900s — adjust if frequent cold starts are a problem.
* App Registration Secret Visibility: The client secret value is available only once at creation. Copy and securely store it immediately.
* Tenant Differences: The Azure AD tenant that hosts Dataverse may differ from the tenant where the container app is deployed — ensure you register the app in the correct tenant.
* Permission Scope: Ensure user\_impersonation permission for Dynamics CRM is added and admin consent granted; otherwise, API calls will fail.
* Validation Failures: If Predict4Dynamics validation fails during the endpoint/API key step, check the container app running state, the secrets accuracy, and that the container app endpoint is reachable from your network.

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}
