azure-native.migrate.Group
Explore with Pulumi AI
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: nil,
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=azure_native.migrate.GroupPropertiesArgs(),
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)
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=azure_native.migrate.GroupPropertiesArgs(
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
The Group resource accepts the following input properties:
- Project
Name string - Name of the Azure Migrate project.
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Group Properties - Properties of the group.
- Resource
Group stringName - Name of the Azure Resource Group that project is part of.
- ETag string
- For optimistic concurrency control.
- Group
Name string - Unique name of a group within a project.
- Project
Name string - Name of the Azure Migrate project.
- Properties
Group
Properties Args - Properties of the group.
- Resource
Group stringName - Name of the Azure Resource Group that project is part of.
- ETag string
- For optimistic concurrency control.
- Group
Name string - Unique name of a group within a project.
- project
Name String - Name of the Azure Migrate project.
- properties
Group
Properties - Properties of the group.
- resource
Group StringName - Name of the Azure Resource Group that project is part of.
- e
Tag String - For optimistic concurrency control.
- group
Name String - Unique name of a group within a project.
- project
Name string - Name of the Azure Migrate project.
- properties
Group
Properties - Properties of the group.
- resource
Group stringName - Name of the Azure Resource Group that project is part of.
- e
Tag string - For optimistic concurrency control.
- group
Name string - Unique name of a group within a project.
- project_
name str - Name of the Azure Migrate project.
- properties
Group
Properties Args - Properties of the group.
- resource_
group_ strname - 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.
- project
Name String - Name of the Azure Migrate project.
- properties Property Map
- Properties of the group.
- resource
Group StringName - Name of the Azure Resource Group that project is part of.
- e
Tag String - For optimistic concurrency control.
- group
Name 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:
Supporting Types
GroupProperties, GroupPropertiesArgs
- Group
Type string - The type of group.
- Group
Type string - The type of group.
- group
Type String - The type of group.
- group
Type string - The type of group.
- group_
type str - The type of group.
- group
Type String - The type of group.
GroupPropertiesResponse, GroupPropertiesResponseArgs
- Are
Assessments boolRunning - If the assessments are in running state.
- Assessments List<string>
- List of References to Assessments created on this group.
- Created
Timestamp string - Time when this group was created. Date-Time represented in ISO-8601 format.
- Group
Status string - Whether the group has been created and is valid.
- Machine
Count int - Number of machines part of this group.
- Updated
Timestamp string - Time when this group was last updated. Date-Time represented in ISO-8601 format.
- Group
Type string - The type of group.
- Are
Assessments boolRunning - If the assessments are in running state.
- Assessments []string
- List of References to Assessments created on this group.
- Created
Timestamp string - Time when this group was created. Date-Time represented in ISO-8601 format.
- Group
Status string - Whether the group has been created and is valid.
- Machine
Count int - Number of machines part of this group.
- Updated
Timestamp string - Time when this group was last updated. Date-Time represented in ISO-8601 format.
- Group
Type string - The type of group.
- are
Assessments BooleanRunning - If the assessments are in running state.
- assessments List<String>
- List of References to Assessments created on this group.
- created
Timestamp String - Time when this group was created. Date-Time represented in ISO-8601 format.
- group
Status String - Whether the group has been created and is valid.
- machine
Count Integer - Number of machines part of this group.
- updated
Timestamp String - Time when this group was last updated. Date-Time represented in ISO-8601 format.
- group
Type String - The type of group.
- are
Assessments booleanRunning - If the assessments are in running state.
- assessments string[]
- List of References to Assessments created on this group.
- created
Timestamp string - Time when this group was created. Date-Time represented in ISO-8601 format.
- group
Status string - Whether the group has been created and is valid.
- machine
Count number - Number of machines part of this group.
- updated
Timestamp string - Time when this group was last updated. Date-Time represented in ISO-8601 format.
- group
Type string - The type of group.
- are_
assessments_ boolrunning - 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.
- are
Assessments BooleanRunning - If the assessments are in running state.
- assessments List<String>
- List of References to Assessments created on this group.
- created
Timestamp String - Time when this group was created. Date-Time represented in ISO-8601 format.
- group
Status String - Whether the group has been created and is valid.
- machine
Count Number - Number of machines part of this group.
- updated
Timestamp String - Time when this group was last updated. Date-Time represented in ISO-8601 format.
- group
Type 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