azure-native.management.ServiceGroup
Explore with Pulumi AI
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.
Azure Native. Management. Inputs. Service Group Properties - ServiceGroup creation request body parameters.
- Service
Group stringName - ServiceGroup Name.
- Dictionary<string, string>
- The serviceGroup tags.
- Kind string
- The kind of the serviceGroup.
- Properties
Service
Group Properties Args - ServiceGroup creation request body parameters.
- Service
Group stringName - ServiceGroup Name.
- map[string]string
- The serviceGroup tags.
- kind String
- The kind of the serviceGroup.
- properties
Service
Group Properties - ServiceGroup creation request body parameters.
- service
Group StringName - ServiceGroup Name.
- Map<String,String>
- The serviceGroup tags.
- kind string
- The kind of the serviceGroup.
- properties
Service
Group Properties - ServiceGroup creation request body parameters.
- service
Group stringName - ServiceGroup Name.
- {[key: string]: string}
- The serviceGroup tags.
- kind str
- The kind of the serviceGroup.
- properties
Service
Group Properties Args - ServiceGroup creation request body parameters.
- service_
group_ strname - ServiceGroup Name.
- Mapping[str, str]
- The serviceGroup tags.
- kind String
- The kind of the serviceGroup.
- properties Property Map
- ServiceGroup creation request body parameters.
- service
Group StringName - ServiceGroup Name.
- Map<String>
- The serviceGroup tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceGroup resource produces the following output properties:
- Azure
Api stringVersion - 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
- System
Data Pulumi.Azure Native. Management. Outputs. System Data Response - 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 stringVersion - 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
- System
Data SystemData Response - 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 StringVersion - 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
- system
Data SystemData Response - 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 stringVersion - 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
- system
Data SystemData Response - 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_ strversion - 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 SystemData Response - 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"
- azure
Api StringVersion - 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
- system
Data 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
- Resource
Id string - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- Resource
Id string - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- resource
Id String - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- resource
Id 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'
- resource
Id String - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
ParentServiceGroupPropertiesResponse, ParentServiceGroupPropertiesResponseArgs
- Resource
Id string - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- Resource
Id string - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- resource
Id String - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
- resource
Id 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'
- resource
Id String - The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
ServiceGroupProperties, ServiceGroupPropertiesArgs
- Display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- Parent
Pulumi.
Azure Native. Management. Inputs. Parent Service Group Properties - The details of the parent serviceGroup.
- Display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- Parent
Parent
Service Group Properties - The details of the parent serviceGroup.
- display
Name String - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent
Parent
Service Group Properties - The details of the parent serviceGroup.
- display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent
Parent
Service Group Properties - The details of the parent serviceGroup.
- display_
name str - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent
Parent
Service Group Properties - The details of the parent serviceGroup.
- display
Name String - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent Property Map
- The details of the parent serviceGroup.
ServiceGroupPropertiesResponse, ServiceGroupPropertiesResponseArgs
- Provisioning
State string - The provisioning state of the serviceGroup. For example, Running
- Display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- Parent
Pulumi.
Azure Native. Management. Inputs. Parent Service Group Properties Response - The details of the parent serviceGroup.
- Provisioning
State string - The provisioning state of the serviceGroup. For example, Running
- Display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- Parent
Parent
Service Group Properties Response - The details of the parent serviceGroup.
- provisioning
State String - The provisioning state of the serviceGroup. For example, Running
- display
Name String - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent
Parent
Service Group Properties Response - The details of the parent serviceGroup.
- provisioning
State string - The provisioning state of the serviceGroup. For example, Running
- display
Name string - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent
Parent
Service Group Properties Response - 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
Parent
Service Group Properties Response - The details of the parent serviceGroup.
- provisioning
State String - The provisioning state of the serviceGroup. For example, Running
- display
Name String - The display name of the serviceGroup. For example, ServiceGroupTest1
- parent Property Map
- The details of the parent serviceGroup.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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