Secure Microsoft Azure with Mondoo
Secure your Azure subscriptions by continuously scanning compute, databases, networks, and more for misconfigurations and vulnerabilities.
There are three ways to assess your Azure subscriptions with Mondoo: monitor them continuously, scan in your build pipeline, or run ad hoc scans from your workstation. This page helps you pick the right one.
Choose a setup path
For ongoing security and compliance assessment of your Azure subscriptions, set up a continuous integration. All three paths are on the Azure integration page in the Mondoo App and need the Editor or Owner role in the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
| Path | Setup time | Azure roles you need | Credential Mondoo uses | Rotation |
|---|---|---|---|---|
| Automated setup (recommended) | A few minutes | Owner or User Access Administrator on the management group you grant access at. Privileged Role Administrator or Global Administrator only if you want Mondoo to scan Microsoft Entra ID. | None. A federated identity credential trusts Mondoo, so no secret exists. | None |
| Terraform setup | About two minutes | Privileged Role Administrator or Global Administrator in Microsoft Entra ID, plus Owner or User Access Administrator on each subscription you scan. | Self-signed certificate | Renew before it expires, after 4,096 hours (about 170 days) |
| Manual setup | Longer than the automated setup | An Entra role that can create app registrations, Privileged Role Administrator or Global Administrator to grant admin consent, and Owner or User Access Administrator to assign roles. | Client secret or certificate you create | Renew before the expiration you set |
The automated setup grants read-only access once, on a management group, so subscriptions you create later are covered automatically. Take the manual setup when you want to create the app registration yourself, or for key vaults that use the legacy access policy permission model.
Troubleshoot your setup path
- Automated setup: see Troubleshoot on the automated setup page. It explains each
ERRORandWARNINGline the setup scripts print. - Terraform setup: see Troubleshoot on the Terraform setup page, then Troubleshoot Azure Client Secrets and Certificates.
- Manual setup: see Troubleshoot Azure Client Secrets and Certificates.
For what each integration status means, read Integration status and troubleshooting.
Scan during build
Scan at runtime
- Scan an Azure subscription from your workstation with cnspec
- Install cnspec via cloud-init
- Terraform deployment
- Verify instances managed by Chef Infra
- Verify instances managed by Ansible
Next steps
Once your Azure subscriptions are connected and scanning, explore your asset inventory, then assess and improve your security to review and prioritize your findings.
Last updated on