Tasks resource.
Uses Azure REST API version 2025-03-30-preview.
Example Usage
Tasks_Create_MaximumSet - generated by [MaximumSet] rule - generated by [MaximumSet] rule - generated by [MaximumSet] rule - generated by [MaximumSet] rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var task = new AzureNative.Migrate.Task("task", new()
{
ProjectName = "myProjectName",
Properties = new AzureNative.Migrate.Inputs.TaskPropertiesArgs
{
Description = "lzhl",
DisplayName = "hhbrpibobilcoypvyiofvr",
Scope = AzureNative.Migrate.TaskScope.Wave,
ScopeId = "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave",
Stage = "klaemxmckhvyoooxyauqglexjna",
Status = "Pending",
},
ResourceGroupName = "rgwaves",
TaskName = "myTaskName",
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewTask(ctx, "task", &migrate.TaskArgs{
ProjectName: pulumi.String("myProjectName"),
Properties: &migrate.TaskPropertiesArgs{
Description: pulumi.String("lzhl"),
DisplayName: pulumi.String("hhbrpibobilcoypvyiofvr"),
Scope: pulumi.String(migrate.TaskScopeWave),
ScopeId: pulumi.String("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave"),
Stage: pulumi.String("klaemxmckhvyoooxyauqglexjna"),
Status: pulumi.String("Pending"),
},
ResourceGroupName: pulumi.String("rgwaves"),
TaskName: pulumi.String("myTaskName"),
})
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.Task;
import com.pulumi.azurenative.migrate.TaskArgs;
import com.pulumi.azurenative.migrate.inputs.TaskPropertiesArgs;
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 task = new Task("task", TaskArgs.builder()
.projectName("myProjectName")
.properties(TaskPropertiesArgs.builder()
.description("lzhl")
.displayName("hhbrpibobilcoypvyiofvr")
.scope("Wave")
.scopeId("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave")
.stage("klaemxmckhvyoooxyauqglexjna")
.status("Pending")
.build())
.resourceGroupName("rgwaves")
.taskName("myTaskName")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const task = new azure_native.migrate.Task("task", {
projectName: "myProjectName",
properties: {
description: "lzhl",
displayName: "hhbrpibobilcoypvyiofvr",
scope: azure_native.migrate.TaskScope.Wave,
scopeId: "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave",
stage: "klaemxmckhvyoooxyauqglexjna",
status: "Pending",
},
resourceGroupName: "rgwaves",
taskName: "myTaskName",
});
import pulumi
import pulumi_azure_native as azure_native
task = azure_native.migrate.Task("task",
project_name="myProjectName",
properties={
"description": "lzhl",
"display_name": "hhbrpibobilcoypvyiofvr",
"scope": azure_native.migrate.TaskScope.WAVE,
"scope_id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave",
"stage": "klaemxmckhvyoooxyauqglexjna",
"status": "Pending",
},
resource_group_name="rgwaves",
task_name="myTaskName")
resources:
task:
type: azure-native:migrate:Task
properties:
projectName: myProjectName
properties:
description: lzhl
displayName: hhbrpibobilcoypvyiofvr
scope: Wave
scopeId: /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/MyResourceGroup/providers/Microsoft.Migrate/migrateProjects/MyMigrateProject/waves/myWave
stage: klaemxmckhvyoooxyauqglexjna
status: Pending
resourceGroupName: rgwaves
taskName: myTaskName
Create Task Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Task(name: string, args: TaskArgs, opts?: CustomResourceOptions);@overload
def Task(resource_name: str,
args: TaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Task(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
properties: Optional[TaskPropertiesArgs] = None,
task_name: Optional[str] = None)func NewTask(ctx *Context, name string, args TaskArgs, opts ...ResourceOption) (*Task, error)public Task(string name, TaskArgs args, CustomResourceOptions? opts = null)type: azure-native:migrate:Task
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 TaskArgs
- 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 TaskArgs
- 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 TaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaskArgs
- 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 exampletaskResourceResourceFromMigrate = new AzureNative.Migrate.Task("exampletaskResourceResourceFromMigrate", new()
{
ProjectName = "string",
ResourceGroupName = "string",
Properties = new AzureNative.Migrate.Inputs.TaskPropertiesArgs
{
DisplayName = "string",
Scope = "string",
ScopeId = "string",
Status = "string",
Description = "string",
Stage = "string",
},
TaskName = "string",
});
example, err := migrate.NewTask(ctx, "exampletaskResourceResourceFromMigrate", &migrate.TaskArgs{
ProjectName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Properties: &migrate.TaskPropertiesArgs{
DisplayName: pulumi.String("string"),
Scope: pulumi.String("string"),
ScopeId: pulumi.String("string"),
Status: pulumi.String("string"),
Description: pulumi.String("string"),
Stage: pulumi.String("string"),
},
TaskName: pulumi.String("string"),
})
var exampletaskResourceResourceFromMigrate = new com.pulumi.azurenative.migrate.Task("exampletaskResourceResourceFromMigrate", com.pulumi.azurenative.migrate.TaskArgs.builder()
.projectName("string")
.resourceGroupName("string")
.properties(TaskPropertiesArgs.builder()
.displayName("string")
.scope("string")
.scopeId("string")
.status("string")
.description("string")
.stage("string")
.build())
.taskName("string")
.build());
exampletask_resource_resource_from_migrate = azure_native.migrate.Task("exampletaskResourceResourceFromMigrate",
project_name="string",
resource_group_name="string",
properties={
"display_name": "string",
"scope": "string",
"scope_id": "string",
"status": "string",
"description": "string",
"stage": "string",
},
task_name="string")
const exampletaskResourceResourceFromMigrate = new azure_native.migrate.Task("exampletaskResourceResourceFromMigrate", {
projectName: "string",
resourceGroupName: "string",
properties: {
displayName: "string",
scope: "string",
scopeId: "string",
status: "string",
description: "string",
stage: "string",
},
taskName: "string",
});
type: azure-native:migrate:Task
properties:
projectName: string
properties:
description: string
displayName: string
scope: string
scopeId: string
stage: string
status: string
resourceGroupName: string
taskName: string
Task 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 Task resource accepts the following input properties:
- Project
Name string - Migrate Project Name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Task Properties - The resource-specific properties for this resource.
- Task
Name string - Task ARM name
- Project
Name string - Migrate Project Name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Properties
Task
Properties Args - The resource-specific properties for this resource.
- Task
Name string - Task ARM name
- project
Name String - Migrate Project Name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- properties
Task
Properties - The resource-specific properties for this resource.
- task
Name String - Task ARM name
- project
Name string - Migrate Project Name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- properties
Task
Properties - The resource-specific properties for this resource.
- task
Name string - Task ARM name
- project_
name str - Migrate Project Name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- properties
Task
Properties Args - The resource-specific properties for this resource.
- task_
name str - Task ARM name
- project
Name String - Migrate Project Name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- properties Property Map
- The resource-specific properties for this resource.
- task
Name String - Task ARM name
Outputs
All input properties are implicitly available as output properties. Additionally, the Task resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- ETag string
- If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Migrate. 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.
- ETag string
- If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- 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.
- e
Tag String - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- 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.
- e
Tag string - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- 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.
- e_
tag str - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- 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.
- e
Tag String - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- 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
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of 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 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.
TaskProperties, TaskPropertiesArgs
Task Properties class.- Display
Name string - Task Dislay Name
- Scope
string | Pulumi.
Azure Native. Migrate. Task Scope - Task Scope
- Scope
Id string - associated Wave Id
- Status string
- Task Status
- Description string
- Task Description
- Stage string
- Task Stage
- Display
Name string - Task Dislay Name
- Scope
string | Task
Scope - Task Scope
- Scope
Id string - associated Wave Id
- Status string
- Task Status
- Description string
- Task Description
- Stage string
- Task Stage
- display
Name String - Task Dislay Name
- scope
String | Task
Scope - Task Scope
- scope
Id String - associated Wave Id
- status String
- Task Status
- description String
- Task Description
- stage String
- Task Stage
- display
Name string - Task Dislay Name
- scope
string | Task
Scope - Task Scope
- scope
Id string - associated Wave Id
- status string
- Task Status
- description string
- Task Description
- stage string
- Task Stage
- display_
name str - Task Dislay Name
- scope
str | Task
Scope - Task Scope
- scope_
id str - associated Wave Id
- status str
- Task Status
- description str
- Task Description
- stage str
- Task Stage
- display
Name String - Task Dislay Name
- scope
String | "Wave" | "Migration
Entity" | "Migration Entity Group" - Task Scope
- scope
Id String - associated Wave Id
- status String
- Task Status
- description String
- Task Description
- stage String
- Task Stage
TaskPropertiesResponse, TaskPropertiesResponseArgs
Task Properties class.- Completion
Date string - Task completion Date
- Display
Name string - Task Dislay Name
- Is
Editable bool - Indicates whether the task is editable.
- Provisioning
State string - The status of the last operation.
- Scope string
- Task Scope
- Scope
Id string - associated Wave Id
- Status string
- Task Status
- Task
Type string - Task Type
- Description string
- Task Description
- Stage string
- Task Stage
- Completion
Date string - Task completion Date
- Display
Name string - Task Dislay Name
- Is
Editable bool - Indicates whether the task is editable.
- Provisioning
State string - The status of the last operation.
- Scope string
- Task Scope
- Scope
Id string - associated Wave Id
- Status string
- Task Status
- Task
Type string - Task Type
- Description string
- Task Description
- Stage string
- Task Stage
- completion
Date String - Task completion Date
- display
Name String - Task Dislay Name
- is
Editable Boolean - Indicates whether the task is editable.
- provisioning
State String - The status of the last operation.
- scope String
- Task Scope
- scope
Id String - associated Wave Id
- status String
- Task Status
- task
Type String - Task Type
- description String
- Task Description
- stage String
- Task Stage
- completion
Date string - Task completion Date
- display
Name string - Task Dislay Name
- is
Editable boolean - Indicates whether the task is editable.
- provisioning
State string - The status of the last operation.
- scope string
- Task Scope
- scope
Id string - associated Wave Id
- status string
- Task Status
- task
Type string - Task Type
- description string
- Task Description
- stage string
- Task Stage
- completion_
date str - Task completion Date
- display_
name str - Task Dislay Name
- is_
editable bool - Indicates whether the task is editable.
- provisioning_
state str - The status of the last operation.
- scope str
- Task Scope
- scope_
id str - associated Wave Id
- status str
- Task Status
- task_
type str - Task Type
- description str
- Task Description
- stage str
- Task Stage
- completion
Date String - Task completion Date
- display
Name String - Task Dislay Name
- is
Editable Boolean - Indicates whether the task is editable.
- provisioning
State String - The status of the last operation.
- scope String
- Task Scope
- scope
Id String - associated Wave Id
- status String
- Task Status
- task
Type String - Task Type
- description String
- Task Description
- stage String
- Task Stage
TaskScope, TaskScopeArgs
- Wave
WaveWave task - typically related to a specific wave of migration- Migration
Entity MigrationEntityMigration Entity task - typically related to a specific migration entity- Migration
Entity Group MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
- Task
Scope Wave WaveWave task - typically related to a specific wave of migration- Task
Scope Migration Entity MigrationEntityMigration Entity task - typically related to a specific migration entity- Task
Scope Migration Entity Group MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
- Wave
WaveWave task - typically related to a specific wave of migration- Migration
Entity MigrationEntityMigration Entity task - typically related to a specific migration entity- Migration
Entity Group MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
- Wave
WaveWave task - typically related to a specific wave of migration- Migration
Entity MigrationEntityMigration Entity task - typically related to a specific migration entity- Migration
Entity Group MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
- WAVE
WaveWave task - typically related to a specific wave of migration- MIGRATION_ENTITY
MigrationEntityMigration Entity task - typically related to a specific migration entity- MIGRATION_ENTITY_GROUP
MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
- "Wave"
WaveWave task - typically related to a specific wave of migration- "Migration
Entity" MigrationEntityMigration Entity task - typically related to a specific migration entity- "Migration
Entity Group" MigrationEntityGroupMigration Entity Group task - typically related to a specific migration entity group
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:migrate:Task ejdnhrqdoevhryqij /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{projectName}/tasks/{taskName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
