Class GetServicePrincipal
Inheritance
System.Object
GetServicePrincipal
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AzureAD
Assembly: Pulumi.AzureAD.dll
Syntax
public static class GetServicePrincipal
Methods
View SourceInvokeAsync(GetServicePrincipalArgs, InvokeOptions)
Gets information about an existing 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 applicationsandSign in and read user profilewithin theWindows Azure Active DirectoryAPI.
Example Usage (by Application Display Name)
using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs
{
DisplayName = "my-awesome-application",
}));
}
}
Example Usage (by Application ID)
using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs
{
ApplicationId = "00000000-0000-0000-0000-000000000000",
}));
}
}
Example Usage (by Object ID)
using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs
{
ObjectId = "00000000-0000-0000-0000-000000000000",
}));
}
}
Declaration
public static Task<GetServicePrincipalResult> InvokeAsync(GetServicePrincipalArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServicePrincipalArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServicePrincipalResult> |