» Data Source: 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 "azuread_service_principal" "test" {
  display_name = "my-awesome-application"
}

» Example Usage (by Application ID)

data "azuread_service_principal" "test" {
  application_id = "00000000-0000-0000-0000-000000000000"
}

» Example Usage (by Object ID)

data "azuread_service_principal" "test" {
  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.