{"token_count": 361}

# Server Auto-Discovery for Azure Virtual Machines

This guide shows you how to configure Teleport to automatically enroll Azure virtual machines in your cluster.

## How it works

The Teleport Discovery Service can connect to Azure and automatically discover and enroll virtual machines matching configured labels. It will then execute a script on these discovered instances that will install Teleport, start it and join the cluster.

## Choosing subscription or management group scope

If you want to discover Azure VMs in specific subscriptions, follow the "Single Subscription" guide below.

If you want to discover Azure VMs across subscriptions in a management group or tenant, follow the [Management Group Azure VM Auto-Discovery](https://goteleport.com/docs/enroll-resources/auto-discovery/servers/azure-vm-discovery/azure-vm-discovery-management-group.md) guide.

## Guides

- [Single Subscription Manual Azure VM Auto-Discovery](https://goteleport.com/docs/enroll-resources/auto-discovery/servers/azure-vm-discovery/azure-vm-discovery-manual.md)
- [Terraform Azure VM Auto-Discovery Configuration](https://goteleport.com/docs/enroll-resources/auto-discovery/servers/azure-vm-discovery/azure-vm-discovery-terraform.md)
- [Management Group Azure VM Auto-Discovery](https://goteleport.com/docs/enroll-resources/auto-discovery/servers/azure-vm-discovery/azure-vm-discovery-management-group.md)
