ServiceGroup

class ServiceGroup : KotlinCustomResource

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

The kind of the serviceGroup.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

ServiceGroup creation request body parameters.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

The serviceGroup tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>