ServiceGroupArgs

data class ServiceGroupArgs(val kind: Output<String>? = null, val properties: Output<ServiceGroupPropertiesArgs>? = null, val serviceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceGroupArgs>

The serviceGroup details. Uses Azure REST API version 2024-02-01-preview.

Example Usage

PutServiceGroup

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceGroup = new AzureNative.Management.ServiceGroup("serviceGroup", new()
{
Properties = new AzureNative.Management.Inputs.ServiceGroupPropertiesArgs
{
DisplayName = "ServiceGroup 1 Name",
Parent = new AzureNative.Management.Inputs.ParentServiceGroupPropertiesArgs
{
ResourceId = "/providers/Microsoft.Management/serviceGroups/RootGroup",
},
},
ServiceGroupName = "ServiceGroup1",
});
});
package main
import (
management "github.com/pulumi/pulumi-azure-native-sdk/management/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := management.NewServiceGroup(ctx, "serviceGroup", &management.ServiceGroupArgs{
Properties: &management.ServiceGroupPropertiesArgs{
DisplayName: pulumi.String("ServiceGroup 1 Name"),
Parent: &management.ParentServiceGroupPropertiesArgs{
ResourceId: pulumi.String("/providers/Microsoft.Management/serviceGroups/RootGroup"),
},
},
ServiceGroupName: pulumi.String("ServiceGroup1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.management.ServiceGroup;
import com.pulumi.azurenative.management.ServiceGroupArgs;
import com.pulumi.azurenative.management.inputs.ServiceGroupPropertiesArgs;
import com.pulumi.azurenative.management.inputs.ParentServiceGroupPropertiesArgs;
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) {
var serviceGroup = new ServiceGroup("serviceGroup", ServiceGroupArgs.builder()
.properties(ServiceGroupPropertiesArgs.builder()
.displayName("ServiceGroup 1 Name")
.parent(ParentServiceGroupPropertiesArgs.builder()
.resourceId("/providers/Microsoft.Management/serviceGroups/RootGroup")
.build())
.build())
.serviceGroupName("ServiceGroup1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:management:ServiceGroup ServiceGroup1 /providers/Microsoft.Management/serviceGroups/{serviceGroupName}

Constructors

Link copied to clipboard
constructor(kind: Output<String>? = null, properties: Output<ServiceGroupPropertiesArgs>? = null, serviceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val kind: Output<String>? = null

The kind of the serviceGroup.

Link copied to clipboard

ServiceGroup creation request body parameters.

Link copied to clipboard
val serviceGroupName: Output<String>? = null

ServiceGroup Name.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The serviceGroup tags.

Functions

Link copied to clipboard
open override fun toJava(): ServiceGroupArgs