Skip to main content

sql_migration_services

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

Overview

Namesql_migration_services
TypeResource
Idazure.data_migration.sql_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
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sqlMigrationServiceNametextfield 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
getSELECTresourceGroupName, sqlMigrationServiceName, subscriptionIdRetrieve the Database Migration Service
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve all SQL migration services in the resource group.
list_by_subscriptionSELECTsubscriptionIdRetrieve all SQL migration services in the subscriptions.
create_or_updateINSERTresourceGroupName, sqlMigrationServiceName, subscriptionIdCreate or Update Database Migration Service.
deleteDELETEresourceGroupName, sqlMigrationServiceName, subscriptionIdDelete Database Migration Service.
updateUPDATEresourceGroupName, sqlMigrationServiceName, subscriptionIdUpdate Database Migration Service.
delete_nodeEXECresourceGroupName, sqlMigrationServiceName, subscriptionIdDelete the integration runtime node.
regenerate_auth_keysEXECresourceGroupName, sqlMigrationServiceName, subscriptionIdRegenerate a new set of Authentication Keys for Self Hosted Integration Runtime.

SELECT examples

Retrieve all SQL migration services in the subscriptions.

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

INSERT example

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

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

UPDATE example

Updates a sql_migration_services resource.

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

DELETE example

Deletes the specified sql_migration_services resource.

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