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

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

Single item in List or Get Migration Config operation

Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-01-01-preview.

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

Example Usage

MigrationConfigurationsStartMigration

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

return await Deployment.RunAsync(() => 
{
    var migrationConfig = new AzureNative.ServiceBus.MigrationConfig("migrationConfig", new()
    {
        ConfigName = "$default",
        NamespaceName = "sdk-Namespace-41",
        PostMigrationName = "sdk-PostMigration-5919",
        ResourceGroupName = "ResourceGroup",
        TargetNamespace = "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicebus.NewMigrationConfig(ctx, "migrationConfig", &servicebus.MigrationConfigArgs{
			ConfigName:        pulumi.String("$default"),
			NamespaceName:     pulumi.String("sdk-Namespace-41"),
			PostMigrationName: pulumi.String("sdk-PostMigration-5919"),
			ResourceGroupName: pulumi.String("ResourceGroup"),
			TargetNamespace:   pulumi.String("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"),
		})
		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.servicebus.MigrationConfig;
import com.pulumi.azurenative.servicebus.MigrationConfigArgs;
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 migrationConfig = new MigrationConfig("migrationConfig", MigrationConfigArgs.builder()
            .configName("$default")
            .namespaceName("sdk-Namespace-41")
            .postMigrationName("sdk-PostMigration-5919")
            .resourceGroupName("ResourceGroup")
            .targetNamespace("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028")
            .build());

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

const migrationConfig = new azure_native.servicebus.MigrationConfig("migrationConfig", {
    configName: "$default",
    namespaceName: "sdk-Namespace-41",
    postMigrationName: "sdk-PostMigration-5919",
    resourceGroupName: "ResourceGroup",
    targetNamespace: "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

migration_config = azure_native.servicebus.MigrationConfig("migrationConfig",
    config_name="$default",
    namespace_name="sdk-Namespace-41",
    post_migration_name="sdk-PostMigration-5919",
    resource_group_name="ResourceGroup",
    target_namespace="/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028")
Copy
resources:
  migrationConfig:
    type: azure-native:servicebus:MigrationConfig
    properties:
      configName: $default
      namespaceName: sdk-Namespace-41
      postMigrationName: sdk-PostMigration-5919
      resourceGroupName: ResourceGroup
      targetNamespace: /subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028
Copy

Create MigrationConfig Resource

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

Constructor syntax

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

@overload
def MigrationConfig(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    namespace_name: Optional[str] = None,
                    post_migration_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    target_namespace: Optional[str] = None,
                    config_name: Optional[str] = None)
func NewMigrationConfig(ctx *Context, name string, args MigrationConfigArgs, opts ...ResourceOption) (*MigrationConfig, error)
public MigrationConfig(string name, MigrationConfigArgs args, CustomResourceOptions? opts = null)
public MigrationConfig(String name, MigrationConfigArgs args)
public MigrationConfig(String name, MigrationConfigArgs args, CustomResourceOptions options)
type: azure-native:servicebus:MigrationConfig
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. MigrationConfigArgs
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. MigrationConfigArgs
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. MigrationConfigArgs
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. MigrationConfigArgs
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. MigrationConfigArgs
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 migrationConfigResource = new AzureNative.ServiceBus.MigrationConfig("migrationConfigResource", new()
{
    NamespaceName = "string",
    PostMigrationName = "string",
    ResourceGroupName = "string",
    TargetNamespace = "string",
    ConfigName = "string",
});
Copy
example, err := servicebus.NewMigrationConfig(ctx, "migrationConfigResource", &servicebus.MigrationConfigArgs{
	NamespaceName:     pulumi.String("string"),
	PostMigrationName: pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	TargetNamespace:   pulumi.String("string"),
	ConfigName:        pulumi.String("string"),
})
Copy
var migrationConfigResource = new MigrationConfig("migrationConfigResource", MigrationConfigArgs.builder()
    .namespaceName("string")
    .postMigrationName("string")
    .resourceGroupName("string")
    .targetNamespace("string")
    .configName("string")
    .build());
Copy
migration_config_resource = azure_native.servicebus.MigrationConfig("migrationConfigResource",
    namespace_name="string",
    post_migration_name="string",
    resource_group_name="string",
    target_namespace="string",
    config_name="string")
Copy
const migrationConfigResource = new azure_native.servicebus.MigrationConfig("migrationConfigResource", {
    namespaceName: "string",
    postMigrationName: "string",
    resourceGroupName: "string",
    targetNamespace: "string",
    configName: "string",
});
Copy
type: azure-native:servicebus:MigrationConfig
properties:
    configName: string
    namespaceName: string
    postMigrationName: string
    resourceGroupName: string
    targetNamespace: string
Copy

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

NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name
PostMigrationName This property is required. string
Name to access Standard Namespace after migration
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TargetNamespace This property is required. string
Existing premium Namespace ARM Id name which has no entities, will be used for migration
ConfigName Changes to this property will trigger replacement. string
The configuration name. Should always be "$default".
NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name
PostMigrationName This property is required. string
Name to access Standard Namespace after migration
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TargetNamespace This property is required. string
Existing premium Namespace ARM Id name which has no entities, will be used for migration
ConfigName Changes to this property will trigger replacement. string
The configuration name. Should always be "$default".
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name
postMigrationName This property is required. String
Name to access Standard Namespace after migration
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
targetNamespace This property is required. String
Existing premium Namespace ARM Id name which has no entities, will be used for migration
configName Changes to this property will trigger replacement. String
The configuration name. Should always be "$default".
namespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name
postMigrationName This property is required. string
Name to access Standard Namespace after migration
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
targetNamespace This property is required. string
Existing premium Namespace ARM Id name which has no entities, will be used for migration
configName Changes to this property will trigger replacement. string
The configuration name. Should always be "$default".
namespace_name
This property is required.
Changes to this property will trigger replacement.
str
The namespace name
post_migration_name This property is required. str
Name to access Standard Namespace after migration
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.
target_namespace This property is required. str
Existing premium Namespace ARM Id name which has no entities, will be used for migration
config_name Changes to this property will trigger replacement. str
The configuration name. Should always be "$default".
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name
postMigrationName This property is required. String
Name to access Standard Namespace after migration
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
targetNamespace This property is required. String
Existing premium Namespace ARM Id name which has no entities, will be used for migration
configName Changes to this property will trigger replacement. String
The configuration name. Should always be "$default".

Outputs

All input properties are implicitly available as output properties. Additionally, the MigrationConfig 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.
Location string
The geo-location where the resource lives
MigrationState string
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
Name string
The name of the resource
PendingReplicationOperationsCount double
Number of entities pending to be replicated.
ProvisioningState string
Provisioning state of Migration Configuration
SystemData Pulumi.AzureNative.ServiceBus.Outputs.SystemDataResponse
The system meta data relating to this resource.
Type string
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Location string
The geo-location where the resource lives
MigrationState string
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
Name string
The name of the resource
PendingReplicationOperationsCount float64
Number of entities pending to be replicated.
ProvisioningState string
Provisioning state of Migration Configuration
SystemData SystemDataResponse
The system meta data relating to this resource.
Type string
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
location String
The geo-location where the resource lives
migrationState String
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
name String
The name of the resource
pendingReplicationOperationsCount Double
Number of entities pending to be replicated.
provisioningState String
Provisioning state of Migration Configuration
systemData SystemDataResponse
The system meta data relating to this resource.
type String
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
location string
The geo-location where the resource lives
migrationState string
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
name string
The name of the resource
pendingReplicationOperationsCount number
Number of entities pending to be replicated.
provisioningState string
Provisioning state of Migration Configuration
systemData SystemDataResponse
The system meta data relating to this resource.
type string
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
location str
The geo-location where the resource lives
migration_state str
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
name str
The name of the resource
pending_replication_operations_count float
Number of entities pending to be replicated.
provisioning_state str
Provisioning state of Migration Configuration
system_data SystemDataResponse
The system meta data relating to this resource.
type str
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
location String
The geo-location where the resource lives
migrationState String
State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
name String
The name of the resource
pendingReplicationOperationsCount Number
Number of entities pending to be replicated.
provisioningState String
Provisioning state of Migration Configuration
systemData Property Map
The system meta data relating to this resource.
type String
The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Supporting Types

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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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:servicebus:MigrationConfig sdk-Namespace-41 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName} 
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