@pulumi/azuread
Version:
A Pulumi package for creating and managing Azure Active Directory (Azure AD) cloud resources.
76 lines • 2.95 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApplicationOutput = exports.getApplication = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to access information about an existing Application within Azure Active Directory.
*
* ## API Permissions
*
* The following API permissions are required in order to use this data source.
*
* When authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`
*
* When authenticated with a user principal, this data source does not require any additional roles.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuread from "@pulumi/azuread";
*
* const example = azuread.getApplication({
* displayName: "My First AzureAD Application",
* });
* export const applicationObjectId = example.then(example => example.objectId);
* ```
*/
function getApplication(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azuread:index/getApplication:getApplication", {
"clientId": args.clientId,
"displayName": args.displayName,
"identifierUri": args.identifierUri,
"objectId": args.objectId,
}, opts);
}
exports.getApplication = getApplication;
/**
* Use this data source to access information about an existing Application within Azure Active Directory.
*
* ## API Permissions
*
* The following API permissions are required in order to use this data source.
*
* When authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`
*
* When authenticated with a user principal, this data source does not require any additional roles.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuread from "@pulumi/azuread";
*
* const example = azuread.getApplication({
* displayName: "My First AzureAD Application",
* });
* export const applicationObjectId = example.then(example => example.objectId);
* ```
*/
function getApplicationOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azuread:index/getApplication:getApplication", {
"clientId": args.clientId,
"displayName": args.displayName,
"identifierUri": args.identifierUri,
"objectId": args.objectId,
}, opts);
}
exports.getApplicationOutput = getApplicationOutput;
//# sourceMappingURL=getApplication.js.map