MigrationConfigsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ServiceBusManagementClient's

<xref:migration_configs> attribute.

Inheritance
builtins.object
MigrationConfigsOperations

Constructor

MigrationConfigsOperations(*args, **kwargs)

Methods

begin_create_and_start_migration

Creates Migration configuration and starts migration of entities from Standard to Premium namespace.

complete_migration

This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when entity migration is in-progress.

delete

Deletes a MigrationConfiguration.

get

Retrieves Migration Config.

list

Gets all migrationConfigurations.

revert

This operation reverts Migration.

begin_create_and_start_migration

Creates Migration configuration and starts migration of entities from Standard to Premium namespace.

async begin_create_and_start_migration(resource_group_name: str, namespace_name: str, config_name: str | _models.MigrationConfigurationName, parameters: _models.MigrationConfigProperties, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.MigrationConfigProperties]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

config_name
Required

The configuration name. Should always be "$default". "$default" Required.

parameters
Required

Parameters required to create Migration Configuration. Is either a MigrationConfigProperties type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either MigrationConfigProperties or the result of cls(response)

Exceptions

Type Description

complete_migration

This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when entity migration is in-progress.

async complete_migration(resource_group_name: str, namespace_name: str, config_name: str | MigrationConfigurationName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

config_name
Required

The configuration name. Should always be "$default". "$default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

delete

Deletes a MigrationConfiguration.

async delete(resource_group_name: str, namespace_name: str, config_name: str | MigrationConfigurationName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

config_name
Required

The configuration name. Should always be "$default". "$default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Retrieves Migration Config.

async get(resource_group_name: str, namespace_name: str, config_name: str | MigrationConfigurationName, **kwargs: Any) -> MigrationConfigProperties

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

config_name
Required

The configuration name. Should always be "$default". "$default" Required.

Returns

Type Description

MigrationConfigProperties or the result of cls(response)

Exceptions

Type Description

list

Gets all migrationConfigurations.

list(resource_group_name: str, namespace_name: str, **kwargs: Any) -> AsyncIterable[MigrationConfigProperties]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

Returns

Type Description

An iterator like instance of either MigrationConfigProperties or the result of cls(response)

Exceptions

Type Description

revert

This operation reverts Migration.

async revert(resource_group_name: str, namespace_name: str, config_name: str | MigrationConfigurationName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

namespace_name
Required
str

The namespace name. Required.

config_name
Required

The configuration name. Should always be "$default". "$default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.servicebus.v2022_10_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\servicebus\\v2022_10_01_preview\\models\\__init__.py'>