1. Packages
  2. Azure Native
  3. API Docs
  4. migrate
  5. Group
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.migrate.Group

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    A group created in a Migration project. Azure REST API version: 2019-10-01. Prior API version in Azure Native 1.x: 2019-10-01.

    Other available API versions: 2018-02-02.

    Example Usage

    Groups_Create

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var @group = new AzureNative.Migrate.Group("group", new()
        {
            ETag = "\"1e000c2c-0000-0d00-0000-5cdaa4190000\"",
            GroupName = "Group2",
            ProjectName = "abgoyalWEselfhostb72bproject",
            Properties = null,
            ResourceGroupName = "abgoyal-westEurope",
        });
    
    });
    
    package main
    
    import (
    	migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := migrate.NewGroup(ctx, "group", &migrate.GroupArgs{
    			ETag:              pulumi.String("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""),
    			GroupName:         pulumi.String("Group2"),
    			ProjectName:       pulumi.String("abgoyalWEselfhostb72bproject"),
    			Properties:        &migrate.GroupPropertiesArgs{},
    			ResourceGroupName: pulumi.String("abgoyal-westEurope"),
    		})
    		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.migrate.Group;
    import com.pulumi.azurenative.migrate.GroupArgs;
    import com.pulumi.azurenative.migrate.inputs.GroupPropertiesArgs;
    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 group = new Group("group", GroupArgs.builder()
                .eTag("\"1e000c2c-0000-0d00-0000-5cdaa4190000\"")
                .groupName("Group2")
                .projectName("abgoyalWEselfhostb72bproject")
                .properties()
                .resourceGroupName("abgoyal-westEurope")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    group = azure_native.migrate.Group("group",
        e_tag="\"1e000c2c-0000-0d00-0000-5cdaa4190000\"",
        group_name="Group2",
        project_name="abgoyalWEselfhostb72bproject",
        properties={},
        resource_group_name="abgoyal-westEurope")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const group = new azure_native.migrate.Group("group", {
        eTag: "\"1e000c2c-0000-0d00-0000-5cdaa4190000\"",
        groupName: "Group2",
        projectName: "abgoyalWEselfhostb72bproject",
        properties: {},
        resourceGroupName: "abgoyal-westEurope",
    });
    
    resources:
      group:
        type: azure-native:migrate:Group
        properties:
          eTag: '"1e000c2c-0000-0d00-0000-5cdaa4190000"'
          groupName: Group2
          projectName: abgoyalWEselfhostb72bproject
          properties: {}
          resourceGroupName: abgoyal-westEurope
    

    Create Group Resource

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

    Constructor syntax

    new Group(name: string, args: GroupArgs, opts?: CustomResourceOptions);
    @overload
    def Group(resource_name: str,
              args: GroupArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Group(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              project_name: Optional[str] = None,
              properties: Optional[GroupPropertiesArgs] = None,
              resource_group_name: Optional[str] = None,
              e_tag: Optional[str] = None,
              group_name: Optional[str] = None)
    func NewGroup(ctx *Context, name string, args GroupArgs, opts ...ResourceOption) (*Group, error)
    public Group(string name, GroupArgs args, CustomResourceOptions? opts = null)
    public Group(String name, GroupArgs args)
    public Group(String name, GroupArgs args, CustomResourceOptions options)
    
    type: azure-native:migrate:Group
    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 GroupArgs
    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 GroupArgs
    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 GroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupArgs
    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 azure_nativeGroupResource = new AzureNative.Migrate.Group("azure-nativeGroupResource", new()
    {
        ProjectName = "string",
        Properties = new AzureNative.Migrate.Inputs.GroupPropertiesArgs
        {
            GroupType = "string",
        },
        ResourceGroupName = "string",
        ETag = "string",
        GroupName = "string",
    });
    
    example, err := migrate.NewGroup(ctx, "azure-nativeGroupResource", &migrate.GroupArgs{
    	ProjectName: pulumi.String("string"),
    	Properties: &migrate.GroupPropertiesArgs{
    		GroupType: pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	ETag:              pulumi.String("string"),
    	GroupName:         pulumi.String("string"),
    })
    
    var azure_nativeGroupResource = new Group("azure-nativeGroupResource", GroupArgs.builder()
        .projectName("string")
        .properties(GroupPropertiesArgs.builder()
            .groupType("string")
            .build())
        .resourceGroupName("string")
        .eTag("string")
        .groupName("string")
        .build());
    
    azure_native_group_resource = azure_native.migrate.Group("azure-nativeGroupResource",
        project_name="string",
        properties={
            "group_type": "string",
        },
        resource_group_name="string",
        e_tag="string",
        group_name="string")
    
    const azure_nativeGroupResource = new azure_native.migrate.Group("azure-nativeGroupResource", {
        projectName: "string",
        properties: {
            groupType: "string",
        },
        resourceGroupName: "string",
        eTag: "string",
        groupName: "string",
    });
    
    type: azure-native:migrate:Group
    properties:
        eTag: string
        groupName: string
        projectName: string
        properties:
            groupType: string
        resourceGroupName: string
    

    Group 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 Group resource accepts the following input properties:

    ProjectName string
    Name of the Azure Migrate project.
    Properties Pulumi.AzureNative.Migrate.Inputs.GroupProperties
    Properties of the group.
    ResourceGroupName string
    Name of the Azure Resource Group that project is part of.
    ETag string
    For optimistic concurrency control.
    GroupName string
    Unique name of a group within a project.
    ProjectName string
    Name of the Azure Migrate project.
    Properties GroupPropertiesArgs
    Properties of the group.
    ResourceGroupName string
    Name of the Azure Resource Group that project is part of.
    ETag string
    For optimistic concurrency control.
    GroupName string
    Unique name of a group within a project.
    projectName String
    Name of the Azure Migrate project.
    properties GroupProperties
    Properties of the group.
    resourceGroupName String
    Name of the Azure Resource Group that project is part of.
    eTag String
    For optimistic concurrency control.
    groupName String
    Unique name of a group within a project.
    projectName string
    Name of the Azure Migrate project.
    properties GroupProperties
    Properties of the group.
    resourceGroupName string
    Name of the Azure Resource Group that project is part of.
    eTag string
    For optimistic concurrency control.
    groupName string
    Unique name of a group within a project.
    project_name str
    Name of the Azure Migrate project.
    properties GroupPropertiesArgs
    Properties of the group.
    resource_group_name str
    Name of the Azure Resource Group that project is part of.
    e_tag str
    For optimistic concurrency control.
    group_name str
    Unique name of a group within a project.
    projectName String
    Name of the Azure Migrate project.
    properties Property Map
    Properties of the group.
    resourceGroupName String
    Name of the Azure Resource Group that project is part of.
    eTag String
    For optimistic concurrency control.
    groupName String
    Unique name of a group within a project.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the group.
    Type string
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the group.
    Type string
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the group.
    type String
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the group.
    type string
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the group.
    type str
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the group.
    type String
    Type of the object = [Microsoft.Migrate/assessmentProjects/groups].

    Supporting Types

    GroupProperties, GroupPropertiesArgs

    GroupType string
    The type of group.
    GroupType string
    The type of group.
    groupType String
    The type of group.
    groupType string
    The type of group.
    group_type str
    The type of group.
    groupType String
    The type of group.

    GroupPropertiesResponse, GroupPropertiesResponseArgs

    AreAssessmentsRunning bool
    If the assessments are in running state.
    Assessments List<string>
    List of References to Assessments created on this group.
    CreatedTimestamp string
    Time when this group was created. Date-Time represented in ISO-8601 format.
    GroupStatus string
    Whether the group has been created and is valid.
    MachineCount int
    Number of machines part of this group.
    UpdatedTimestamp string
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    GroupType string
    The type of group.
    AreAssessmentsRunning bool
    If the assessments are in running state.
    Assessments []string
    List of References to Assessments created on this group.
    CreatedTimestamp string
    Time when this group was created. Date-Time represented in ISO-8601 format.
    GroupStatus string
    Whether the group has been created and is valid.
    MachineCount int
    Number of machines part of this group.
    UpdatedTimestamp string
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    GroupType string
    The type of group.
    areAssessmentsRunning Boolean
    If the assessments are in running state.
    assessments List<String>
    List of References to Assessments created on this group.
    createdTimestamp String
    Time when this group was created. Date-Time represented in ISO-8601 format.
    groupStatus String
    Whether the group has been created and is valid.
    machineCount Integer
    Number of machines part of this group.
    updatedTimestamp String
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    groupType String
    The type of group.
    areAssessmentsRunning boolean
    If the assessments are in running state.
    assessments string[]
    List of References to Assessments created on this group.
    createdTimestamp string
    Time when this group was created. Date-Time represented in ISO-8601 format.
    groupStatus string
    Whether the group has been created and is valid.
    machineCount number
    Number of machines part of this group.
    updatedTimestamp string
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    groupType string
    The type of group.
    are_assessments_running bool
    If the assessments are in running state.
    assessments Sequence[str]
    List of References to Assessments created on this group.
    created_timestamp str
    Time when this group was created. Date-Time represented in ISO-8601 format.
    group_status str
    Whether the group has been created and is valid.
    machine_count int
    Number of machines part of this group.
    updated_timestamp str
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    group_type str
    The type of group.
    areAssessmentsRunning Boolean
    If the assessments are in running state.
    assessments List<String>
    List of References to Assessments created on this group.
    createdTimestamp String
    Time when this group was created. Date-Time represented in ISO-8601 format.
    groupStatus String
    Whether the group has been created and is valid.
    machineCount Number
    Number of machines part of this group.
    updatedTimestamp String
    Time when this group was last updated. Date-Time represented in ISO-8601 format.
    groupType String
    The type of group.

    Import

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

    $ pulumi import azure-native:migrate:Group Group2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName} 
    

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi