» azuread_service_principal
Manages a Service Principal associated with an Application within Azure Active Directory.
NOTE: If you're authenticating using a Service Principal then it must have permissions to both Read and write all applications
and Sign in and read user profile
within the Windows Azure Active Directory
API.
» Example Usage
resource "azuread_application" "test" {
name = "example"
homepage = "http://homepage"
identifier_uris = ["http://uri"]
reply_urls = ["http://replyurl"]
available_to_other_tenants = false
oauth2_allow_implicit_flow = true
}
resource "azuread_service_principal" "test" {
application_id = "${azuread_application.test.application_id}"
tags = ["example", "tags", "here"]
}
» Argument Reference
The following arguments are supported:
-
application_id
- (Required) The ID of the Azure AD Application for which to create a Service Principal. -
tags
- (Optional) A list of tags to apply to the 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 azuread_service_principal.test 00000000-0000-0000-0000-000000000000