Skip to content
Documentation
Updated 13 minutes to read
Markdown

Azure Least Privilege Role Assignments for Nodinite Agents

Section titled “ Azure Least Privilege Role Assignments for Nodinite Agents”

This page is the canonical permission reference for all Nodinite Azure agents. Use it to assign only the roles each agent actually needs — no more, no less.

The role assignments on this page apply to:

The Nodinite Pickup Log Events Service Logging Agent does not use the Azure REST API. It connects to Event Hubs and Storage either with connection strings from Shared access policies or with an App Registration that has the data plane roles in the table below; see Pickup Service Event Hub configuration.

Understanding the Three Permission Systems

Section titled “ Understanding the Three Permission Systems”

An Azure agent can need permissions from three separate systems, and each one is granted in a different place in the Azure portal:

flowchart LR APP["fa:fa-id-card App Registration
service principal"] subgraph IAM["Access control (IAM) on subscription, resource group, or resource"] CP["fa:fa-sliders Control plane roles
Reader, Contributor, custom role actions"] DP["fa:fa-database Data plane roles
Storage, Event Hubs, Service Bus data roles"] end subgraph APIP["App Registration - API permissions"] GR["fa:fa-diagram-project Microsoft Graph
and Application Insights API"] end APP --> CP APP --> DP APP --> GR CP -->|"manage and read resources"| ARM["fa:fa-cloud Azure Resource Manager"] DP -->|"read and write data"| DATA["fa:fa-box-archive Blobs, queues, events, messages"] GR -->|"admin consent"| META["fa:fa-users App Registrations, owners, telemetry"] style APP fill:#9E59BB,color:#fff style CP fill:#2678BD,color:#fff style DP fill:#E47528,color:#fff style GR fill:#3F827B,color:#fff

Diagram: the App Registration (purple) gets control plane roles (blue) and data plane roles (orange) through Access control (IAM), and Microsoft Graph or Application Insights API permissions (teal) in its API permissions with admin consent. A custom role covers only the control plane; see Azure Role Deployment Automation for scripts that assign the data plane roles too. How to create the App Registration: Azure Application Access.

  • Application Insights/Functions Monitoring — the delegated Application Insights API Data.Read permission.
  • App Registrations
  • App Services (Function App and Web App)
  • Event Hub (Post data)
  • Function App

Clone a role

Keep in mind that updating Azure role assignments may take up to five minutes to propagate. Then, you need to restart the necessary Nodinite agents.

Resource Role Agent Purpose
Subscription Reader Show Details and Match/Validate the Subscription Id with the current configuration.
NOTE: This right inherits to all other Resources in selected Subscription.
API Management Service API Management Service Contributor List resources, Create and delete EventHub Logger, Invoke APIs
App Registrations Microsoft.Graph - Application.Read.All List App Registration, SSO assignments, Branding info and evaluate Secrets
NOTE: The type must be Application, NOT delegated
App Registrations - Owners (Details page) Microsoft.Graph - User.Read.All List details about Owners
NOTE: The type must be Application, NOT delegated
App Registrations - Grant status (API Permissions) Microsoft.Graph - DelegatedPermissionGrant.Read.All Read the permission-grant status for the selected App Registration.
NOTE: This is a delegated Graph permission; unlike Application.Read.All and User.Read.All, it is added under Delegated permissions, not Application permissions.
App Services (Function App and Web App) Website Contributor List Web Sites
Get Web Site
List Web Jobs
Get Web Job

Web Jobs (the following features require the 'SCM Basic Auth Publishing Credentials' setting to be set to On)
  • Fetch publishing profile
  • View Web Jobs History
  • Run Triggered Web Job
  • Start/Stop Continous Web Job
Application Insights
  • Reader (read the Component configuration)
  • Application Insights API - Data.Read (NOTE: Delegated permission)
View all resources, but does not allow you to make any changes.
Execute Kusto queries and allow the Functions Monitoring. No Application Insights API Key is needed
Data Factory Data Factory Contributor List Data Factories and pipelines, Read Details, Read performance
Event Grid EventGrid EventSubscription Reader Lets you read Event Grid event subscriptions.
Event Hubs Azure Event Hubs Data Sender Send DATA to the Event Hub entity and checkpoint event processing state to blob storage
Event Hubs Azure Event Hubs Data Receiver Receive DATA from the Event Hub entity
Function App
  • 1. Website Contributor
  • 2. Reader
  • 1. List resources
  • 2. View all resources, but does not allow you to make any changes
    Read configuration to explore Application Insights
Resource Group Reader Show Details and Match/Validate the Resource Group with the current configuration.
NOTE: This right inherits to all other Resources in selected Resource Group.
Service Bus Namespace Azure Service Bus Data Owner List namespaces and Resources, Read and use Access Keys, Manage Queues and Topics
Key Vaults Key Vault Reader List Key vaults and reads meta data (does not read the actual secrets!)
NOTE: Azure role-based access control (recommended) must be set in the 'Settings |Access configuration'.
Azure Cosmos DB account DocumentDB Account Contributor Read account metadata, discover databases and containers, and manage account-level settings such as throughput changes and key regeneration for the monitored Cosmos DB estate.
Logic App Logic App Operator Enable/Disable Logic App. This role is NOT allowed to Resubmit runs
Logic Apps Logic App Contributor Allow to Resubmit runs. If you assign membership with this role; The Client does not need to be a member of the Logic App Operator role
Storage Account Reader and Data Access
NOTE:If you add this role, you do not need all the other specific role assignments
Lets you view everything but will not let you delete or create a storage account or contained resource. It will also allow read/write access to all data contained in a storage account via access to storage account keys.
Storage Account - Blob (Read) Storage Blob Data Reader Read and list Azure Storage containers and blobs
Storage Account - Blob (Read/Write/Delete) Storage Blob Data Contributor Read, write, and delete Azure Storage containers and blobs. Pickup Service uses this for Event Hub checkpoint storage.
Storage Account - File (Read/Write) Storage File Data SMB Share Reader Allows for read access on files/directories in Azure file shares.
Storage Account - File (Delete) Storage File Data SMB Share Contributor Allows for read, write, and delete access on files/directories in Azure file shares.
Storage Account - Queue (Read) Storage Queue Data Reader Read and list Azure Storage queues and queue messages.
Storage Account - Queue (Send/Post) Storage Queue Data Message Sender Add messages to an Azure Storage queue.
Storage Account - Queue (Delete) Storage Queue Data Contributor Read, write, and delete Azure Storage queues and queue messages.

Creating a Custom Azure Role (Quick Reference)

Section titled “Creating a Custom Azure Role (Quick Reference)”

If you're creating a custom Azure role (e.g., "Nodinite Monitoring") instead of using built-in roles, you'll need to add specific Actions to your custom role definition. This approach follows the principle of least privilege by granting only the exact permissions required.

These permissions must be configured in API Permissions (not IAM/RBAC). In the Azure portal, the App Registration permissions section is separate from Azure RBAC role assignments.

The permissions commonly used for App Registration monitoring are:

  • Application.Read.All - List App Registrations, SSO assignments, branding info, and evaluate secrets
  • User.Read.All - Read details about App Registration owners

There is also a separate Microsoft Graph permission that can trigger the runtime warning in the agent:

  • DelegatedPermissionGrant.Read.All - Read the permission-grant status for the selected App Registration. This is a delegated Graph permission, unlike Application.Read.All and User.Read.All, which are application permissions. It is not an Azure RBAC role and is not the same as the Azure role assignment on the target subscription or resource group.

When creating your custom role in Azure RBAC, add these Actions. You can scope them at Subscription, Resource Group, or individual resource level:

Subscription and Resource Group (Base Permissions)

Section titled “Subscription and Resource Group (Base Permissions)”
*/read

API Management (equivalent to "API Management Service Contributor")

Section titled “API Management (equivalent to "API Management Service Contributor")”
Microsoft.ApiManagement/service/*
Microsoft.ApiManagement/service/write
Microsoft.ApiManagement/service/delete

App Services and Function Apps (subset of "Website Contributor")

Section titled “App Services and Function Apps (subset of "Website Contributor")”
Microsoft.Web/sites/read
Microsoft.Web/sites/write
Microsoft.Web/sites/config/list/action
Microsoft.Web/sites/config/read
Microsoft.Web/sites/config/write
Microsoft.Web/sites/webjobs/read
Microsoft.Web/sites/publishingcredentials/read
Microsoft.Web/sites/publishxml/action
Microsoft.Insights/components/read
Microsoft.Insights/components/api/read
Microsoft.Insights/components/query/read

Note: For Application Insights queries, you also need the delegated permission Data.Read configured in API Permissions.

Data Factory (subset of "Data Factory Contributor")

Section titled “Data Factory (subset of "Data Factory Contributor")”
Microsoft.DataFactory/factories/read
Microsoft.DataFactory/factories/write
Microsoft.DataFactory/factories/pipelineruns/read
Microsoft.DataFactory/factories/pipelines/read
Microsoft.DataFactory/factories/pipelines/write

Azure Cosmos DB (subset of "DocumentDB Account Contributor")

Section titled “Azure Cosmos DB (subset of "DocumentDB Account Contributor")”
Microsoft.DocumentDB/databaseAccounts/read
Microsoft.DocumentDB/databaseAccounts/sqlDatabases/read
Microsoft.DocumentDB/databaseAccounts/containers/read
Microsoft.DocumentDB/databaseAccounts/listKeys/action
Microsoft.DocumentDB/databaseAccounts/regenerateKey/action
Microsoft.DocumentDB/databaseAccounts/throughputSettings/read
Microsoft.DocumentDB/databaseAccounts/throughputSettings/write
Microsoft.EventGrid/eventSubscriptions/read
Microsoft.EventHub/namespaces/eventhubs/read
Microsoft.EventHub/namespaces/eventhubs/consumergroups/read
Microsoft.EventHub/namespaces/eventhubs/send/action
Microsoft.EventHub/namespaces/eventhubs/listen/action
Microsoft.KeyVault/vaults/read
Microsoft.KeyVault/vaults/secrets/read

Note: Also ensure "Azure role-based access control" is enabled in Key Vault's Access configuration.

Microsoft.Logic/workflows/read
Microsoft.Logic/workflows/runs/read
Microsoft.Logic/workflows/runs/actions/read
Microsoft.Logic/workflows/triggers/read
Microsoft.Logic/workflows/enable/action
Microsoft.Logic/workflows/disable/action
Microsoft.Logic/workflows/runs/action

Note: Microsoft.Logic/workflows/runs/action is required for resubmitting runs.

Microsoft.ServiceBus/namespaces/read
Microsoft.ServiceBus/namespaces/queues/read
Microsoft.ServiceBus/namespaces/topics/read
Microsoft.ServiceBus/namespaces/authorizationRules/listkeys/action
Microsoft.ServiceBus/namespaces/queues/authorizationRules/listkeys/action
Microsoft.Storage/storageAccounts/read
Microsoft.Storage/storageAccounts/listkeys/action
Microsoft.Storage/storageAccounts/blobServices/read
Microsoft.Storage/storageAccounts/blobServices/containers/read
Microsoft.Storage/storageAccounts/blobServices/containers/write
Microsoft.Storage/storageAccounts/blobServices/containers/delete
Microsoft.Storage/storageAccounts/fileServices/read
Microsoft.Storage/storageAccounts/fileServices/fileshares/read
Microsoft.Storage/storageAccounts/fileServices/fileshares/write
Microsoft.Storage/storageAccounts/queueServices/read
Microsoft.Storage/storageAccounts/queueServices/queues/read
Microsoft.Storage/storageAccounts/queueServices/queues/write
Microsoft.Storage/storageAccounts/queueServices/queues/messages/delete
Microsoft.Storage/storageAccounts/queueServices/queues/messages/add/action

Note: For data operations (reading/writing blobs, files, queue messages), you need data plane roles assigned separately (see section below).

Azure uses two separate permission systems for resources:

  1. Control Plane (RBAC Actions) - Listed above, for managing Azure resources (create, configure, delete)
  2. Data Plane (Data Actions) - Listed below, for accessing data within resources

The custom role created above handles control plane permissions. You must separately assign these data plane roles to access actual data:

Assign these separately via IAM:

  • Storage Blob Data Contributor - For blob read/write/delete operations

    • Provides: Read, write, and delete blobs and containers
    • Used by: Azure Monitoring Agent, Logic Apps Agent, Pickup Service
  • Storage Queue Data Reader - For queue read operations

    • Provides: Read and peek queue messages
    • Used by: Azure Monitoring Agent
  • Storage Queue Data Contributor - For queue read/write/delete operations

    • Provides: Read, write, and delete queue messages
    • Used by: Azure Monitoring Agent (if managing queues)
  • Storage File Data SMB Share Reader - For file share read operations

    • Provides: Read files in Azure file shares
    • Used by: Azure Monitoring Agent
  • Storage File Data SMB Share Contributor - For file share read/write/delete operations

    • Provides: Read, write, and delete files in Azure file shares
    • Used by: Azure Monitoring Agent

Assign these separately via IAM:

  • Azure Event Hubs Data Sender - Send messages to Event Hubs

    • Used by: Azure Monitoring Agent, Pickup Service
  • Azure Event Hubs Data Receiver - Receive messages from Event Hubs

    • Used by: Logic Apps Agent, Pickup Service

Assign these separately via IAM:

  • Azure Service Bus Data Owner - Full access to Service Bus queues and topics
    • Provides: Send, receive, and manage messages
    • Used by: Azure Service Bus Monitoring

Example: Creating Custom Role via Azure Portal

Section titled “Example: Creating Custom Role via Azure Portal”
  1. Navigate to your Subscription or Resource Group
  2. Select Access Control (IAM) → Roles → Add custom role
  3. Enter role name (e.g., "Nodinite Monitoring")
  4. Select Start from scratch or Clone a role
  5. On the Permissions tab, click Add permissions
  6. Search for and add the Actions listed above
  7. Set Assignable scopes (Subscription or Resource Group)
  8. Review and create the role
  9. Assign the role to your App Registration(s)

For more details, see Azure custom roles documentation.

For faster and more consistent deployment, use our complete automation solution that deploys both the custom role AND data plane permissions:

Complete Azure Role Deployment Automation

Includes ARM template for custom role creation plus PowerShell/CLI scripts to automate data plane role assignments.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...