1. Packages
  2. Azure Native v2
  3. API Docs
  4. migrate
  5. ImportCollector
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.migrate.ImportCollector

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Azure REST API version: 2019-10-01. Prior API version in Azure Native 1.x: 2019-10-01.

Example Usage

ImportCollectors_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var importCollector = new AzureNative.Migrate.ImportCollector("importCollector", new()
    {
        ImportCollectorName = "importCollector2952",
        ProjectName = "rajoshCCY9671project",
        ResourceGroupName = "markusavstestrg",
    });

});
Copy
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.NewImportCollector(ctx, "importCollector", &migrate.ImportCollectorArgs{
			ImportCollectorName: pulumi.String("importCollector2952"),
			ProjectName:         pulumi.String("rajoshCCY9671project"),
			ResourceGroupName:   pulumi.String("markusavstestrg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.migrate.ImportCollector;
import com.pulumi.azurenative.migrate.ImportCollectorArgs;
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 importCollector = new ImportCollector("importCollector", ImportCollectorArgs.builder()
            .importCollectorName("importCollector2952")
            .projectName("rajoshCCY9671project")
            .resourceGroupName("markusavstestrg")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const importCollector = new azure_native.migrate.ImportCollector("importCollector", {
    importCollectorName: "importCollector2952",
    projectName: "rajoshCCY9671project",
    resourceGroupName: "markusavstestrg",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

import_collector = azure_native.migrate.ImportCollector("importCollector",
    import_collector_name="importCollector2952",
    project_name="rajoshCCY9671project",
    resource_group_name="markusavstestrg")
Copy
resources:
  importCollector:
    type: azure-native:migrate:ImportCollector
    properties:
      importCollectorName: importCollector2952
      projectName: rajoshCCY9671project
      resourceGroupName: markusavstestrg
Copy

Create ImportCollector Resource

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

Constructor syntax

new ImportCollector(name: string, args: ImportCollectorArgs, opts?: CustomResourceOptions);
@overload
def ImportCollector(resource_name: str,
                    args: ImportCollectorArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def ImportCollector(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    project_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    e_tag: Optional[str] = None,
                    import_collector_name: Optional[str] = None,
                    properties: Optional[ImportCollectorPropertiesArgs] = None)
func NewImportCollector(ctx *Context, name string, args ImportCollectorArgs, opts ...ResourceOption) (*ImportCollector, error)
public ImportCollector(string name, ImportCollectorArgs args, CustomResourceOptions? opts = null)
public ImportCollector(String name, ImportCollectorArgs args)
public ImportCollector(String name, ImportCollectorArgs args, CustomResourceOptions options)
type: azure-native:migrate:ImportCollector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ImportCollectorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ImportCollectorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ImportCollectorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ImportCollectorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ImportCollectorArgs
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 importCollectorResource = new AzureNative.Migrate.ImportCollector("importCollectorResource", new()
{
    ProjectName = "string",
    ResourceGroupName = "string",
    ETag = "string",
    ImportCollectorName = "string",
    Properties = 
    {
        { "discoverySiteId", "string" },
    },
});
Copy
example, err := migrate.NewImportCollector(ctx, "importCollectorResource", &migrate.ImportCollectorArgs{
	ProjectName:         "string",
	ResourceGroupName:   "string",
	ETag:                "string",
	ImportCollectorName: "string",
	Properties: map[string]interface{}{
		"discoverySiteId": "string",
	},
})
Copy
var importCollectorResource = new ImportCollector("importCollectorResource", ImportCollectorArgs.builder()
    .projectName("string")
    .resourceGroupName("string")
    .eTag("string")
    .importCollectorName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
import_collector_resource = azure_native.migrate.ImportCollector("importCollectorResource",
    project_name=string,
    resource_group_name=string,
    e_tag=string,
    import_collector_name=string,
    properties={
        discoverySiteId: string,
    })
Copy
const importCollectorResource = new azure_native.migrate.ImportCollector("importCollectorResource", {
    projectName: "string",
    resourceGroupName: "string",
    eTag: "string",
    importCollectorName: "string",
    properties: {
        discoverySiteId: "string",
    },
});
Copy
type: azure-native:migrate:ImportCollector
properties:
    eTag: string
    importCollectorName: string
    projectName: string
    properties:
        discoverySiteId: string
    resourceGroupName: string
Copy

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

ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
ETag string
ImportCollectorName Changes to this property will trigger replacement. string
Unique name of a Import collector within a project.
Properties Pulumi.AzureNative.Migrate.Inputs.ImportCollectorProperties
ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
ETag string
ImportCollectorName Changes to this property will trigger replacement. string
Unique name of a Import collector within a project.
Properties ImportCollectorPropertiesArgs
projectName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Resource Group that project is part of.
eTag String
importCollectorName Changes to this property will trigger replacement. String
Unique name of a Import collector within a project.
properties ImportCollectorProperties
projectName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Resource Group that project is part of.
eTag string
importCollectorName Changes to this property will trigger replacement. string
Unique name of a Import collector within a project.
properties ImportCollectorProperties
project_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Migrate project.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Resource Group that project is part of.
e_tag str
import_collector_name Changes to this property will trigger replacement. str
Unique name of a Import collector within a project.
properties ImportCollectorPropertiesArgs
projectName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Migrate project.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Resource Group that project is part of.
eTag String
importCollectorName Changes to this property will trigger replacement. String
Unique name of a Import collector within a project.
properties Property Map

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
Type string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Type string
id String
The provider-assigned unique ID for this managed resource.
name String
type String
id string
The provider-assigned unique ID for this managed resource.
name string
type string
id str
The provider-assigned unique ID for this managed resource.
name str
type str
id String
The provider-assigned unique ID for this managed resource.
name String
type String

Supporting Types

ImportCollectorProperties
, ImportCollectorPropertiesArgs

ImportCollectorPropertiesResponse
, ImportCollectorPropertiesResponseArgs

CreatedTimestamp This property is required. string
UpdatedTimestamp This property is required. string
DiscoverySiteId string
CreatedTimestamp This property is required. string
UpdatedTimestamp This property is required. string
DiscoverySiteId string
createdTimestamp This property is required. String
updatedTimestamp This property is required. String
discoverySiteId String
createdTimestamp This property is required. string
updatedTimestamp This property is required. string
discoverySiteId string
created_timestamp This property is required. str
updated_timestamp This property is required. str
discovery_site_id str
createdTimestamp This property is required. String
updatedTimestamp This property is required. String
discoverySiteId String

Import

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

$ pulumi import azure-native:migrate:ImportCollector importCollector2952 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors/{importCollectorName} 
Copy

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi