Show / Hide Table of Contents

Class GetUserAssignedIdentity

Inheritance
System.Object
GetUserAssignedIdentity
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.Azure.Core
Assembly: Pulumi.Azure.dll
Syntax
[Obsolete("azure.core.getUserAssignedIdentity has been deprecated in favor of azure.authorization.getUserAssignedIdentity")]
public static class GetUserAssignedIdentity

Methods

View Source

InvokeAsync(GetUserAssignedIdentityArgs, InvokeOptions)

Use this data source to access information about an existing User Assigned Identity.

Example Usage (reference an existing)

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Authorization.GetUserAssignedIdentity.InvokeAsync(new Azure.Authorization.GetUserAssignedIdentityArgs
    {
        Name = "name_of_user_assigned_identity",
        ResourceGroupName = "name_of_resource_group",
    }));
    this.UaiClientId = example.Apply(example => example.ClientId);
    this.UaiPrincipalId = example.Apply(example => example.PrincipalId);
}

[Output("uaiClientId")]
public Output<string> UaiClientId { get; set; }
[Output("uaiPrincipalId")]
public Output<string> UaiPrincipalId { get; set; }
}
Declaration
public static Task<GetUserAssignedIdentityResult> InvokeAsync(GetUserAssignedIdentityArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetUserAssignedIdentityArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetUserAssignedIdentityResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.