Azure Requirements

Getting DMC connected to Azure requires three things: a Service Principal for authentication, an RBAC role assignment that controls what DMC can access, and, if you want software inventory, network dependencies, or SQL detection, guest VM access. Work through each section in order. The Service Principal is shared across all Azure scan types.

Create a Service Principal

DMC authenticates to Azure using a Service Principal (an App Registration in Microsoft Entra ID). You will enter these four values into DMC when configuring an Azure scan:

CredentialWhere to find itFormat
Tenant IDApp Registration Overview page: Directory (tenant) IDUUID
Client IDApp Registration Overview page: Application (client) IDUUID
Client SecretCertificates & secrets, created in step 4 belowString
Subscription IDSubscriptions: Overview pageUUID

Open App registrations

Sign in to the Azure Portal ↗. Navigate to Microsoft Entra ID > App registrations > New registration.

Register the application

Enter a name (for example, DMC-Scanner). Under Supported account types, select Accounts in this organizational directory only. Leave Redirect URI blank. Click Register.

Copy your Tenant ID and Client ID

On the app registration Overview page, copy both values:

  • Application (client) ID: this is the Client ID you enter into DMC
  • Directory (tenant) ID: this is the Tenant ID you enter into DMC

Create a client secret

Navigate to Certificates & secrets > New client secret. Enter a description (for example, DMC Scan Key) and set an expiry that covers your scan duration. Click Add.

Copy the secret Value immediately after creation. Azure only displays it once. If you navigate away first, you will need to delete the secret and create a new one.

Copy your Subscription ID

Navigate to Subscriptions, select the subscription you want to scan, and copy the Subscription ID from the Overview page.

RBAC role

Assign the Service Principal the built-in Reader role at the subscription or resource group level. Reader gives DMC everything it needs: VM discovery, Azure Monitor performance metrics, network interface configuration, and Resource Inventory.

RoleScopeEnables
ReaderSubscription or Resource Group(s)VM discovery, Azure Monitor metrics, network interfaces, Resource Inventory

To assign in the Azure Portal: navigate to the target Subscription (or Resource Group) > Access control (IAM) > Add role assignment. Select Reader and assign it to your App Registration.

Guest-level data (software inventory, network dependencies, SQL detection) is collected over WinRM or SSH and needs no additional RBAC role. See Set up guest VM access below.

How DMC collects guest data: Before scanning, DMC checks WinRM or SSH connectivity to each VM. Where a method is reachable and credentials are supplied, DMC collects guest-level data; otherwise it collects Azure Monitor metrics and VM configuration only and marks the scan as partial.

Network requirements

The DMC host needs outbound HTTPS access to Azure APIs. Direct connectivity to VMs is required when using WinRM or SSH.

SourceDestinationPortRequired for
DMC hostmanagement.azure.com, login.microsoftonline.com443All scan types: ARM API and authentication
DMC host<region>.metrics.monitor.azure.com443All scan types: Azure Monitor metrics
DMC hostVM private IPs5986 / 5985WinRM guest access only
DMC hostVM private IPs22SSH guest access only

Set up guest VM access

Guest VM access lets DMC collect software inventory, network dependencies, and SQL Server instances from inside each VM. Configure WinRM on Windows VMs or SSH on Linux VMs.

If no guest access method is available, DMC collects Azure Monitor metrics and VM configuration only and marks the scan as partial.

Windows WinRM

DMC connects to Windows VMs via WinRM/PSRP on port 5986 (HTTPS), falling back to 5985 (HTTP). This requires direct network connectivity from the DMC host to each VM and per-VM configuration.

Credential and group requirements

Account or groupMinimum requiredPurpose
Domain Admin or Local AdminInteractive login rightsRequired to collect system settings, software inventory, active processes, and network dependencies
Remote Management UsersGroup membershipEnables WinRM connections for remote data collection
Performance Monitor UsersGroup membershipAllows performance data collection via WMI
Performance Log UsersGroup membershipEnables performance logging access via WMI

Being a Local Admin or Domain Admin does not automatically include membership in Remote Management Users, Performance Monitor Users, or Performance Log Users. Verify group membership before running DMC. Usernames can be entered as user/domain or user@domain.com. Both formats are supported.

Enable PowerShell Remoting

Run the following commands as Administrator on each target Windows VM:

Enable PSRemoting

Enable-PSRemoting -force

Enable AllowRemoteShellAccess

Set-WSManInstance -ResourceURI winrm/config/winrs -ValueSet @{AllowRemoteShellAccess="true"}

Disable PowerShell Constrained Language Mode

DMC does not support Constrained Language Mode. Check and disable it if enabled:

Check current mode

$ExecutionContext.SessionState.LanguageMode

If the output is FullLanguage, no change is needed. If it shows ConstrainedLanguage, proceed to the next step.

Disable Constrained Language Mode

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

Fix UAC token filtering

Even with the correct group memberships, UAC token filtering can silently block DMC from collecting data. Check and disable it if active:

Check the current setting

reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy

A value of 0 (or a missing key) means filtering is active. Proceed to the next step.

Disable UAC token filtering

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

For more detail, see Remediating access issues.

Least-privilege account setup

If you prefer not to use a full admin account, the following group memberships are the minimum required:

GroupPurposeAlternative
Remote Management UsersEnables WinRM connectionsWinRMRemoteWMIUsers_
Performance Monitor UsersAllows performance data collection via WMIRequired: no alternative
Performance Log UsersEnables performance logging via WMIRequired: no alternative

For Windows Server 2008 and 2008 R2, ensure WMF 3.0 (Windows Management Framework) is installed before running DMC.

Linux SSH

DMC connects to Linux VMs via SSH on port 22. This requires direct network connectivity from the DMC host to each VM and a user account with the right permissions.

Authentication

MethodFields required
PasswordUsername and password
SSH keyUsername, private key file (RSA, Ed25519, or ECDSA), and optional passphrase

Only OpenSSH format private keys are supported. PuTTY .ppk format keys must be converted to OpenSSH format first. See Creating SSH keys for use with DMC.

Passwordless sudo requirements

The scan account needs passwordless sudo access to the following commands on each target VM:

CommandPurposeFull path
netstat or ssNetwork connection analysis/usr/bin/netstat, /usr/bin/ss
psProcess information/usr/bin/ps
lsFile system listing/usr/bin/ls

Add an entry like the following to /etc/sudoers on each target VM (replace username with your scan account):

username ALL=(ALL) NOPASSWD: /usr/bin/netstat, /usr/bin/ss, /usr/bin/ps, /usr/bin/ls

NOPASSWD is required. DMC runs commands non-interactively over SSH. Also add Defaults:username !requiretty to the sudoers file to allow remote command execution without a TTY session.

On Red Hat and some other distributions, commands may be in different paths than the defaults above. Find the correct path with command -v netstat (or the command name) and use that path in the sudoers file. Verify your configuration works without a TTY: ssh username@host sudo id

Supported guest operating systems

Azure Monitor metrics and VM configuration are collected for all VMs regardless of guest OS. Guest-level data (software inventory, network dependencies, SQL detection) requires one of the following supported operating systems:

Operating systemGuest-level support
Windows Server 2008 R2 and aboveFull: metrics, software inventory, network dependencies, SQL detection
Ubuntu 16.04 LTS and aboveFull
Red Hat Enterprise Linux 7 and aboveFull
CentOS 7 and aboveFull
SUSE Linux Enterprise Server 12 and aboveFull

Run the scan

© 2025 Altra Technologies