Skip to content

Microsoft Azure

Azure lives on the Cloud tests page. Clicking Set up on the Azure card under Integrations takes you there. One connection covers one Azure tenant, and you can add more than one connection.

Varman does two things with the connection.

Cloud tests scan. Reads Microsoft Defender for Cloud alerts and security assessments, plus the services you turn on for the connection: Microsoft Entra ID, Azure Policy, Key Vault, Azure Monitor, Network Watcher, Storage Accounts, SQL Database, Database for MySQL, Database for PostgreSQL, Virtual Machines, App Service, AKS, Container Registry and Cosmos DB. Only Defender for Cloud is on by default. Results show on the Cloud tests page.

Evidence checks. These run against every subscription you select and feed evidence tasks:

Check Passes when Evidence task
Storage: HTTPS and TLS 1.2 enforced Storage accounts allow HTTPS only with minimum TLS 1.2 TLS / HTTPS
Storage: no public access Anonymous blob access and public network access are off Production Firewall & No-Public-Access Controls
Storage: encryption at rest enabled Blob and file service encryption are on Encryption at Rest
SQL Database: TLS 1.2 enforced SQL servers require minimum TLS 1.2 TLS / HTTPS
SQL Database: no public access Public network access is off and there are no wide-open firewall rules Production Firewall & No-Public-Access Controls
SQL Database: auditing enabled Server auditing is on Monitoring & Alerting
Database for MySQL: TLS 1.2 enforced Flexible servers require secure transport and TLS 1.2 or 1.3 TLS / HTTPS
Database for PostgreSQL: TLS 1.2 enforced Flexible servers require secure transport and TLS 1.2 or 1.3 TLS / HTTPS
Key Vault: soft delete, purge protection, no public access All three hold for each vault Secure Secrets
Key Vault: RBAC authorization Vaults use Azure RBAC, not legacy access policies Role-based Access Controls
Network: no NSG ports open to the internet No inbound rule allows SSH, RDP, database ports (3306, 5432, 1433, 27017) or all ports from *, 0.0.0.0/0, ::/0, Internet or Any Production Firewall & No-Public-Access Controls
Azure RBAC: least privilege No excessive privileged role assignments, no custom roles with wildcard actions, no service principals with privileged roles Role-based Access Controls
Azure Monitor: alerts and log export Activity log alerts exist for critical operations (policy assignment, security solution, NSG and SQL firewall rule changes) and subscription logs are exported Monitoring & Alerting
Separation of environments Production and non-production are split across subscriptions or resource groups Separation of Environments
  • An Azure account that can create an app registration in Microsoft Entra ID, or a Global Administrator or Privileged Role Administrator if you use Connect with Microsoft.
  • Permission to assign roles on each subscription you want scanned (for example Owner or User Access Administrator on that subscription).
  • Microsoft Defender for Cloud enabled on the subscription. The free tier is enough for scanning.

Assign these Azure built-in roles to the app on each subscription:

  • Reader: required for every check and for detecting subscriptions.
  • Security Reader: required for Microsoft Defender for Cloud alerts and assessments.

The Azure Monitor check also accepts Monitoring Reader in place of Reader. Varman requests an Azure Resource Manager token with the client credentials flow and only reads. Auto-fix on the Cloud tests page is separate and needs Contributor-level access. Scanning never does.

  1. In the Azure portal, open App registrations > New registration. Give it a name. Single tenant is fine. Click Register. See Microsoft’s guide: Register an application.

  2. Copy the Directory (tenant) ID and the Application (client) ID from the overview page.

  3. Open Certificates & secrets > New client secret and copy the secret Value (not the secret ID). See Add credentials.

  4. For each subscription to scan, open Access control (IAM) > Add role assignment, and assign Reader and Security Reader to the app. See Assign Azure roles using the portal.

  5. In Varman, open Integrations, find Microsoft Azure and click Set up. This opens Cloud tests. Choose Microsoft Azure.

  6. Fill Directory (tenant) ID, Application (client) ID and Client secret, then click Connect.

No redirect URL or consent screen is needed for this method.

After connecting, Varman verifies access in three steps (detect subscription, Microsoft Defender for Cloud access, resource read access) and runs the first scan.

Varman stores the detected subscription ID and the findings. It does not copy your resources.

  • The Cloud tests scan runs daily at 05:00 UTC for every active Azure connection, or when you click Run Scan.
  • Evidence checks run on the daily 06:00 UTC schedule described in the overview.

On Cloud tests, click the settings (gear) button, choose the Azure connection in Connection Settings, and click Disconnect. Then, in Azure, remove the role assignments and delete the app registration or enterprise application. See Delete an enterprise application. See Disconnecting for what Varman keeps.

  • AZURE_SUB_MISSING: No enabled Azure subscription found. The app has no role on any enabled subscription. Assign Reader on a subscription and run the scan again.
  • Your account needs the "Security Reader" role on this subscription. Defender for Cloud could not be read. Assign Security Reader.
  • Your account needs at least the "Reader" role on this subscription. Assign Reader.
  • A finding titled Unable to access ... The service principal cannot read that Defender component. Assign Security Reader on the subscription.
  • Azure authentication failed: ... The tenant ID, client ID or secret is wrong, or the secret expired. Create a new secret, then disconnect and connect again.
  • Admin consent was declined. A Global Administrator or Privileged Role Administrator must approve Varman. Ask one of those roles to run Connect with Microsoft.
  • This Azure tenant is already connected to another Varman organization. Contact support. A tenant connected through Connect with Microsoft can belong to one Varman organization only.
  • The Microsoft sign-in link expired. Start again from Varman. Click Connect with Microsoft again.
  • Subscription selection exceeds the scan limit You selected more than 50 subscriptions. Reduce the selection.