CloudAzure
Scan Azure Virtual Machines
Scan Azure virtual machines, snapshots, and disks with cnspec.
Use cnspec to scan Azure virtual machines, snapshots, and disks through an Azure registered app. This lets you evaluate the security of your VMs without deploying agents.
Prerequisites
To scan Azure virtual machines with cnspec, you must have:
- cnspec installed on your workstation
- An Azure registered app with the appropriate permissions
- The app's tenant ID, client ID, and either a certificate or client secret
Scan a VM instance
cnspec scan azure compute instance NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRETScan a compute snapshot
cnspec scan azure compute snapshot NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRETScan a compute disk
cnspec scan azure compute disk NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRET