Azure App & IAM Setup for Domotz Integration

2 min

Overview

This guide outlines how to create an Azure App Registration and assign the appropriate IAM permissions so that Domotz custom drivers can authenticate and collect data from Azure services such as:

  • Virtual Machines
  • Virtual Machine Scale Sets
  • Storage Accounts
  • Metrics via Azure Monitor

Prerequisites

  • Access to the Azure Portal with appropriate privileges
  • Subscription Owner or User Access Administrator role
  • Domotz agent or environment ready to store ‘Tenant ID’, ‘Client ID’, and ‘Client Secret’
  • Optional: Familiarity with Azure AD App Registrations and IAM\

Step-by-Step Instructions

1. Create an App Registration

  1. Navigate to Microsoft Entra IDApp registrations
  2. Click “Add App Registration”
  3. Set the following:
    • Name: e.g. ‘domotz-automation’
    • Supported account type: ‘Accounts in this organizational directory only (Single tenant)’ (required)
    • Redirect URI: leave blank or use `https://localhost` (optional)
  4. Click Register.

Single-tenant is recommended for internal automation. Multi-tenancy is only needed for external SaaS apps.

2. Create a Client Secret

  1. Inside the App, navigate to Certificates & secrets
  2. Under “Client secrets” click New client secret
  3. Enter a description and set expiration
  4. Click Add
  5. Copy the Value immediately and store it securely — it will not be shown again.

Store your ‘Client Secret’ in a password manager or Domotz parameter securely.

3. Note Key Identifiers

  • Tenant ID: Found under Microsoft Entra ID → App Registrations → All Applications
  • Client ID: Found on the App Registration Overview page
  • Client Secret: Copied in the previous step

You’ll need these values in Domotz driver parameters.

4. Assign IAM Roles to the App

  1. Navigate to Subscriptions → Select your subscription
  2. Go to Access control (IAM)Add role assignment
  3. Select Reader role → Next
  4. Assign to → User, group, or service principal
  5. Find your registered App (e.g. ‘domotz-automation’) and assign the role.

The ‘Reader’ role provides read access to all resources, which is sufficient for most Domotz scripts.

  • Optional (if metrics are restricted): Add Monitoring Reader role the same way.

Share via Social Networks

You might also like…

Read more top posts in this category

Want more tips on Network Monitoring?

Ready to Get Started?

  • Uncover Network Blind Spots
  • Resolve Issues Faster and Easier
  • Exceed Service Delivery Expectations