1. Packages
  2. Azure Native
  3. API Docs
  4. management
  5. ServiceGroup
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.management.ServiceGroup

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    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 * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serviceGroup = new azure_native.management.ServiceGroup("serviceGroup", {
        properties: {
            displayName: "ServiceGroup 1 Name",
            parent: {
                resourceId: "/providers/Microsoft.Management/serviceGroups/RootGroup",
            },
        },
        serviceGroupName: "ServiceGroup1",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    service_group = azure_native.management.ServiceGroup("serviceGroup",
        properties={
            "display_name": "ServiceGroup 1 Name",
            "parent": {
                "resource_id": "/providers/Microsoft.Management/serviceGroups/RootGroup",
            },
        },
        service_group_name="ServiceGroup1")
    
    resources:
      serviceGroup:
        type: azure-native:management:ServiceGroup
        properties:
          properties:
            displayName: ServiceGroup 1 Name
            parent:
              resourceId: /providers/Microsoft.Management/serviceGroups/RootGroup
          serviceGroupName: ServiceGroup1
    

    Create ServiceGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceGroup(name: string, args?: ServiceGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceGroup(resource_name: str,
                     args: Optional[ServiceGroupArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     kind: Optional[str] = None,
                     properties: Optional[ServiceGroupPropertiesArgs] = None,
                     service_group_name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
    func NewServiceGroup(ctx *Context, name string, args *ServiceGroupArgs, opts ...ResourceOption) (*ServiceGroup, error)
    public ServiceGroup(string name, ServiceGroupArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceGroup(String name, ServiceGroupArgs args)
    public ServiceGroup(String name, ServiceGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:management:ServiceGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceGroupResource = new AzureNative.Management.ServiceGroup("serviceGroupResource", new()
    {
        Kind = "string",
        Properties = new AzureNative.Management.Inputs.ServiceGroupPropertiesArgs
        {
            DisplayName = "string",
            Parent = new AzureNative.Management.Inputs.ParentServiceGroupPropertiesArgs
            {
                ResourceId = "string",
            },
        },
        ServiceGroupName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := management.NewServiceGroup(ctx, "serviceGroupResource", &management.ServiceGroupArgs{
    	Kind: pulumi.String("string"),
    	Properties: &management.ServiceGroupPropertiesArgs{
    		DisplayName: pulumi.String("string"),
    		Parent: &management.ParentServiceGroupPropertiesArgs{
    			ResourceId: pulumi.String("string"),
    		},
    	},
    	ServiceGroupName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var serviceGroupResource = new ServiceGroup("serviceGroupResource", ServiceGroupArgs.builder()
        .kind("string")
        .properties(ServiceGroupPropertiesArgs.builder()
            .displayName("string")
            .parent(ParentServiceGroupPropertiesArgs.builder()
                .resourceId("string")
                .build())
            .build())
        .serviceGroupName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    service_group_resource = azure_native.management.ServiceGroup("serviceGroupResource",
        kind="string",
        properties={
            "display_name": "string",
            "parent": {
                "resource_id": "string",
            },
        },
        service_group_name="string",
        tags={
            "string": "string",
        })
    
    const serviceGroupResource = new azure_native.management.ServiceGroup("serviceGroupResource", {
        kind: "string",
        properties: {
            displayName: "string",
            parent: {
                resourceId: "string",
            },
        },
        serviceGroupName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:management:ServiceGroup
    properties:
        kind: string
        properties:
            displayName: string
            parent:
                resourceId: string
        serviceGroupName: string
        tags:
            string: string
    

    ServiceGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ServiceGroup resource accepts the following input properties:

    Kind string
    The kind of the serviceGroup.
    Properties Pulumi.AzureNative.Management.Inputs.ServiceGroupProperties
    ServiceGroup creation request body parameters.
    ServiceGroupName string
    ServiceGroup Name.
    Tags Dictionary<string, string>
    The serviceGroup tags.
    Kind string
    The kind of the serviceGroup.
    Properties ServiceGroupPropertiesArgs
    ServiceGroup creation request body parameters.
    ServiceGroupName string
    ServiceGroup Name.
    Tags map[string]string
    The serviceGroup tags.
    kind String
    The kind of the serviceGroup.
    properties ServiceGroupProperties
    ServiceGroup creation request body parameters.
    serviceGroupName String
    ServiceGroup Name.
    tags Map<String,String>
    The serviceGroup tags.
    kind string
    The kind of the serviceGroup.
    properties ServiceGroupProperties
    ServiceGroup creation request body parameters.
    serviceGroupName string
    ServiceGroup Name.
    tags {[key: string]: string}
    The serviceGroup tags.
    kind str
    The kind of the serviceGroup.
    properties ServiceGroupPropertiesArgs
    ServiceGroup creation request body parameters.
    service_group_name str
    ServiceGroup Name.
    tags Mapping[str, str]
    The serviceGroup tags.
    kind String
    The kind of the serviceGroup.
    properties Property Map
    ServiceGroup creation request body parameters.
    serviceGroupName String
    ServiceGroup Name.
    tags Map<String>
    The serviceGroup tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceGroup resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Management.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ParentServiceGroupProperties, ParentServiceGroupPropertiesArgs

    ResourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    ResourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId String
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resource_id str
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId String
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'

    ParentServiceGroupPropertiesResponse, ParentServiceGroupPropertiesResponseArgs

    ResourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    ResourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId String
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId string
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resource_id str
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
    resourceId String
    The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'

    ServiceGroupProperties, ServiceGroupPropertiesArgs

    DisplayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    Parent Pulumi.AzureNative.Management.Inputs.ParentServiceGroupProperties
    The details of the parent serviceGroup.
    DisplayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    Parent ParentServiceGroupProperties
    The details of the parent serviceGroup.
    displayName String
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupProperties
    The details of the parent serviceGroup.
    displayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupProperties
    The details of the parent serviceGroup.
    display_name str
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupProperties
    The details of the parent serviceGroup.
    displayName String
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent Property Map
    The details of the parent serviceGroup.

    ServiceGroupPropertiesResponse, ServiceGroupPropertiesResponseArgs

    ProvisioningState string
    The provisioning state of the serviceGroup. For example, Running
    DisplayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    Parent Pulumi.AzureNative.Management.Inputs.ParentServiceGroupPropertiesResponse
    The details of the parent serviceGroup.
    ProvisioningState string
    The provisioning state of the serviceGroup. For example, Running
    DisplayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    Parent ParentServiceGroupPropertiesResponse
    The details of the parent serviceGroup.
    provisioningState String
    The provisioning state of the serviceGroup. For example, Running
    displayName String
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupPropertiesResponse
    The details of the parent serviceGroup.
    provisioningState string
    The provisioning state of the serviceGroup. For example, Running
    displayName string
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupPropertiesResponse
    The details of the parent serviceGroup.
    provisioning_state str
    The provisioning state of the serviceGroup. For example, Running
    display_name str
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent ParentServiceGroupPropertiesResponse
    The details of the parent serviceGroup.
    provisioningState String
    The provisioning state of the serviceGroup. For example, Running
    displayName String
    The display name of the serviceGroup. For example, ServiceGroupTest1
    parent Property Map
    The details of the parent serviceGroup.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi