get Group
Use this data source to access information about an existing Management Group.
Example Usage
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()));
}
}
Content copied to clipboard
Return
A collection of values returned by getGroup.
Parameters
argument
A collection of arguments for invoking getGroup.
Return
A collection of values returned by getGroup.
See also
Parameters
display Name
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.
Return
A collection of values returned by getGroup.
See also
Parameters
argument
Builder for com.pulumi.azure.management.kotlin.inputs.GetGroupPlainArgs.