GetApplication
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 (or owned by) applicationsandSign in and read user profilewithin theWindows Azure Active DirectoryAPI.
Example Usage
using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs
{
Name = "My First AzureAD Application",
}));
this.AzureAdObjectId = example.Apply(example => example.Id);
}
[Output("azureAdObjectId")]
public Output<string> AzureAdObjectId { get; set; }
}
Coming soon!
import pulumi
import pulumi_azuread as azuread
example = azuread.get_application(name="My First AzureAD Application")
pulumi.export("azureAdObjectId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = pulumi.output(azuread.getApplication({
name: "My First AzureAD Application",
}, { async: true }));
export const azureAdObjectId = example.id;Using GetApplication
function getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>function get_application(name=None, oauth2_permissions=None, object_id=None, optional_claims=None, opts=None)func LookupApplication(ctx *Context, args *LookupApplicationArgs, opts ...InvokeOption) (*LookupApplicationResult, error)Note: This function is named
LookupApplicationin the Go SDK.
public static class GetApplication {
public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Application within Azure Active Directory.
- Oauth2Permissions
List<Pulumi.
Azure AD. Inputs. Get Application Oauth2Permission Args> A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- Object
Id string Specifies the Object ID of the Application within Azure Active Directory.
- Optional
Claims Pulumi.Azure AD. Inputs. Get Application Optional Claims Args A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- Name string
Specifies the name of the Application within Azure Active Directory.
- Oauth2Permissions
[]Get
Application Oauth2Permission A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- Object
Id string Specifies the Object ID of the Application within Azure Active Directory.
- Optional
Claims GetApplication Optional Claims A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- name string
Specifies the name of the Application within Azure Active Directory.
- oauth2Permissions
Get
Application Oauth2Permission[] A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- object
Id string Specifies the Object ID of the Application within Azure Active Directory.
- optional
Claims GetApplication Optional Claims A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- name str
Specifies the name of the Application within Azure Active Directory.
- oauth2_
permissions List[GetApplication Oauth2Permission] A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- object_
id str Specifies the Object ID of the Application within Azure Active Directory.
- optional_
claims Dict[GetApplication Optional Claims] A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
GetApplication Result
The following output properties are available:
- App
Roles List<Pulumi.Azure AD. Outputs. Get Application App Role> A collection of
app_roleblocks as documented below. For more information https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles- Application
Id string the Application ID of the Azure Active Directory Application.
- Available
To boolOther Tenants Is this Azure AD Application available to other tenants?
- Group
Membership stringClaims The
groupsclaim issued in a user or OAuth 2.0 access token that the app expects.- Homepage string
- Id string
The provider-assigned unique ID for this managed resource.
- Identifier
Uris List<string> 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.
- Logout
Url string The URL of the logout page.
- Name string
The name of the optional claim.
- Oauth2Allow
Implicit boolFlow Does this Azure AD Application allow OAuth2.0 implicit flow tokens?
- Oauth2Permissions
List<Pulumi.
Azure AD. Outputs. Get Application Oauth2Permission> A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- Object
Id string the Object ID of the Azure Active Directory Application.
- Owners List<string>
A list of User Object IDs that are assigned ownership of the application registration.
- Reply
Urls List<string> 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 List<Pulumi.Accesses Azure AD. Outputs. Get Application Required Resource Access> A collection of
required_resource_accessblocks as documented below.- Type string
The type of the permission
- Optional
Claims Pulumi.Azure AD. Outputs. Get Application Optional Claims A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- App
Roles []GetApplication App Role A collection of
app_roleblocks as documented below. For more information https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles- Application
Id string the Application ID of the Azure Active Directory Application.
- Available
To boolOther Tenants Is this Azure AD Application available to other tenants?
- Group
Membership stringClaims The
groupsclaim issued in a user or OAuth 2.0 access token that the app expects.- Homepage string
- Id string
The provider-assigned unique ID for this managed resource.
- Identifier
Uris []string 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.
- Logout
Url string The URL of the logout page.
- Name string
The name of the optional claim.
- Oauth2Allow
Implicit boolFlow Does this Azure AD Application allow OAuth2.0 implicit flow tokens?
- Oauth2Permissions
[]Get
Application Oauth2Permission A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- Object
Id string the Object ID of the Azure Active Directory Application.
- Owners []string
A list of User Object IDs that are assigned ownership of the application registration.
- Reply
Urls []string 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 []GetAccesses Application Required Resource Access A collection of
required_resource_accessblocks as documented below.- Type string
The type of the permission
- Optional
Claims GetApplication Optional Claims A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- app
Roles GetApplication App Role[] A collection of
app_roleblocks as documented below. For more information https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles- application
Id string the Application ID of the Azure Active Directory Application.
- available
To booleanOther Tenants Is this Azure AD Application available to other tenants?
- group
Membership stringClaims The
groupsclaim issued in a user or OAuth 2.0 access token that the app expects.- homepage string
- id string
The provider-assigned unique ID for this managed resource.
- identifier
Uris string[] 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.
- logout
Url string The URL of the logout page.
- name string
The name of the optional claim.
- oauth2Allow
Implicit booleanFlow Does this Azure AD Application allow OAuth2.0 implicit flow tokens?
- oauth2Permissions
Get
Application Oauth2Permission[] A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- object
Id string the Object ID of the Azure Active Directory Application.
- owners string[]
A list of User Object IDs that are assigned ownership of the application registration.
- reply
Urls string[] 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 GetAccesses Application Required Resource Access[] A collection of
required_resource_accessblocks as documented below.- type string
The type of the permission
- optional
Claims GetApplication Optional Claims A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
- app_
roles List[GetApplication App Role] A collection of
app_roleblocks as documented below. For more information https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles- application_
id str the Application ID of the Azure Active Directory Application.
- available_
to_ boolother_ tenants Is this Azure AD Application available to other tenants?
- group_
membership_ strclaims The
groupsclaim issued in a user or OAuth 2.0 access token that the app expects.- homepage str
- id str
The provider-assigned unique ID for this managed resource.
- identifier_
uris List[str] 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.
- logout_
url str The URL of the logout page.
- name str
The name of the optional claim.
- oauth2_
allow_ boolimplicit_ flow Does this Azure AD Application allow OAuth2.0 implicit flow tokens?
- oauth2_
permissions List[GetApplication Oauth2Permission] A collection of OAuth 2.0 permission scopes that the web API (resource) app exposes to client apps. Each permission is covered by a
oauth2_permissionblock as documented below.- object_
id str the Object ID of the Azure Active Directory Application.
- owners List[str]
A list of User Object IDs that are assigned ownership of the application registration.
- reply_
urls List[str] 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_ List[Getaccesses Application Required Resource Access] A collection of
required_resource_accessblocks as documented below.- type str
The type of the permission
- optional_
claims Dict[GetApplication Optional Claims] A collection of
access_tokenorid_tokenblocks as documented below which list the optional claims configured for each token type. For more information see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims
Supporting Types
GetApplicationAppRole
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Allowed
Member List<string>Types Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
UserandApplication, or both.- Description string
Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string Display name for the permission that appears in the admin consent and app assignment experiences.
- Id string
The unique identifier of the
app_role.- Is
Enabled bool Determines if the app role is enabled.
- Value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- Allowed
Member []stringTypes Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
UserandApplication, or both.- Description string
Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string Display name for the permission that appears in the admin consent and app assignment experiences.
- Id string
The unique identifier of the
app_role.- Is
Enabled bool Determines if the app role is enabled.
- Value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- allowed
Member string[]Types Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
UserandApplication, or both.- description string
Permission help text that appears in the admin app assignment and consent experiences.
- display
Name string Display name for the permission that appears in the admin consent and app assignment experiences.
- id string
The unique identifier of the
app_role.- is
Enabled boolean Determines if the app role is enabled.
- value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- allowed
Member List[str]Types Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
UserandApplication, or both.- description str
Permission help text that appears in the admin app assignment and consent experiences.
- display_
name str Display name for the permission that appears in the admin consent and app assignment experiences.
- id str
The unique identifier of the
app_role.- is
Enabled bool Determines if the app role is enabled.
- value str
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
GetApplicationOauth2Permission
- Admin
Consent stringDescription The description of the admin consent
- Admin
Consent stringDisplay Name The display name of the admin consent
- Id string
The unique identifier of the
app_role.- Is
Enabled bool Determines if the app role is enabled.
- Type string
The type of the permission
- User
Consent stringDescription The description of the user consent
- User
Consent stringDisplay Name The display name of the user consent
- Value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- Admin
Consent stringDescription The description of the admin consent
- Admin
Consent stringDisplay Name The display name of the admin consent
- Id string
The unique identifier of the
app_role.- Is
Enabled bool Determines if the app role is enabled.
- Type string
The type of the permission
- User
Consent stringDescription The description of the user consent
- User
Consent stringDisplay Name The display name of the user consent
- Value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- admin
Consent stringDescription The description of the admin consent
- admin
Consent stringDisplay Name The display name of the admin consent
- id string
The unique identifier of the
app_role.- is
Enabled boolean Determines if the app role is enabled.
- type string
The type of the permission
- user
Consent stringDescription The description of the user consent
- user
Consent stringDisplay Name The display name of the user consent
- value string
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
- admin
Consent strDescription The description of the admin consent
- admin
Consent strDisplay Name The display name of the admin consent
- id str
The unique identifier of the
app_role.- is
Enabled bool Determines if the app role is enabled.
- type str
The type of the permission
- user
Consent strDescription The description of the user consent
- user
Consent strDisplay Name The display name of the user consent
- value str
Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
GetApplicationOptionalClaims
GetApplicationOptionalClaimsAccessToken
- Name string
Specifies the name of the Application within Azure Active Directory.
- Additional
Properties List<string> List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- Essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- Source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- Name string
Specifies the name of the Application within Azure Active Directory.
- Additional
Properties []string List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- Essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- Source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- name string
Specifies the name of the Application within Azure Active Directory.
- additional
Properties string[] List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- essential boolean
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- name str
Specifies the name of the Application within Azure Active Directory.
- additional
Properties List[str] List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- source str
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
GetApplicationOptionalClaimsIdToken
- Name string
Specifies the name of the Application within Azure Active Directory.
- Additional
Properties List<string> List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- Essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- Source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- Name string
Specifies the name of the Application within Azure Active Directory.
- Additional
Properties []string List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- Essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- Source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- name string
Specifies the name of the Application within Azure Active Directory.
- additional
Properties string[] List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- essential boolean
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- source string
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
- name str
Specifies the name of the Application within Azure Active Directory.
- additional
Properties List[str] List of Additional Properties of the claim. If a property exists in this list, it modifies the behaviour of the optional claim.
- essential bool
Whether the claim specified by the client is necessary to ensure a smooth authorization experience.
- source str
The source of the claim. If
sourceis absent, the claim is a predefined optional claim. Ifsourceisuser, the value ofnameis the extension property from the user object.
GetApplicationRequiredResourceAccess
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Resource
Accesses List<Pulumi.Azure AD. Inputs. Get Application Required Resource Access Resource Access Args> A collection of
resource_accessblocks as documented below- Resource
App stringId The unique identifier for the resource that the application requires access to.
- Resource
Accesses []GetApplication Required Resource Access Resource Access A collection of
resource_accessblocks as documented below- Resource
App stringId The unique identifier for the resource that the application requires access to.
- resource
Accesses GetApplication Required Resource Access Resource Access[] A collection of
resource_accessblocks as documented below- resource
App stringId The unique identifier for the resource that the application requires access to.
- resource
Accesses List[GetApplication Required Resource Access Resource Access] A collection of
resource_accessblocks as documented below- resource
App strId The unique identifier for the resource that the application requires access to.
GetApplicationRequiredResourceAccessResourceAccess
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuread
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azureadTerraform Provider.