migration_configs
Creates, updates, deletes, gets or lists a migration_configs
resource.
Overview
Name | migration_configs |
Type | Resource |
Id | azure.service_bus.migration_configs |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
location | string | The geo-location where the resource lives |
properties | `` | Properties required to the Create Migration Configuration |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configName, namespaceName, resourceGroupName, subscriptionId | Retrieves Migration Config |
list | SELECT | namespaceName, resourceGroupName, subscriptionId | Gets all migrationConfigurations |
create_and_start_migration | INSERT | configName, namespaceName, resourceGroupName, subscriptionId | Creates Migration configuration and starts migration of entities from Standard to Premium namespace |
delete | DELETE | configName, namespaceName, resourceGroupName, subscriptionId | Deletes a MigrationConfiguration |
complete_migration | EXEC | configName, namespaceName, resourceGroupName, subscriptionId | 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. |
revert | EXEC | configName, namespaceName, resourceGroupName, subscriptionId | This 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_bus.migration_configs (
configName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
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 }}';