Microsoft 365 Terraform Provider
Manage your Microsoft 365, Intune, Teams, and Defender environments using Infrastructure as Code. Version control your configurations, enable GitOps workflows, and detect drift across your entire tenant.
Get Started in Minutes
Configure your first Microsoft 365 resource with Terraform in just a few steps
Install the Provider
Configure Authentication
View all authentication methods
View all authentication methods
- Client Secret - Service principal with secret
- Client Certificate - Service principal with certificate
- Managed Identity - Azure-hosted workloads
- Workload Identity - Kubernetes pods
- OIDC (GitHub Actions) - GitHub workflows
- OIDC (Azure DevOps) - Azure Pipelines
- Azure CLI - Local development
- Azure Developer CLI - Local development
- Device Code - Interactive CLI flows
- Interactive Browser - Local development
- Username/Password - Legacy scenarios
Create Your First Resource
Apply Your Configuration
Explore by Resource Type
Manage every aspect of your Microsoft 365 environment with 135+ resources
Device & App Management
Manage mobile apps, app configurations, and assignments across iOS, Android, macOS, and Windows platforms.
Device Management
Configure device compliance policies, configuration profiles, Windows updates, and enrollment settings.
Identity & Access
Manage conditional access policies, authentication strength, named locations, and custom security attributes.
Applications
Create and manage app registrations, service principals, and federated identity credentials.
Groups & Users
Manage Microsoft Entra ID groups, users, and group membership assignments.
Microsoft Teams
Configure Teams, channels, policies, and collaboration settings for your organization.
Why Microsoft 365 Terraform Provider?
Built for enterprises managing complex Microsoft 365 environments at scale
135+ Resources
Comprehensive coverage across Intune, Microsoft 365, Teams, and Defender services.
Multi-Cloud Support
Works with public, GCC, GCC High, DoD, China, and sovereign cloud environments.
Flexible Authentication
11 authentication methods including managed identity, OIDC, and certificate-based auth.
Dual API Support
Access both Microsoft Graph v1.0 and beta endpoints for stable and preview features.
Enterprise Security
Proxy support, workload identity, and secure credential management for production deployments.
GitOps Ready
Version control, drift detection, and automated deployments through CI/CD pipelines.
Ready to Get Started?
Join the community and start managing your Microsoft 365 environment as code. Get support from contributors and other users on our Discord server.
