Show / Hide Table of Contents

Class GetGroups

Inheritance
System.Object
GetGroups
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 GetGroups

Methods

View Source

InvokeAsync(GetGroupsArgs, InvokeOptions)

Gets Object IDs or Display Names for multiple Azure Active Directory groups.

NOTE: If you're authenticating using a Service Principal then it must have permissions to Read directory data within the Windows Azure Active Directory API.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AzureAD = Pulumi.AzureAD;

class MyStack : Stack
{
public MyStack()
{
    var groups = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs
    {
        Names = 
        {
            "group-a",
            "group-b",
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetGroupsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetGroupsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.