---
title: Prerequisites for Installing the Nodinite Dynamics 365 Monitoring Agent
description: Discover the essential prerequisites for monitoring Microsoft Dynamics 365 with Nodinite. Ensure a smooth installation and secure, high-performance monitoring.
---

:ReleaseNotes(https://portal.nodinite.com/marketplace/25):  

# :fa-square-plus: Prerequisites for the Nodinite Dynamics 365 Monitoring Agent  

>Get started with confidence! This page outlines everything you need to successfully install and run the :Nodinite: [Dynamics 365 Monitoring Agent][Dynamics 365] and monitor Dynamics 365 with :Nodinite:.  

<div class="mermaid">
graph LR
    subgraph "Nodinite Instance"
        roNI(fal:fa-monitor-waveform Dynamics 365 Monitoring agent)
    end
    subgraph "Dynamics 365"
        roAzureAPI(fal:fa-cloud Microsoft API)---roLA(fal:fa-clouds Your instance)
        roNI --> | SDK | roAzureAPI  
    end
</div>

*Architecture overview: The Nodinite agent connects securely to your Dynamics 365 instance via the Microsoft API.*  

For best performance and security, install the agent close to your :Nodinite: [Core Services][]. This guide covers a typical local network setup (usually on the :Nodinite: application server).  

|Verified|Topic|  
|:---:|---|  
|:fa-square:|:fa-box-check: [Software Requirements](#fa-box-check-software-requirements)|  
|:fa-square:|:fa-user-lock: [What Dynamics 365 instance Rights does the Dynamics 365 Monitoring agent require?](#fa-user-lock-what-dynamics-365-instance-rights-does-the-dynamics-365-monitoring-agent-require)|  
|:fa-square:|:fab fa-windows: [What Windows User Rights does the Dynamics 365 Monitoring agent require?](#what-windows-user-rights-does-the-dynamics-365-monitoring-agent-require)|  
|:fa-square:|:fa-shield-check: [What Firewall settings are required for the Dynamics 365 Monitoring agent?](#fa-shield-check-what-firewall-settings-are-required-for-the-dynamics-365-monitoring-agent)|  
|:fa-square:|:fa-database: [What SQL user rights does the Dynamics 365 Monitoring agent require?](#fa-database-what-sql-user-rights-does-the-dynamics-365-monitoring-agent-require)|  

## :fa-box-check: Software requirements  

The :Nodinite: [Dynamics 365 Monitoring Agent][Dynamics 365] is a Windows Service, typically installed on the :Nodinite: application server.  

|Product||  
|---|---|  
|:fab fa-windows: [Windows Server][]|Windows 2025</br>Windows 2022</br>Windows 2019</br>Windows 2016</br>Windows 2012 R2</br>Windows 2012|  
|:fa-file-prescription: .NET Framework|.NET Framework 4.8 or later :new6.0:</br>We recommend .NET Framework **4.8.1** or later|  

>Versions **6.0** and later require .NET Framework 4.8 or later.  
>Versions **5.4** and up require .NET Framework 4.6.2 or later.  
>Versions before **5.4** require .NET Framework 4.5.2 or later.  

### :fa-arrows-alt: Supported Versions  

Cloud technologies evolve quickly, and Microsoft deprecates older APIs and SDKs regularly. :Nodinite: always supports the APIs and SDKs currently supported by Microsoft. Update :Nodinite: and the [Dynamics 365 Monitoring Agent][Dynamics 365] as needed to stay current.  

>:fa-file-alt: Subscribe to our [Release Notes][Microsoft Dynamics 365 Release Notes] to stay informed.  

## :fa-user-lock: What Dynamics 365 instance Rights does the Dynamics 365 Monitoring agent require?  

See the [list of SDK/API calls](#fa-table-list-of-api-calls).  

To use the Audit feature, enable user audits in your Dynamics 365 instance.  

* Enable **Audit user** – [Audit data and user activity](https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn887214%28v=crm.8%29)<sup>:fa-arrow-up-right-from-square:</sup>  
![User Audit][1]  
*Make sure to enable the audit user option.*  

## :fab fa-windows: What Windows User Rights does the Dynamics 365 Monitoring agent require? {#what-windows-user-rights-does-the-dynamics-365-monitoring-agent-require}

Install the agent as a **Windows Service** (usually on the :Nodinite: application server; virtual machines are supported).  

* Use a local named account or domain account (preferred).  
* Ensure the account has access and run-time rights.  
  * Follow the '[How to set logon as a Windows service right][How to set Logon as a Service right]' user guide for details.  

## :fa-shield-check: What Firewall settings are required for the Dynamics 365 Monitoring agent?  

Where you install the :Nodinite: [Dynamics 365 Monitoring Agent][Dynamics 365] in relation to the :Nodinite: [Monitoring Service][], your Dynamics 365 instance, and the SQL Server that holds the [Monitoring Database][Agent Database] determines your firewall configuration. The diagram shows every host involved, with the agent on its own server; each arrow starts at the side that opens the connection.

<div class="mermaid">
graph LR
    subgraph "Nodinite Core Services Server"
        roMonitoringService(fa:fa-watch-fitness Monitoring Service)
    end
    subgraph "Nodinite Agent Server"
        roNI(fa:fa-monitor-waveform Dynamics 365 Monitoring agent)
    end
    subgraph "Target: Dynamics 365"
        roEntra(fa:fa-key Microsoft Entra ID)
        roD365(fa:fa-hand-holding-usd Dynamics 365 instance)
    end
    subgraph "SQL Server (Nodinite databases)"
        roDB(fa:fa-database Dynamics 365 Monitoring database)
    end
    subgraph "Domain Controller"
        roDC(fa:fa-building-shield Active Directory)
    end
    subgraph "DNS Server"
        roDNS(fa:fa-signs-post DNS)
    end
    roMonitoringService --> |"Agent site port (v7) / 8000 (v6)"| roNI
    roNI --> |"443"| roEntra
    roNI --> |"443"| roD365
    roNI --> |"1433, 135, 49152-65535"| roDB
    roNI --> |"88, 389, 636"| roDC
    roNI --> |"53"| roDNS
</div>

*Network diagram: the Monitoring Service calls the agent; the agent signs in with Microsoft Entra ID, calls the Dynamics 365 APIs over HTTPS, and stores its data in the Monitoring Database on SQL Server.*

>[!NOTE]
>When the agent runs on the Core Services Server (the typical installation), you need no firewall rule between the [Monitoring Service][] and the agent.

### Between the Monitoring Service and the Dynamics 365 Monitoring agent

The [Monitoring Service][] opens every connection; the agent never calls it. On Windows Server, :Nodinite: v7 hosts the agent as its own [IIS][] web site, on a port you set per environment in the :Nodinite: [Portal][NodinitePortal]<sup>:fa-arrow-up-right-from-square:</sup> ([Servers step][]).

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Inbound|Core Services Server|Agent Server|TCP (HTTPS/HTTP)|Agent site port|Poll the agent, send configuration, run [Remote Actions][]|v7. No fixed default; use the port set in the Portal. Only when the agent is on a **remote** server|  
|Inbound|Core Services Server|Agent Server|TCP|[8000][Port8000]|Same, for Windows Service agents|⚠️ v6 and earlier only (legacy MSI installer on remote servers)|  

### Between the Dynamics 365 Monitoring agent and Dynamics 365

The agent signs in as a System User and calls the Dynamics 365 APIs through the SDK. All traffic is outbound HTTPS; Dynamics 365 needs no inbound rule. Allow the hostnames for your region, as listed in [Power Platform URLs and IP address ranges](https://learn.microsoft.com/en-us/power-platform/admin/online-requirements)<sup>:fa-arrow-up-right-from-square:</sup>.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Target (Microsoft Entra ID, `login.microsoftonline.com`)|TCP (HTTPS)|443|Authenticate the System User|Always required|  
|Outbound|Agent Server|Target (Dynamics 365, `*.dynamics.com`)|TCP (HTTPS)|443|Dynamics 365 SDK API calls|Your organization URL, for example `contoso.crm.dynamics.com` (North America) or `contoso.crm4.dynamics.com` (EMEA)|  
|Inbound|Target (Dynamics 365)|Agent Server|TCP|443|Response traffic|Automatically allowed by stateful firewall inspection|  

>[!TIP]
>**Dynamics 365 Authentication**: The agent uses a System User account to access Dynamics 365 APIs. Ensure the account has required privileges (e.g., `prvReadLicense` for license information, System User for organization retrieval). See the [List of API Calls](#fa-table-list-of-api-calls) for details.

### Between the Dynamics 365 Monitoring agent and SQL Server

The agent stores monitoring data in the Dynamics 365 [Monitoring Database][Agent Database]. See the [SQL Server Connection Strings][SQL Connection Strings] guide for connection string formats and security settings.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|SQL Server (Nodinite databases)|TCP|1433|SQL Server default instance|Named instances use a dynamic or static port instead|  
|Outbound|Agent Server|SQL Server (Nodinite databases)|UDP|1434|SQL Server Browser|Only for named instances without a fixed port in the connection string|  
|Outbound|Agent Server|SQL Server (Nodinite databases)|TCP|49152-65535|SQL Server dynamic ports, RPC|High ports for named instances and [MSDTC][]; see [How to configure RPC dynamic port allocation to work with firewalls](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-rpc-dynamic-port-allocation-with-firewalls)<sup>:fa-arrow-up-right-from-square:</sup>|  
|Outbound|Agent Server|SQL Server (Nodinite databases)|TCP/UDP|135|RPC Endpoint Mapper / MSDTC|Distributed Transaction Coordinator|  
|Inbound|SQL Server (Nodinite databases)|Agent Server|TCP|1433, 49152-65535, 135|Response traffic|Automatically allowed by stateful firewall inspection|  

>[!TIP]
>If the agent and SQL Server are on the same machine, you need no firewall rule for SQL traffic (loopback).

### Between the Dynamics 365 Monitoring agent and the Domain Controller

Required when the agent's service account uses Windows authentication to SQL Server.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Domain Controller|TCP/UDP|88|Kerberos authentication|Required for domain authentication|  
|Outbound|Agent Server|Domain Controller|TCP/UDP|389|LDAP|Standard LDAP queries|  
|Outbound|Agent Server|Domain Controller|TCP|636|LDAPS (Secure LDAP)|Required for LDAPS authentication or querying certificates from AD|  

### Between the servers and DNS

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the Dynamics 365 and Entra ID hostnames, the SQL Server, the Domain Controller, and the Core Services Server. A local `hosts` file can replace DNS|  
|Outbound|Core Services Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the Agent Server|  

>[!IMPORTANT]
>**Stateful Firewalls**: Most Windows Firewall implementations are stateful, so response traffic for established outbound connections is allowed automatically. The inbound response rules above are for reference and troubleshooting.

___

## :fa-database: What SQL user rights does the Dynamics 365 Monitoring agent require?  

The service account running the [Dynamics 365 Monitoring Agent][Dynamics 365] must have the following rights:  

### Nodinite Dynamics 365 Monitoring database  

To improve performance, all operations initiated from the [Web Client][]/[Web API][] use a SQL-based [Monitoring Database][Agent Database].  

* db_owner (required to apply DACPAC updates)  

___

## :fa-table: List of API Calls  

<table class="table table-striped table-bordered">
<thead>
<tr>
<th>API Call</th>
<th>Privilege</th>
<th>Purpose</th>
</tr>
</thead>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg327570%28v=crm.8%29">RetrieveOrganizationsRequest</a></td>
<td>System User account</td>
<td>Registered users and logon history</td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt593041%28v=crm.8%29">RetrieveVersionRequest</a></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg308165%28v=crm.8%29">RetrieveDeploymentLicenseTypeRequest</a></td>
<td>prvReadLicense</td>
<td></td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2015/crm.7/hh370970%28v=crm.7%29">DeviceRegistrationRequest</a></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg308190%28v=crm.8%29">RetrieveLicenseInfoRequest</a></td>
<td>prvReadLicense</td>
<td></td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328300%28v=crm.8%29">QueryExpression - Audit.EntityLogicalName, Columns: objectid, createdon, operation, action, userid</a></td>
<td></td>
<td>Audit</td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328300%28v=crm.8%29">QueryExpression - Workflow.EntityLogicalName, Columns: createdon, name, description, statecode, category, workflowid, activeworkflowid</a></td>
<td></td>
<td>Workflow</td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328300%28v=crm.8%29">QueryExpression - Solution.EntityLogicalName, Columns: solutionid, uniquename</a></td>
<td></td>
<td>Solution</td>
</tr>
<tr>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328300%28v=crm.8%29">QueryExpression - SdkMessageProcessingStep.EntityLogicalName, Columns: createdon, name, description, statecode, introducedversion, mode</a></td>
<td></td>
<td>Processing step</td>
</tr>
</table>

___

## :fa-question: Frequently asked questions  

Find more solutions and answers to common problems for the :Nodinite: [Dynamics 365 Monitoring Agent][Dynamics 365] in the [Troubleshooting][] user guide.  

## :fa-hand-point-right: Next Steps

:fa-rocket: [Install Dynamics 365 Monitoring Agent][]  

## :fa-link-horizontal: Related Topics

:fa-monitor-waveform: [Add or manage a Monitoring Agent Configuration][]  
:fa-display: [Monitoring][]  
:fa-gears: [Administration][]  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/DynamicsCRMOnline/Prereq/EnableUserAudit.png

[Add or manage a Monitoring Agent Configuration]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/Add%20or%20manage%20Monitor%20Agent.md
[Administration]:{ndr}/Administration/Overview.md
[Agent Database]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Agent%20Database.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Dynamics 365]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Overview.md
[How to set Logon as a Service right]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[IIS]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/IIS.md
[Install Dynamics 365 Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Getting%20started/2.%20Install.md
[Microsoft Dynamics 365 Release Notes]:https://portal.nodinite.com/marketplace/25
[Monitoring]:nodiniteDoc:/Monitoring
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[MSDTC]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Transactions%20MSDTC.md
[NodinitePortal]:https://portal.nodinite.com
[Port8000]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Why%20do%20Nodinite%20use%20port%208000.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Servers step]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[SQL Connection Strings]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Connection%20Strings.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Troubleshooting/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Server]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Windows%20Server.md