databricks_service_principal Data Source

Retrieves information about databricks_service_principal.

Example Usage

Adding service principal 11111111-2222-3333-4444-555666777888 to administrative group

data "databricks_group" "admins" {
  display_name = "admins"
}

data "databricks_service_principal" "spn" {
  application_id = "11111111-2222-3333-4444-555666777888"
}

resource "databricks_group_member" "my_member_a" {
  group_id  = data.databricks_group.admins.id
  member_id = data.databricks_service_principal.spn.id
}

Argument Reference

Data source allows you to pick service principals by one of the following attributes (only one of them):

Attribute Reference

Data source exposes the following attributes:

The following resources are used in the same context: