azure-native.servicebus.MigrationConfig
Explore with Pulumi AI
Single item in List or Get Migration Config operation Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
Other available API versions: 2022-10-01-preview, 2023-01-01-preview, 2024-01-01.
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",
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
"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
})
}
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());
}
}
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")
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",
});
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
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 string
- The unique name of the resource.
- args MigrationConfigArgs
- 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 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 string
- The unique name of the resource.
- args MigrationConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MigrationConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var migrationConfigResource = new MigrationConfig("migrationConfigResource", MigrationConfigArgs.builder()
.namespaceName("string")
.postMigrationName("string")
.resourceGroupName("string")
.targetNamespace("string")
.configName("string")
.build());
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")
const migrationConfigResource = new azure_native.servicebus.MigrationConfig("migrationConfigResource", {
namespaceName: "string",
postMigrationName: "string",
resourceGroupName: "string",
targetNamespace: "string",
configName: "string",
});
type: azure-native:servicebus:MigrationConfig
properties:
configName: string
namespaceName: string
postMigrationName: string
resourceGroupName: string
targetNamespace: string
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:
- Namespace
Name string - The namespace name
- Post
Migration stringName - Name to access Standard Namespace after migration
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Target
Namespace string - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- Config
Name string - The configuration name. Should always be "$default".
- Namespace
Name string - The namespace name
- Post
Migration stringName - Name to access Standard Namespace after migration
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Target
Namespace string - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- Config
Name string - The configuration name. Should always be "$default".
- namespace
Name String - The namespace name
- post
Migration StringName - Name to access Standard Namespace after migration
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- target
Namespace String - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- config
Name String - The configuration name. Should always be "$default".
- namespace
Name string - The namespace name
- post
Migration stringName - Name to access Standard Namespace after migration
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- target
Namespace string - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- config
Name string - The configuration name. Should always be "$default".
- namespace_
name str - The namespace name
- post_
migration_ strname - Name to access Standard Namespace after migration
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- target_
namespace str - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- config_
name str - The configuration name. Should always be "$default".
- namespace
Name String - The namespace name
- post
Migration StringName - Name to access Standard Namespace after migration
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- target
Namespace String - Existing premium Namespace ARM Id name which has no entities, will be used for migration
- config
Name 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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Migration
State string - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
- Name string
- The name of the resource
- Pending
Replication doubleOperations Count - Number of entities pending to be replicated.
- Provisioning
State string - Provisioning state of Migration Configuration
- System
Data Pulumi.Azure Native. Service Bus. Outputs. System Data Response - 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Migration
State string - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
- Name string
- The name of the resource
- Pending
Replication float64Operations Count - Number of entities pending to be replicated.
- Provisioning
State string - Provisioning state of Migration Configuration
- System
Data SystemData Response - 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"
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- migration
State String - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
- name String
- The name of the resource
- pending
Replication DoubleOperations Count - Number of entities pending to be replicated.
- provisioning
State String - Provisioning state of Migration Configuration
- system
Data SystemData Response - 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"
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The geo-location where the resource lives
- migration
State string - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
- name string
- The name of the resource
- pending
Replication numberOperations Count - Number of entities pending to be replicated.
- provisioning
State string - Provisioning state of Migration Configuration
- system
Data SystemData Response - 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"
- 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_ floatoperations_ count - Number of entities pending to be replicated.
- provisioning_
state str - Provisioning state of Migration Configuration
- system_
data SystemData Response - 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"
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- migration
State String - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active
- name String
- The name of the resource
- pending
Replication NumberOperations Count - Number of entities pending to be replicated.
- provisioning
State String - Provisioning state of Migration Configuration
- system
Data 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
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0