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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
integrationRuntimeStatestringCurrent state of the Integration runtime.
locationstring:vartype location: str
provisioningStatestringProvisioning state to track the async operation status.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobject:vartype tags: dict[str, str]
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, sql_migration_service_name, subscription_idRetrieve the Database Migration Service.
list_by_resource_groupselectresource_group_name, subscription_idRetrieve all SQL migration services in the resource group.
list_by_subscriptionselectsubscription_idRetrieve all SQL migration services in the subscriptions.
create_or_updateinsertresource_group_name, sql_migration_service_name, subscription_idCreate or Update Database Migration Service.
updateupdateresource_group_name, sql_migration_service_name, subscription_idUpdate Database Migration Service.
create_or_updatereplaceresource_group_name, sql_migration_service_name, subscription_idCreate or Update Database Migration Service.
deletedeleteresource_group_name, sql_migration_service_name, subscription_idDelete Database Migration Service.
list_auth_keysexecresource_group_name, sql_migration_service_name, subscription_idRetrieve the List of Authentication Keys for Self Hosted Integration Runtime.
list_migrationsexecresource_group_name, sql_migration_service_name, subscription_idRetrieve the List of database migrations attached to the service.
list_monitoring_dataexecresource_group_name, sql_migration_service_name, subscription_idRetrieve the registered Integration Runtime nodes and their monitoring data for a given Database Migration Service.
regenerate_auth_keysexecresource_group_name, sql_migration_service_name, subscription_idRegenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
delete_nodeexecresource_group_name, sql_migration_service_name, subscription_idDelete the integration runtime node.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sql_migration_service_namestringName of the SQL Migration Service. Required.
subscription_idstring

SELECT examples

Retrieve the Database Migration Service.

SELECT
id,
name,
integrationRuntimeState,
location,
provisioningState,
systemData,
tags,
type
FROM azure.data_migration.sql_migration_services
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND sql_migration_service_name = '{{ sql_migration_service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or Update Database Migration Service.

INSERT INTO azure.data_migration.sql_migration_services (
properties,
location,
tags,
resource_group_name,
sql_migration_service_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ resource_group_name }}',
'{{ sql_migration_service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update Database Migration Service.

UPDATE azure.data_migration.sql_migration_services
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sql_migration_service_name = '{{ sql_migration_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or Update Database Migration Service.

REPLACE azure.data_migration.sql_migration_services
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sql_migration_service_name = '{{ sql_migration_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete Database Migration Service.

DELETE FROM azure.data_migration.sql_migration_services
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND sql_migration_service_name = '{{ sql_migration_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.

EXEC azure.data_migration.sql_migration_services.list_auth_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@sql_migration_service_name='{{ sql_migration_service_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;