Microsoft Azure
What it does in Varman
Section titled “What it does in Varman”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 |
What you need
Section titled “What you need”- 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.
Permissions requested
Section titled “Permissions requested”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.
Connect
Section titled “Connect”-
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.
-
Copy the Directory (tenant) ID and the Application (client) ID from the overview page.
-
Open Certificates & secrets > New client secret and copy the secret Value (not the secret ID). See Add credentials.
-
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.
-
In Varman, open Integrations, find Microsoft Azure and click Set up. This opens Cloud tests. Choose Microsoft Azure.
-
Fill Directory (tenant) ID, Application (client) ID and Client secret, then click Connect.
No redirect URL or consent screen is needed for this method.
This option appears only when your Varman deployment has a multi-tenant Microsoft app configured. No client secret is created or shared.
-
In Varman, open Integrations, find Microsoft Azure and click Set up, then choose Microsoft Azure on the Cloud tests page.
-
Click Connect with Microsoft. A Global Administrator or Privileged Role Administrator signs in and approves the Varman app for your tenant.
-
Back in Varman, follow Admin consent granted. Now give Varman read access. In the Azure portal open Subscriptions, pick a subscription, then Access control (IAM) > Add > Add role assignment. Assign Reader to the Varman app, then repeat with Security Reader.
-
Click Check access. Varman detects the subscription and verifies both roles. Role assignments can take a few minutes to apply.
After connecting, Varman verifies access in three steps (detect subscription, Microsoft Defender for Cloud access, resource read access) and runs the first scan.
What gets synced and how often
Section titled “What gets synced and how often”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.
Disconnect
Section titled “Disconnect”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.
Troubleshooting
Section titled “Troubleshooting”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 limitYou selected more than 50 subscriptions. Reduce the selection.