Skip to main content

database_migrations_sql_mis

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

Overview

Namedatabase_migrations_sql_mis
TypeResource
Idazure.data_migration.database_migrations_sql_mis

Fields

NameDatatypeDescription
idtextfield from the properties object
nametextfield from the properties object
backup_configurationtextfield from the properties object
managedInstanceNametextfield from the properties object
migration_status_detailstextfield from the properties object
offline_configurationtextfield from the properties object
resourceGroupNametextfield from the properties object
source_database_nametextfield from the properties object
source_server_nametextfield from the properties object
source_sql_connectiontextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
targetDbNametextfield from the properties object
target_database_collationtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagedInstanceName, resourceGroupName, subscriptionId, targetDbNameRetrieve the specified database migration for a given SQL Managed Instance.
create_or_updateINSERTmanagedInstanceName, resourceGroupName, subscriptionId, targetDbNameCreate a new database migration to a given SQL Managed Instance.
cancelEXECmanagedInstanceName, resourceGroupName, subscriptionId, targetDbNameStop in-progress database migration to SQL Managed Instance.
cutoverEXECmanagedInstanceName, resourceGroupName, subscriptionId, targetDbNameInitiate cutover for in-progress online database migration to SQL Managed Instance.

SELECT examples

Retrieve the specified database migration for a given SQL Managed Instance.

SELECT
id,
name,
backup_configuration,
managedInstanceName,
migration_status_details,
offline_configuration,
resourceGroupName,
source_database_name,
source_server_name,
source_sql_connection,
subscriptionId,
system_data,
targetDbName,
target_database_collation,
type
FROM azure.data_migration.vw_database_migrations_sql_mis
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND targetDbName = '{{ targetDbName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_migration.database_migrations_sql_mis (
managedInstanceName,
resourceGroupName,
subscriptionId,
targetDbName,
properties
)
SELECT
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ targetDbName }}',
'{{ properties }}'
;