getGroup

suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult

Use this data source to access information about an existing Management Group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.management.getGroup({
name: "00000000-0000-0000-0000-000000000000",
});
export const displayName = example.then(example => example.displayName);
import pulumi
import pulumi_azure as azure
example = azure.management.get_group(name="00000000-0000-0000-0000-000000000000")
pulumi.export("displayName", example.display_name)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Management.GetGroup.Invoke(new()
{
Name = "00000000-0000-0000-0000-000000000000",
});
return new Dictionary<string, object?>
{
["displayName"] = example.Apply(getGroupResult => getGroupResult.DisplayName),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := management.LookupGroup(ctx, &management.LookupGroupArgs{
Name: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
}, nil)
if err != nil {
return err
}
ctx.Export("displayName", example.DisplayName)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.management.ManagementFunctions;
import com.pulumi.azure.management.inputs.GetGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ManagementFunctions.getGroup(GetGroupArgs.builder()
.name("00000000-0000-0000-0000-000000000000")
.build());
ctx.export("displayName", example.applyValue(getGroupResult -> getGroupResult.displayName()));
}
}
variables:
example:
fn::invoke:
function: azure:management:getGroup
arguments:
name: 00000000-0000-0000-0000-000000000000
outputs:
displayName: ${example.displayName}

Return

A collection of values returned by getGroup.

Parameters

argument

A collection of arguments for invoking getGroup.


suspend fun getGroup(displayName: String? = null, name: String? = null): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

displayName

Specifies the display name of this Management Group.

NOTE Whilst multiple management groups may share the same display name, when filtering, the provider expects a single management group to be found with this name.

name

Specifies the name or UUID of this Management Group.

See also


suspend fun getGroup(argument: suspend GetGroupPlainArgsBuilder.() -> Unit): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

argument

Builder for com.pulumi.azure.management.kotlin.inputs.GetGroupPlainArgs.

See also