Microsoft Azure
Link Azure subscriptions with the Azure CLI or a service principal, and discover Linux VMs.
Microsoft Azure
Harbor lists the Linux virtual machines in your Azure subscriptions and imports them as hosts.
Link a subscription
Open Connectors › Cloud & infrastructure › Azure and choose how Harbor signs in:
- Azure CLI: uses your existing
az login, on this computer or (on Windows) in WSL. Nothing is stored in Harbor. Install the Azure CLI and runaz loginfirst. - Service principal: enter the tenant ID, client ID and client secret. The secret is encrypted like other saved secrets and only sent to Microsoft’s sign-in service.
The identity needs the Reader role on the subscriptions (or resource groups) to scan.
Options
- Subscription IDs: leave empty for every subscription the identity can see, or name them.
- Locations and Only VMs tagged, to narrow the scan.
- The SSH username and SSH key imported VMs log in with, and their environment.
Discover and import VMs
Scans list each Linux VM’s state, size, OS and addresses. Import the ones you want; they connect over SSH with the account’s key, as the VM’s admin user when Azure knows it, otherwise as the username you set. Rescans keep their state and addresses up to date.
Harbor only reads from Azure Resource Manager; it never starts, stops or changes resources.