database_migrations_sql_mis
Creates, updates, deletes, gets or lists a database_migrations_sql_mis
resource.
Overview
Name | database_migrations_sql_mis |
Type | Resource |
Id | azure.data_migration.database_migrations_sql_mis |
Fields
- vw_database_migrations_sql_mis
- database_migrations_sql_mis
Name | Datatype | Description |
---|---|---|
id | text | field from the properties object |
name | text | field from the properties object |
backup_configuration | text | field from the properties object |
managedInstanceName | text | field from the properties object |
migration_status_details | text | field from the properties object |
offline_configuration | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_database_name | text | field from the properties object |
source_server_name | text | field from the properties object |
source_sql_connection | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
targetDbName | text | field from the properties object |
target_database_collation | text | field from the properties object |
type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | |
name | string | |
properties | object | Database Migration Resource properties for SQL Managed Instance. |
systemData | object | |
type | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managedInstanceName, resourceGroupName, subscriptionId, targetDbName | Retrieve the specified database migration for a given SQL Managed Instance. |
create_or_update | INSERT | managedInstanceName, resourceGroupName, subscriptionId, targetDbName | Create a new database migration to a given SQL Managed Instance. |
cancel | EXEC | managedInstanceName, resourceGroupName, subscriptionId, targetDbName | Stop in-progress database migration to SQL Managed Instance. |
cutover | EXEC | managedInstanceName, resourceGroupName, subscriptionId, targetDbName | Initiate cutover for in-progress online database migration to SQL Managed Instance. |
SELECT
examples
Retrieve the specified database migration for a given SQL Managed Instance.
- vw_database_migrations_sql_mis
- database_migrations_sql_mis
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.data_migration.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.data_migration.database_migrations_sql_mis (
managedInstanceName,
resourceGroupName,
subscriptionId,
targetDbName,
properties
)
SELECT
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ targetDbName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
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: properties
value:
- name: sourceSqlConnection
value:
- name: dataSource
value: string
- name: authentication
value: string
- name: userName
value: string
- name: password
value: string
- name: encryptConnection
value: boolean
- name: trustServerCertificate
value: boolean
- name: sourceDatabaseName
value: string
- name: sourceServerName
value: string
- name: targetDatabaseCollation
value: string
- name: migrationStatusDetails
value:
- name: migrationState
value: string
- name: fullBackupSetInfo
value:
- name: backupSetId
value: string
- name: firstLSN
value: string
- name: lastLSN
value: string
- name: backupType
value: string
- name: listOfBackupFiles
value:
- - name: fileName
value: string
- name: status
value: string
- name: totalSize
value: integer
- name: dataRead
value: integer
- name: dataWritten
value: integer
- name: copyThroughput
value: number
- name: copyDuration
value: integer
- name: familySequenceNumber
value: integer
- name: backupStartDate
value: string
- name: backupFinishDate
value: string
- name: isBackupRestored
value: boolean
- name: hasBackupChecksums
value: boolean
- name: familyCount
value: integer
- name: ignoreReasons
value:
- string
- name: activeBackupSets
value:
- - name: backupSetId
value: string
- name: firstLSN
value: string
- name: lastLSN
value: string
- name: backupType
value: string
- name: listOfBackupFiles
value:
- - name: fileName
value: string
- name: status
value: string
- name: totalSize
value: integer
- name: dataRead
value: integer
- name: dataWritten
value: integer
- name: copyThroughput
value: number
- name: copyDuration
value: integer
- name: familySequenceNumber
value: integer
- name: backupStartDate
value: string
- name: backupFinishDate
value: string
- name: isBackupRestored
value: boolean
- name: hasBackupChecksums
value: boolean
- name: familyCount
value: integer
- name: ignoreReasons
value:
- string
- name: invalidFiles
value:
- string
- name: blobContainerName
value: string
- name: isFullBackupRestored
value: boolean
- name: restoreBlockingReason
value: string
- name: completeRestoreErrorMessage
value: string
- name: fileUploadBlockingErrors
value:
- string
- name: currentRestoringFilename
value: string
- name: lastRestoredFilename
value: string
- name: pendingLogBackupsCount
value: integer
- name: backupConfiguration
value:
- name: sourceLocation
value:
- name: fileShare
value:
- name: path
value: string
- name: username
value: string
- name: password
value: string
- name: azureBlob
value:
- name: storageAccountResourceId
value: string
- name: accountKey
value: string
- name: blobContainerName
value: string
- name: fileStorageType
value: string
- name: targetLocation
value:
- name: storageAccountResourceId
value: string
- name: accountKey
value: string
- name: offlineConfiguration
value:
- name: offline
value: boolean
- name: lastBackupName
value: string