» azurerm_azuread_service_principal

Manages a Service Principal associated with an Application within Azure Active Directory.

» Example Usage

resource "azurerm_azuread_application" "example" {
  name                       = "example"
  homepage                   = "http://homepage"
  identifier_uris            = ["http://uri"]
  reply_urls                 = ["http://replyurl"]
  available_to_other_tenants = false
  oauth2_allow_implicit_flow = true
}

resource "azurerm_azuread_service_principal" "example" {
  application_id = "${azurerm_azuread_application.example.application_id}"
}

» Argument Reference

The following arguments are supported:

  • application_id - (Required) The ID of the Azure AD Application for which to create a Service Principal.

» Attributes Reference

The following attributes are exported:

  • id - The Object ID for the Service Principal.

  • display_name - The Display Name of the Azure Active Directory Application associated with this Service Principal.

» Import

Azure Active Directory Service Principals can be imported using the object id, e.g.

terraform import azurerm_azuread_service_principal.example 00000000-0000-0000-0000-000000000000