» Data Source: azurerm_azuread_service_principal

Gets information about an existing Service Principal associated with an Application within Azure Active Directory.

» Example Usage (by Application Display Name)

data "azurerm_azuread_service_principal" "example" {
  display_name = "my-awesome-application"
}

» Example Usage (by Application ID)

data "azurerm_azuread_service_principal" "example" {
  application_id = "00000000-0000-0000-0000-000000000000"
}

» Example Usage (by Object ID)

data "azurerm_azuread_service_principal" "example" {
  object_id = "00000000-0000-0000-0000-000000000000"
}

» Argument Reference

The following arguments are supported:

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

  • object_id - (Optional) The ID of the Azure AD Service Principal.

  • display_name - (Optional) The Display Name of the Azure AD Application associated with this Service Principal.

» Attributes Reference

The following attributes are exported:

  • id - The Object ID for the Service Principal.