This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Themsgraph Terraform provider allows you to define the tenant infrastructure you want to deploy, such as groups or applications, in a Terraform configuration, then manage the development lifecycle of it as infrastructure.Terraform is a domain-specific language (DSL) that uses declarative syntax to deploy resources, typically for yourinfrastructure as code solutions.
Suppose you want tocall custom APIs from Azure Logic Apps where the web app is secured using Microsoft Entra ID. To create the two application identities for the logic app and the web app, you can define the Microsoft Graph application and service principal resources in Terraform, instead of creating them manually beforehand. In the same file, you can define the logic app and web app resources. Then, you can repeatedly deploy the file throughout the development lifecycle and have confidence that all your Azure and Microsoft Graph resources are deployed consistently.
Important
Themsgraph provider for Terraform is currently in PREVIEW.See theSupplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
Historically, Terraform users could utilize theazuread provider to manage users, groups, service principals, and applications. The newmsgraph provider also supports these features and extends functionality to all Microsoft Graph endpoints. These include newEntra APIs like privileged identity management as well asM365 Graph APIs like SharePoint sites.
msgraph Terraform providerDay 0 support for beta and v1.0 API versions: Themsgraph provider allows you to reference both beta and v1.0 versions of supported Microsoft Graph resource types within the same Terraform file. Since support for resource types is automatic, you can access the latest features and functionality as soon as they're released via the provider.
Authoring experience: You get a first-class authoring experience via theMicrosoft Terraform VSCode Extension when you use it to create your Terraformmsgraph configuration. The editor provides rich type-safety, intellisense, and syntax validation.

Common and consistent development: Terraform is multi-cloud and multi-provider. Using Terraform means you can define MSGraph resources to authenticate with Azure and create resources via theazapi orazurerm providers.
Full Terraform state file fidelity: All set properties and values can be saved to state to ensure your team can effectively track drift of resources across their lifecycle.
Deploying Microsoft Graph resources using Terraform requires any licenses necessary to work with the Microsoft Graph resources you're deploying. A valid Azure subscription is required, if also deploying any Azure resources.
Deploy your first Terraform configuration containing Microsoft Graph resources in minutes
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?