Terraform deploy Microsoft Entra Domain Services for lab environment
| main.tf | ||
| outputs.tf | ||
| README.md | ||
| secret-example.tfvars | ||
| variables.tf | ||
Terraform Deploy Microsoft Entra Directory Services for lab
- use azurerm and azuread providers
Creates the following resources:
- Resource Group
- Virtual Network
- Subnet
- Network Security Group
- Azure Active Directory Domain Service (old name for Entra DS), standard SKU
Sets up NSG association with subnet
To ensure that the Azure-managed domain controllers for the Entra DS domain are on the desired subnet, only create one subnet with this Terraform. Other subnets can be created later.
Usage
Change secret-example.tfvars to secret.tfvars and update values accordingly.
Deploy with:
terraform init
terraform validate
terraform apply -var-file="secret.tfvars"
Destroy with:
terraform destroy