Skip to main content

migration_configs

Creates, updates, deletes, gets or lists a migration_configs resource.

Overview

Namemigration_configs
TypeResource
Idazure.service_bus.migration_configs

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringThe geo-location where the resource lives
properties``Properties required to the Create Migration Configuration
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigName, namespaceName, resourceGroupName, subscriptionIdRetrieves Migration Config
listSELECTnamespaceName, resourceGroupName, subscriptionIdGets all migrationConfigurations
create_and_start_migrationINSERTconfigName, namespaceName, resourceGroupName, subscriptionIdCreates Migration configuration and starts migration of entities from Standard to Premium namespace
deleteDELETEconfigName, namespaceName, resourceGroupName, subscriptionIdDeletes a MigrationConfiguration
complete_migrationEXECconfigName, namespaceName, resourceGroupName, subscriptionIdThis 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.
revertEXECconfigName, namespaceName, resourceGroupName, subscriptionIdThis operation reverts Migration

SELECT examples

Gets all migrationConfigurations

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.service_bus.migration_configs
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new migration_configs resource.

/*+ create */
INSERT INTO azure.service_bus.migration_configs (
configName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified migration_configs resource.

/*+ delete */
DELETE FROM azure.service_bus.migration_configs
WHERE configName = '{{ configName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';