1. Packages
  2. Azure Native
  3. API Docs
  4. migrate
  5. ImportSqlCollectorOperation
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.migrate.ImportSqlCollectorOperation

Explore with Pulumi AI

Import SQL Collector REST resource.

Uses Azure REST API version 2024-03-03-preview.

Example Usage

ImportSqlCollectorOperations_Create_MaximumSet

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

return await Deployment.RunAsync(() => 
{
    var importSqlCollectorOperation = new AzureNative.Migrate.ImportSqlCollectorOperation("importSqlCollectorOperation", new()
    {
        ImportSqlCollectorsName = "importCollector",
        ProjectName = "contosoProject",
        Properties = new AzureNative.Migrate.Inputs.ImportSqlCollectorPropertiesArgs
        {
            DiscoverySiteId = "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
        },
        ResourceGroupName = "rgsqlAssessments",
    });

});
Copy
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.NewImportSqlCollectorOperation(ctx, "importSqlCollectorOperation", &migrate.ImportSqlCollectorOperationArgs{
			ImportSqlCollectorsName: pulumi.String("importCollector"),
			ProjectName:             pulumi.String("contosoProject"),
			Properties: &migrate.ImportSqlCollectorPropertiesArgs{
				DiscoverySiteId: pulumi.String("/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites"),
			},
			ResourceGroupName: pulumi.String("rgsqlAssessments"),
		})
		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.ImportSqlCollectorOperation;
import com.pulumi.azurenative.migrate.ImportSqlCollectorOperationArgs;
import com.pulumi.azurenative.migrate.inputs.ImportSqlCollectorPropertiesArgs;
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 importSqlCollectorOperation = new ImportSqlCollectorOperation("importSqlCollectorOperation", ImportSqlCollectorOperationArgs.builder()
            .importSqlCollectorsName("importCollector")
            .projectName("contosoProject")
            .properties(ImportSqlCollectorPropertiesArgs.builder()
                .discoverySiteId("/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites")
                .build())
            .resourceGroupName("rgsqlAssessments")
            .build());

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

const importSqlCollectorOperation = new azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperation", {
    importSqlCollectorsName: "importCollector",
    projectName: "contosoProject",
    properties: {
        discoverySiteId: "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
    },
    resourceGroupName: "rgsqlAssessments",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

import_sql_collector_operation = azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperation",
    import_sql_collectors_name="importCollector",
    project_name="contosoProject",
    properties={
        "discovery_site_id": "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
    },
    resource_group_name="rgsqlAssessments")
Copy
resources:
  importSqlCollectorOperation:
    type: azure-native:migrate:ImportSqlCollectorOperation
    properties:
      importSqlCollectorsName: importCollector
      projectName: contosoProject
      properties:
        discoverySiteId: /subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites
      resourceGroupName: rgsqlAssessments
Copy

Create ImportSqlCollectorOperation Resource

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

Constructor syntax

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

@overload
def ImportSqlCollectorOperation(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                project_name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                import_sql_collectors_name: Optional[str] = None,
                                properties: Optional[ImportSqlCollectorPropertiesArgs] = None)
func NewImportSqlCollectorOperation(ctx *Context, name string, args ImportSqlCollectorOperationArgs, opts ...ResourceOption) (*ImportSqlCollectorOperation, error)
public ImportSqlCollectorOperation(string name, ImportSqlCollectorOperationArgs args, CustomResourceOptions? opts = null)
public ImportSqlCollectorOperation(String name, ImportSqlCollectorOperationArgs args)
public ImportSqlCollectorOperation(String name, ImportSqlCollectorOperationArgs args, CustomResourceOptions options)
type: azure-native:migrate:ImportSqlCollectorOperation
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. ImportSqlCollectorOperationArgs
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. ImportSqlCollectorOperationArgs
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. ImportSqlCollectorOperationArgs
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. ImportSqlCollectorOperationArgs
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. ImportSqlCollectorOperationArgs
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 importSqlCollectorOperationResource = new AzureNative.Migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource", new()
{
    ProjectName = "string",
    ResourceGroupName = "string",
    ImportSqlCollectorsName = "string",
    Properties = new AzureNative.Migrate.Inputs.ImportSqlCollectorPropertiesArgs
    {
        DiscoverySiteId = "string",
    },
});
Copy
example, err := migrate.NewImportSqlCollectorOperation(ctx, "importSqlCollectorOperationResource", &migrate.ImportSqlCollectorOperationArgs{
	ProjectName:             pulumi.String("string"),
	ResourceGroupName:       pulumi.String("string"),
	ImportSqlCollectorsName: pulumi.String("string"),
	Properties: &migrate.ImportSqlCollectorPropertiesArgs{
		DiscoverySiteId: pulumi.String("string"),
	},
})
Copy
var importSqlCollectorOperationResource = new ImportSqlCollectorOperation("importSqlCollectorOperationResource", ImportSqlCollectorOperationArgs.builder()
    .projectName("string")
    .resourceGroupName("string")
    .importSqlCollectorsName("string")
    .properties(ImportSqlCollectorPropertiesArgs.builder()
        .discoverySiteId("string")
        .build())
    .build());
Copy
import_sql_collector_operation_resource = azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource",
    project_name="string",
    resource_group_name="string",
    import_sql_collectors_name="string",
    properties={
        "discovery_site_id": "string",
    })
Copy
const importSqlCollectorOperationResource = new azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource", {
    projectName: "string",
    resourceGroupName: "string",
    importSqlCollectorsName: "string",
    properties: {
        discoverySiteId: "string",
    },
});
Copy
type: azure-native:migrate:ImportSqlCollectorOperation
properties:
    importSqlCollectorsName: string
    projectName: string
    properties:
        discoverySiteId: string
    resourceGroupName: string
Copy

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

ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Assessment Project Name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ImportSqlCollectorsName Changes to this property will trigger replacement. string
Import SQL Collector arm name.
Properties Pulumi.AzureNative.Migrate.Inputs.ImportSqlCollectorProperties
The resource-specific properties for this resource.
ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Assessment Project Name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ImportSqlCollectorsName Changes to this property will trigger replacement. string
Import SQL Collector arm name.
Properties ImportSqlCollectorPropertiesArgs
The resource-specific properties for this resource.
projectName
This property is required.
Changes to this property will trigger replacement.
String
Assessment Project Name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
importSqlCollectorsName Changes to this property will trigger replacement. String
Import SQL Collector arm name.
properties ImportSqlCollectorProperties
The resource-specific properties for this resource.
projectName
This property is required.
Changes to this property will trigger replacement.
string
Assessment Project Name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
importSqlCollectorsName Changes to this property will trigger replacement. string
Import SQL Collector arm name.
properties ImportSqlCollectorProperties
The resource-specific properties for this resource.
project_name
This property is required.
Changes to this property will trigger replacement.
str
Assessment Project Name
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
import_sql_collectors_name Changes to this property will trigger replacement. str
Import SQL Collector arm name.
properties ImportSqlCollectorPropertiesArgs
The resource-specific properties for this resource.
projectName
This property is required.
Changes to this property will trigger replacement.
String
Assessment Project Name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
importSqlCollectorsName Changes to this property will trigger replacement. String
Import SQL Collector arm name.
properties Property Map
The resource-specific properties for this resource.

Outputs

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

AzureApiVersion string
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
SystemData Pulumi.AzureNative.Migrate.Outputs.SystemDataResponse
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"
AzureApiVersion string
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
SystemData SystemDataResponse
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"
azureApiVersion String
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
systemData SystemDataResponse
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"
azureApiVersion string
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
systemData SystemDataResponse
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_version str
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 SystemDataResponse
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"
azureApiVersion String
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
systemData 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

ImportSqlCollectorProperties
, ImportSqlCollectorPropertiesArgs

DiscoverySiteId string
The sql db extended details.
DiscoverySiteId string
The sql db extended details.
discoverySiteId String
The sql db extended details.
discoverySiteId string
The sql db extended details.
discovery_site_id str
The sql db extended details.
discoverySiteId String
The sql db extended details.

ImportSqlCollectorPropertiesResponse
, ImportSqlCollectorPropertiesResponseArgs

CreatedTimestamp This property is required. string
When was import SQL collector first created.
ProvisioningState This property is required. string
The status of the last operation.
UpdatedTimestamp This property is required. string
When was import SQL collector last updated.
DiscoverySiteId string
The sql db extended details.
CreatedTimestamp This property is required. string
When was import SQL collector first created.
ProvisioningState This property is required. string
The status of the last operation.
UpdatedTimestamp This property is required. string
When was import SQL collector last updated.
DiscoverySiteId string
The sql db extended details.
createdTimestamp This property is required. String
When was import SQL collector first created.
provisioningState This property is required. String
The status of the last operation.
updatedTimestamp This property is required. String
When was import SQL collector last updated.
discoverySiteId String
The sql db extended details.
createdTimestamp This property is required. string
When was import SQL collector first created.
provisioningState This property is required. string
The status of the last operation.
updatedTimestamp This property is required. string
When was import SQL collector last updated.
discoverySiteId string
The sql db extended details.
created_timestamp This property is required. str
When was import SQL collector first created.
provisioning_state This property is required. str
The status of the last operation.
updated_timestamp This property is required. str
When was import SQL collector last updated.
discovery_site_id str
The sql db extended details.
createdTimestamp This property is required. String
When was import SQL collector first created.
provisioningState This property is required. String
The status of the last operation.
updatedTimestamp This property is required. String
When was import SQL collector last updated.
discoverySiteId String
The sql db extended details.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
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:migrate:ImportSqlCollectorOperation importCollector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importSqlCollectors/{importSqlCollectorsName} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0