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:

Scan a VM instance

cnspec scan azure compute instance NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRET

Scan a compute snapshot

cnspec scan azure compute snapshot NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRET

Scan a compute disk

cnspec scan azure compute disk NAME --client-id YOUR-CLIENT-ID --tenant-id YOUR-TENANT-ID --client-secret YOUR-CLIENT-SECRET

Learn more

On this page