» Data Source: azuread_application
Use this data source to access information about an existing 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
data "azuread_application" "test" {
name = "My First AzureAD Application"
}
output "azure_ad_object_id" {
value = "${data.azuread_application.test.id}"
}
» Argument Reference
-
object_id- (Optional) Specifies the Object ID of the Application within Azure Active Directory. -
name- (Optional) Specifies the name of the Application within Azure Active Directory.
NOTE: Either an object_id or name must be specified.
» Attributes Reference
-
id- the Object ID of the Azure Active Directory Application. -
application_id- the Application ID of the Azure Active Directory Application. -
available_to_other_tenants- Is this Azure AD Application available to other tenants? -
identifier_uris- A list of user-defined URI(s) that uniquely identify a Web application within it's Azure AD tenant, or within a verified custom domain if the application is multi-tenant. -
oauth2_allow_implicit_flow- Does this Azure AD Application allow OAuth2.0 implicit flow tokens? -
object_id- the Object ID of the Azure Active Directory Application. -
reply_urls- A list of URLs that user tokens are sent to for sign in, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to. -
required_resource_access- A collection ofrequired_resource_accessblocks as documented below.
required_resource_access block exports the following:
-
resource_app_id- The unique identifier for the resource that the application requires access to. -
resource_access- A collection ofresource_accessblocks as documented below
resource_access block exports the following: