1. Packages
  2. Azure Native
  3. API Docs
  4. offazure
  5. ImportSitesController
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.offazure.ImportSitesController

Explore with Pulumi AI

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

A ImportSite

Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-06.

Other available API versions: 2023-06-06, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native offazure [ApiVersion]. See the version guide for details.

Example Usage

ImportSitesController_Create_MaximumSet_Gen

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

return await Deployment.RunAsync(() => 
{
    var importSitesController = new AzureNative.OffAzure.ImportSitesController("importSitesController", new()
    {
        DiscoverySolutionId = "cgwjekybxrlaunxf",
        Location = "adfizitxdfwwrkgywpqqupuhkvwie",
        ProvisioningState = AzureNative.OffAzure.ProvisioningState.Created,
        ResourceGroupName = "rgmigrate",
        SiteName = "44GV2SnONP-cPFOQ18Zmn",
        Tags = 
        {
            { "key592", "pj" },
        },
    });

});
Copy
package main

import (
	offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := offazure.NewImportSitesController(ctx, "importSitesController", &offazure.ImportSitesControllerArgs{
			DiscoverySolutionId: pulumi.String("cgwjekybxrlaunxf"),
			Location:            pulumi.String("adfizitxdfwwrkgywpqqupuhkvwie"),
			ProvisioningState:   pulumi.String(offazure.ProvisioningStateCreated),
			ResourceGroupName:   pulumi.String("rgmigrate"),
			SiteName:            pulumi.String("44GV2SnONP-cPFOQ18Zmn"),
			Tags: pulumi.StringMap{
				"key592": pulumi.String("pj"),
			},
		})
		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.offazure.ImportSitesController;
import com.pulumi.azurenative.offazure.ImportSitesControllerArgs;
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 importSitesController = new ImportSitesController("importSitesController", ImportSitesControllerArgs.builder()
            .discoverySolutionId("cgwjekybxrlaunxf")
            .location("adfizitxdfwwrkgywpqqupuhkvwie")
            .provisioningState("Created")
            .resourceGroupName("rgmigrate")
            .siteName("44GV2SnONP-cPFOQ18Zmn")
            .tags(Map.of("key592", "pj"))
            .build());

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

const importSitesController = new azure_native.offazure.ImportSitesController("importSitesController", {
    discoverySolutionId: "cgwjekybxrlaunxf",
    location: "adfizitxdfwwrkgywpqqupuhkvwie",
    provisioningState: azure_native.offazure.ProvisioningState.Created,
    resourceGroupName: "rgmigrate",
    siteName: "44GV2SnONP-cPFOQ18Zmn",
    tags: {
        key592: "pj",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

import_sites_controller = azure_native.offazure.ImportSitesController("importSitesController",
    discovery_solution_id="cgwjekybxrlaunxf",
    location="adfizitxdfwwrkgywpqqupuhkvwie",
    provisioning_state=azure_native.offazure.ProvisioningState.CREATED,
    resource_group_name="rgmigrate",
    site_name="44GV2SnONP-cPFOQ18Zmn",
    tags={
        "key592": "pj",
    })
Copy
resources:
  importSitesController:
    type: azure-native:offazure:ImportSitesController
    properties:
      discoverySolutionId: cgwjekybxrlaunxf
      location: adfizitxdfwwrkgywpqqupuhkvwie
      provisioningState: Created
      resourceGroupName: rgmigrate
      siteName: 44GV2SnONP-cPFOQ18Zmn
      tags:
        key592: pj
Copy

Create ImportSitesController Resource

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

Constructor syntax

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

@overload
def ImportSitesController(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          resource_group_name: Optional[str] = None,
                          discovery_solution_id: Optional[str] = None,
                          location: Optional[str] = None,
                          provisioning_state: Optional[Union[str, ProvisioningState]] = None,
                          site_name: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
func NewImportSitesController(ctx *Context, name string, args ImportSitesControllerArgs, opts ...ResourceOption) (*ImportSitesController, error)
public ImportSitesController(string name, ImportSitesControllerArgs args, CustomResourceOptions? opts = null)
public ImportSitesController(String name, ImportSitesControllerArgs args)
public ImportSitesController(String name, ImportSitesControllerArgs args, CustomResourceOptions options)
type: azure-native:offazure:ImportSitesController
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. ImportSitesControllerArgs
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. ImportSitesControllerArgs
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. ImportSitesControllerArgs
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. ImportSitesControllerArgs
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. ImportSitesControllerArgs
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 importSitesControllerResource = new AzureNative.OffAzure.ImportSitesController("importSitesControllerResource", new()
{
    ResourceGroupName = "string",
    DiscoverySolutionId = "string",
    Location = "string",
    ProvisioningState = "string",
    SiteName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := offazure.NewImportSitesController(ctx, "importSitesControllerResource", &offazure.ImportSitesControllerArgs{
	ResourceGroupName:   pulumi.String("string"),
	DiscoverySolutionId: pulumi.String("string"),
	Location:            pulumi.String("string"),
	ProvisioningState:   pulumi.String("string"),
	SiteName:            pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var importSitesControllerResource = new ImportSitesController("importSitesControllerResource", ImportSitesControllerArgs.builder()
    .resourceGroupName("string")
    .discoverySolutionId("string")
    .location("string")
    .provisioningState("string")
    .siteName("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
import_sites_controller_resource = azure_native.offazure.ImportSitesController("importSitesControllerResource",
    resource_group_name="string",
    discovery_solution_id="string",
    location="string",
    provisioning_state="string",
    site_name="string",
    tags={
        "string": "string",
    })
Copy
const importSitesControllerResource = new azure_native.offazure.ImportSitesController("importSitesControllerResource", {
    resourceGroupName: "string",
    discoverySolutionId: "string",
    location: "string",
    provisioningState: "string",
    siteName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:offazure:ImportSitesController
properties:
    discoverySolutionId: string
    location: string
    provisioningState: string
    resourceGroupName: string
    siteName: string
    tags:
        string: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DiscoverySolutionId string
Gets or sets the ARM ID of migration hub solution for SDS.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
ProvisioningState string | Pulumi.AzureNative.OffAzure.ProvisioningState
The status of the last operation.
SiteName Changes to this property will trigger replacement. string
Site name
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DiscoverySolutionId string
Gets or sets the ARM ID of migration hub solution for SDS.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
ProvisioningState string | ProvisioningState
The status of the last operation.
SiteName Changes to this property will trigger replacement. string
Site name
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
discoverySolutionId String
Gets or sets the ARM ID of migration hub solution for SDS.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
provisioningState String | ProvisioningState
The status of the last operation.
siteName Changes to this property will trigger replacement. String
Site name
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
discoverySolutionId string
Gets or sets the ARM ID of migration hub solution for SDS.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
provisioningState string | ProvisioningState
The status of the last operation.
siteName Changes to this property will trigger replacement. string
Site name
tags {[key: string]: string}
Resource tags.
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.
discovery_solution_id str
Gets or sets the ARM ID of migration hub solution for SDS.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
provisioning_state str | ProvisioningState
The status of the last operation.
site_name Changes to this property will trigger replacement. str
Site name
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
discoverySolutionId String
Gets or sets the ARM ID of migration hub solution for SDS.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
provisioningState String | "Created" | "Updated" | "Running" | "Completed" | "Failed" | "Succeeded" | "Canceled"
The status of the last operation.
siteName Changes to this property will trigger replacement. String
Site name
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the ImportSitesController 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.
MasterSiteId string
Gets the Master Site this site is linked to.
Name string
The name of the resource
ServiceEndpoint string
Gets the service endpoint.
SystemData Pulumi.AzureNative.OffAzure.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.
MasterSiteId string
Gets the Master Site this site is linked to.
Name string
The name of the resource
ServiceEndpoint string
Gets the service endpoint.
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.
masterSiteId String
Gets the Master Site this site is linked to.
name String
The name of the resource
serviceEndpoint String
Gets the service endpoint.
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.
masterSiteId string
Gets the Master Site this site is linked to.
name string
The name of the resource
serviceEndpoint string
Gets the service endpoint.
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.
master_site_id str
Gets the Master Site this site is linked to.
name str
The name of the resource
service_endpoint str
Gets the service endpoint.
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.
masterSiteId String
Gets the Master Site this site is linked to.
name String
The name of the resource
serviceEndpoint String
Gets the service endpoint.
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

ProvisioningState
, ProvisioningStateArgs

Created
CreatedCreated value.
Updated
UpdatedUpdated value.
Running
RunningRunning value.
Completed
CompletedCompleted value.
Failed
FailedFailed value.
Succeeded
SucceededSucceeded value.
Canceled
CanceledCanceled value.
ProvisioningStateCreated
CreatedCreated value.
ProvisioningStateUpdated
UpdatedUpdated value.
ProvisioningStateRunning
RunningRunning value.
ProvisioningStateCompleted
CompletedCompleted value.
ProvisioningStateFailed
FailedFailed value.
ProvisioningStateSucceeded
SucceededSucceeded value.
ProvisioningStateCanceled
CanceledCanceled value.
Created
CreatedCreated value.
Updated
UpdatedUpdated value.
Running
RunningRunning value.
Completed
CompletedCompleted value.
Failed
FailedFailed value.
Succeeded
SucceededSucceeded value.
Canceled
CanceledCanceled value.
Created
CreatedCreated value.
Updated
UpdatedUpdated value.
Running
RunningRunning value.
Completed
CompletedCompleted value.
Failed
FailedFailed value.
Succeeded
SucceededSucceeded value.
Canceled
CanceledCanceled value.
CREATED
CreatedCreated value.
UPDATED
UpdatedUpdated value.
RUNNING
RunningRunning value.
COMPLETED
CompletedCompleted value.
FAILED
FailedFailed value.
SUCCEEDED
SucceededSucceeded value.
CANCELED
CanceledCanceled value.
"Created"
CreatedCreated value.
"Updated"
UpdatedUpdated value.
"Running"
RunningRunning value.
"Completed"
CompletedCompleted value.
"Failed"
FailedFailed value.
"Succeeded"
SucceededSucceeded value.
"Canceled"
CanceledCanceled value.

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:offazure:ImportSitesController czihdkszxssaxzvpogzksxyqdg /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName} 
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
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