Skip to main content

migration_services

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

Overview

Namemigration_services
TypeResource
Idazure.data_migration.migration_services

Fields

NameDatatypeDescription
idtextfield from the properties object
nametextfield from the properties object
integration_runtime_statetextfield from the properties object
locationtextfield from the properties object
migrationServiceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmigrationServiceName, resourceGroupName, subscriptionIdRetrieve the Database Migration Service
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve all migration services in the resource group.
list_by_subscriptionSELECTsubscriptionIdRetrieve all migration services in the subscriptions.
create_or_updateINSERTmigrationServiceName, resourceGroupName, subscriptionIdCreate or Update Database Migration Service.
deleteDELETEmigrationServiceName, resourceGroupName, subscriptionIdDelete Database Migration Service.
updateUPDATEmigrationServiceName, resourceGroupName, subscriptionIdUpdate Database Migration Service.

SELECT examples

Retrieve all migration services in the subscriptions.

SELECT
id,
name,
integration_runtime_state,
location,
migrationServiceName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.data_migration.vw_migration_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_migration.migration_services (
migrationServiceName,
resourceGroupName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ migrationServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a migration_services resource.

/*+ update */
UPDATE azure.data_migration.migration_services
SET
tags = '{{ tags }}'
WHERE
migrationServiceName = '{{ migrationServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified migration_services resource.

/*+ delete */
DELETE FROM azure.data_migration.migration_services
WHERE migrationServiceName = '{{ migrationServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';