---
title: "Secure Azure Access for Nodinite Agents: App Registration, Roles, and Least Privilege"
description: Master secure, least-privilege access for Nodinite Logging and Monitoring Agents in Azure. Step-by-step guide for App Registration, role assignment, and best practices for seamless, compliant integration.
---

# <i class="fal fa-shield-halved" aria-hidden="true"></i> Secure & Controlled Access for Nodinite Logging and Monitoring Agents in Azure

Gain full control and peace of mind by configuring secure, least-privilege access for your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Logging and [Monitoring Agents][] in Azure, such as the [Azure Monitoring Agent][Azure Agent], the [Azure Logic Apps Logging and Monitoring Agent][LogicAppsAgent], and [Azure Service Bus monitoring][Monitoring Azure Service Bus]. This guide walks you through every step to:

✅ Register Azure App Registrations for secure API access  
✅ Assign only the required built-in roles for compliance and security  
✅ Enforce least privilege to minimize risk and meet audit requirements  
✅ Authenticate with Microsoft Entra ID over HTTPS (TLS)  

## Granting Access to Nodinite Logging and Monitoring Agents

The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Azure Logging and Monitoring Agents interact with the Azure REST APIs (Azure Resource Manager), executing queries and commands to monitor and log events efficiently. To enable this functionality, you must:

1. Register an Application in Azure – Set up App Registrations in the [Azure Management Portal](https://portal.azure.com)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>
2. Assign Required Roles – The necessary permissions for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Agents are listed in the [Least Privileges][AzureApplicationsAccessLP] reference page, and [Azure Role Deployment Automation][] scripts the assignments
3. Secure Authentication – The agent signs in to Microsoft Entra ID with the App Registration's ClientId and ClientSecret and calls Azure over HTTPS (TLS)

The Azure REST APIs provide programmatic access to most of the features available in the [Azure Management Portal](https://portal.azure.com)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>, allowing <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to seamlessly integrate with your Azure environment.  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> follows best practices for security, ensuring all API access is granted with least privileges by design.</p></div>
</aside>

## <i class="fal fa-network-wired" aria-hidden="true"></i> Understanding How an Agent Gets Access

<div class="mermaid">
flowchart LR
    subgraph AGENT["Nodinite Agent Server"]
        AG["fa:fa-microchip Azure agent<br/>TenantId, ClientId, ClientSecret"]
    end
    subgraph ENTRA["Microsoft Entra ID"]
        APP["fa:fa-id-card App Registration<br/>and service principal"]
    end
    subgraph AZ["Azure subscription"]
        RBAC["fa:fa-user-lock Role assignments<br/>subscription, resource group, or resource"]
        ARM["fa:fa-cloud Azure Resource Manager<br/>and data plane endpoints"]
    end
    GRAPH["fa:fa-diagram-project Microsoft Graph<br/>API permissions"]
    AG -->|"1. Request token, HTTPS 443"| APP
    APP -->|"2. Access token"| AG
    AG -->|"3. Call with token"| ARM
    RBAC -.->|"authorizes"| ARM
    AG -->|"App Registration monitoring only"| GRAPH
    style AG fill:#2678BD,color:#fff
    style APP fill:#9E59BB,color:#fff
    style RBAC fill:#E47528,color:#fff
    style ARM fill:#3F827B,color:#fff
    style GRAPH fill:#9E59BB,color:#fff
</div>

*Diagram: the agent (blue) requests a token from Microsoft Entra ID with the App Registration (purple), then calls Azure Resource Manager and the data plane endpoints (teal), where the role assignments (orange) decide what it may do. Only App Registration monitoring by the [Azure Monitoring Agent][Azure Agent] also needs Microsoft Graph API permissions. The roles per agent are in [Least Privileges][AzureApplicationsAccessLP]; the network hops are in each agent's Prerequisites page, for example the [Azure agent firewall settings][FW Azure Agent].*  

## Why This Matters for Your Business

✅ Full Control Over Access Rights – Ensure agents only have the permissions they need, reducing security risks.  
✅ Seamless Integration – Easily connect <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Log- and Monitoring Agents with Azure services.  
✅ Improved Compliance & Security – Enforce best practices for least privilege access, protecting your data and infrastructure.  
✅ Reduced Configuration Errors – With many <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Agents, it's easy to misconfigure access—this guide ensures a smooth setup.  
✅ Optimized Performance – Proper role assignments help avoid permission-related errors, keeping your [monitoring][] and [logging][] efficient.  

To configure the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Agents][] and [Monitoring Agents][], use this guide to find the following set of required properties:

1. **TenantId**
2. **SubscriptionId**
3. **ResourceGroup**
4. **ClientId** and **ClientSecret**

![Azure connection properties of a Nodinite agent: TenantId, SubscriptionId, ResourceGroup, ClientId, and ClientSecret][1]  
*Example of the connection properties an Azure agent needs; the sections below show where to find each value.*  

## 1. TenantId

The **TenantId** is the GUID uniquely identifying the Microsoft Entra ID (formerly Azure Active Directory) instance.

From the [Azure Portal](https://portal.azure.com/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>; Enter **tenant properties** and navigate to **Properties** for Microsoft Entra ID. The **TenantId** is available on the page.  
![Microsoft Entra ID Properties page showing the Tenant ID][16]  
*Example of the Microsoft Entra ID Properties page, where you copy the TenantId.*  

## 2. SubscriptionId

The Microsoft Azure subscription is the unique user account in Azure. All Azure Resources and services are available to the REST-based Service Management API.  

When you create an Azure subscription, it is uniquely identified by a **SubscriptionId**. The subscription Id is part of the call to the [Azure Service Management API][Azure REST API].  

* The *SubscriptionId* is a GUID.

To acquire the *SubscriptionId*, enter **Subscriptions** in the search, and navigate to the **Subscriptions** page. Copy and use the GUID value:  
![Azure Subscriptions page with the Subscription ID column][2]  
*Copy the SubscriptionId GUID to use.*  

## 3. Resource Group

For each <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Log- and Monitor Agent; You must specify the **Resource Groups** to Monitor and Manage. There are different ways to manage these lists from within <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> depending on the type of agent.

One way to get the value is to use the [Azure Portal](https://portal.azure.com/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>; You can view the available *Resource Groups*.  
![Azure Resource groups list with the resource group names][3]  
*Copy and use the **Name** of the Resource Group.*  

## 4. ClientId and ClientSecret

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Ensure you have at least one App Registration for each Subscription AND each <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Monitoring Agent for Azure. This allows additional requests per timeframe is then allowed. You can read more about <a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/request-limits-and-throttling">Azure Resource Manager throttling limits</a><sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>. If you have three <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Monitoring Agents, you should have at least three App Registrations.</p></div>
</aside>

To retrieve the 'ClientId' and the 'ClientSecret' an **Application** must first exist/be created.

The following steps are required to create a new Application (Client Id):

![Microsoft Entra ID App registrations with the New registration button][4A]  
*Example of where you start a new App Registration in Microsoft Entra ID.*  

1. Select **Microsoft Entra ID** (formerly Azure Active Directory)
2. From the Selected Active Directory instance, click on **App registrations**
3. Click the **New registration** button

![Register an application form with name, supported account types, and redirect URI][4B]  
*Example of the Register an application form.*  

* Enter the name of the **Application**
* Select **Accounts in this organizational directory only** - least privileges  
* Select the **Web** option
* Enter the URL to your user management website (can be changed later)  
    <aside aria-label="Note" class="nodinite-note nodinite-note--note">
    <p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
    <div class="nodinite-note__content"><p>The redirect URI can be any address like <code>https://yournonexistinguserportal.nowhere.org</code></p></div>
    </aside>

1. Click the **Register** button to begin the creation process

>This operation may take some time.

### Create Permissions

Click the newly created **Application** to start creating permissions.

* Click the **Add a Permission** button.
![API permissions page of the App Registration with the Add a permission button][5]  
*Example of the API permissions page where you add a permission.*  

### Request API Permissions

Next; select which API Permissions to assign for the **Application**. This may be different depending on which <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Monitoring Agent to use.

1. Click the **APIs my organization uses** tab
2. Click the **Windows Azure Service Management API**  
![Request API permissions dialog on the APIs my organization uses tab][6]  
*Example of selecting the Azure Service Management API.*  

### Type of Permissions

Another modal is now displayed, and you need to specify the type of permissions required by the Application:

1. Select **Delegated permissions**
2. Check the **user_impersonation** checkbox
3. Click the **Add permissions** button  
![Delegated permissions with the user_impersonation checkbox selected][7]  
*Steps to perform when specifying the type of permissions granted for Application.*  

### Consent

You can safely **skip** this step.  
![Grant admin consent button on the API permissions page][8]  
*Example of the consent step, which you can skip for this permission.*  

### Create Client Secret

1. Select the **Certificates & secrets**
2. Click the **New client secret** button
![Certificates and secrets page with the New client secret button][9]  
*Example of the Certificates & secrets page of the App Registration.*  

In the following dialogue, enter:  

1. A user-friendly name for the Client secret
2. Select when the secret expire
3. click the <i class="fal fa-square-plus" aria-hidden="true"></i> **Add** button

![Add a client secret dialog with description and expiry][10]  
*Example of the Add a client secret dialog.*  

Next, the Client secret presents (once - this time only)  
![New client secret value with the copy button][11]  
*The secret value is shown only once; copy it now.*  

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>REMEMBER TO COPY THE KEY and store it securely and accessible for your colleagues! Since it will only be displayed upon first save!</p></div>
</aside>

## Add permission to monitor and manage the Resource Group

You can fine-tune permission on individual levels.

* Subscription (highest level)
* Resource Group (recommended)
* Object (lowest level)  

>[Least Privileges][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>

Our recommendation is to assign as in the [Roles with least privileges][AzureApplicationsAccessLP] reference page.

To assign the role membership on the Resource Group level:

1. Search and navigate to the list of **Resource Groups**.
2. Select the **Resource Group** to add the permission to.
3. Select **Access Control (IAM)**.
4. click the <i class="fal fa-square-plus" aria-hidden="true"></i> **Add** button.
5. Select **Add role assignment**

![Access control (IAM) of a resource group with Add role assignment][12]  
*Example of adding a role assignment on the resource group.*  

1. Select the built-in **Contributor** Role **OR**, use the table in the [Roles with least privileges][AzureApplicationsAccessLP] reference page.
2. Select **User, group, or service principal**.
3. Select one or more members (Application Name from step 4 - ClientId and ClientSecret).
    >To find the named Application(s), you need to type some characters to active the filter.

![Add role assignment with the App Registration selected as member][13]  
*Example of assigning the role to the App Registration.*  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Remember to click on the <strong>Save</strong> button</p></div>
</aside>

![Save and Discard buttons of the role assignment][15]  
*Click the Save button to persist the role assignment.*

## <i class="fal fa-flag-checkered" aria-hidden="true"></i> List of permissions

When finished, you will now see all User (Application) permissions in the list for the Resource Group(s) and/or Subscriptions. The *User (Application)* will be listed as part of the *Contributor role*.  

![Role assignments of the resource group listing the App Registration][14]  
*Example of the App Registration listed with its role on the resource group.*  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>The full least-privilege role assignment reference has moved to its own page: <a href="https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-application-access-least-privileges/">Azure Application Access - Least Privileges</a>. Use that page to identify the exact roles required for each agent.</p></div>
</aside>

## <i class="fal fa-wallet" aria-hidden="true"></i> Lower Azure retention to reduce TCO

A common cost-optimization pattern is to keep Azure Event Hub retention short and let <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> become the long-term storage and analysis layer. The Azure Event Hub and storage account are mainly used as a short-lived processing buffer for the [Logic Apps agent][Logic Apps Event Hubs], while the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Databases][] store the retained business data and operational history.

This typically lowers total cost of ownership because:

* Azure Event Hub cost increases with retention and throughput
* blob checkpoint storage adds a small but real recurring cost
* long-term business value usually lives in Nodinite’s SQL/log databases, not in Azure diagnostics storage
* most customers only need a short replay window in Azure, such as 4–7 days

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>When the data has already been ingested into Nodinite, there is usually no need to keep the Azure Event Hub data for months or years. Shortening Azure retention is a valid and recommended optimization.</p></div>
</aside>

### How to reduce retention in the Azure portal

1. Open the [Azure portal](https://portal.azure.com)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>
2. Navigate to the Event Hub namespace that receives your Logic App diagnostics
3. Select the target Event Hub entity used by the diagnostic setting
4. Open **Settings** → **Retention** (or **Message retention**)
5. Set the value to a short replay window such as 4–7 days
6. Save the configuration

For Microsoft guidance, review:

* [Azure Event Hubs message retention overview](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features#event-retention)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>
* [Azure Event Hubs partitioning and throughput guidance](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-scalability#partitions)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>

If you are using Azure Diagnostics for Logic Apps, keep the Event Hub dedicated to the Logic App stream and avoid mixing unrelated telemetry. This makes retention tuning simpler and prevents unnecessary Azure storage cost.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-shield-halved" aria-hidden="true"></i> [Azure Application Access - Least Privileges][AzureApplicationsAccessLP] – Minimum role assignments per agent  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Azure Role Deployment Automation][] – Script the role assignments  
* [Azure Logic Apps Logging and Monitoring agent][LogicAppsAgent]  
* [Azure Monitoring Agent][Azure Agent]  
* [Azure Service Bus Monitoring][Monitoring Azure Service Bus]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-link" aria-hidden="true"></i> [AMQP Ports 5671 and 5672][AMQP] – Outbound ports to Event Hubs and Service Bus  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Pickup Service Event Hub configuration][Pickup EventHub]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Troubleshooting Overview][Troubleshooting]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/AzureCommonConnectionDetails.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/SubscriptionId.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/ResourceGroup.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/AddaPermissionButton.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/RequestAPIPermissions.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/TypeOfPermissions.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/Consent.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/CreateClientSecret.png
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/AddaClientSecretModal.png
[11]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/CopyClientSecret.png
[12]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/AddIAMForResourceGroup.png
[13]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/AddaRoleAssignment.png
[14]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/ListOfAppRegistrationSecurityLevels.png
[15]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/SaveOrDiscardButton.png
[16]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/TenantId.png

[4A]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/CreateApplication.png
[4B]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/Azure/RegisterAnApplication.png
[AMQP]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/amqp-port-configuration-5671-and-5672/
[Azure Agent]:https://docs.nodinite.com/logging-and-monitoring/azure/overview/
[Azure REST API]:https://learn.microsoft.com/en-us/rest/api/azure/
[Azure Role Deployment Automation]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-role-deployment-automation/
[AzureApplicationsAccessLP]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-application-access-least-privileges/
[FW Azure Agent]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/#fa-shield-check-what-firewall-settings-are-required-for-the-azure-agent
[Least Privileges]:https://en.wikipedia.org/wiki/Principle_of_least_privilege
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Logging]:https://docs.nodinite.com/logging/
[Logic Apps Event Hubs]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/getting-started/configuration-event-hubs/
[LogicAppsAgent]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/overview/
[Monitoring]:https://docs.nodinite.com/monitoring/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Azure Service Bus]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/features/azure-service-bus-queues/monitoring-azure-service-bus-queue/
[Pickup EventHub]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/features/configurations/eventhub/
[Troubleshooting]:https://docs.nodinite.com/install-and-update/troubleshooting/overview/