From 71c0116954444c1befaa39a13748da1257290828 Mon Sep 17 00:00:00 2001
From: Ashutosh Suman <48060857+ashutoshsuman99@users.noreply.github.com>
Date: Tue, 19 Apr 2022 07:31:08 +0530
Subject: [PATCH] DataMigration: Adding SQL DB Migration support (#4672)
* Adding sql-db changes Initial commit
* Removing creds and updating history.rst
* Correcting the format of History.rst
* Adding complete tests
* Updating readme
---
src/datamigration/HISTORY.rst | 11 +-
src/datamigration/README.md | 27 +
.../generated/_client_factory.py | 4 +
.../azext_datamigration/generated/_help.py | 136 +-
.../azext_datamigration/generated/_params.py | 65 +-
.../azext_datamigration/generated/commands.py | 16 +
.../azext_datamigration/generated/custom.py | 113 +-
.../azext_datamigration/manual/_params.py | 23 +
.../azext_datamigration/manual/action.py | 68 +
.../latest/test_datamigration_scenario.py | 282 +-
.../tests/latest/example_steps.py | 159 +-
.../test_datamigration_Scenario.yaml | 5371 ++---------------
.../latest/test_datamigration_scenario.py | 16 +
.../datamigration/_configuration.py | 2 +-
.../_data_migration_management_client.py | 5 +
.../datamigration/aio/_configuration.py | 2 +-
.../aio/_data_migration_management_client.py | 5 +
.../datamigration/aio/operations/__init__.py | 2 +
.../_database_migrations_sql_db_operations.py | 500 ++
.../_database_migrations_sql_mi_operations.py | 16 +-
.../_database_migrations_sql_vm_operations.py | 16 +-
.../aio/operations/_files_operations.py | 14 +-
.../aio/operations/_operations.py | 2 +-
.../aio/operations/_projects_operations.py | 10 +-
.../operations/_resource_skus_operations.py | 2 +-
.../operations/_service_tasks_operations.py | 12 +-
.../aio/operations/_services_operations.py | 24 +-
.../_sql_migration_services_operations.py | 31 +-
.../aio/operations/_tasks_operations.py | 14 +-
.../aio/operations/_usages_operations.py | 2 +-
.../datamigration/models/__init__.py | 15 +
..._data_migration_management_client_enums.py | 2 +
.../datamigration/models/_models.py | 611 +-
.../datamigration/models/_models_py3.py | 677 ++-
.../datamigration/operations/__init__.py | 2 +
.../_database_migrations_sql_db_operations.py | 511 ++
.../_database_migrations_sql_mi_operations.py | 16 +-
.../_database_migrations_sql_vm_operations.py | 16 +-
.../operations/_files_operations.py | 14 +-
.../datamigration/operations/_operations.py | 2 +-
.../operations/_projects_operations.py | 10 +-
.../operations/_resource_skus_operations.py | 2 +-
.../operations/_service_tasks_operations.py | 12 +-
.../operations/_services_operations.py | 24 +-
.../_sql_migration_services_operations.py | 31 +-
.../operations/_tasks_operations.py | 14 +-
.../operations/_usages_operations.py | 2 +-
src/datamigration/report.md | 127 +-
src/datamigration/setup.py | 4 +-
49 files changed, 3830 insertions(+), 5212 deletions(-)
create mode 100644 src/datamigration/azext_datamigration/manual/action.py
create mode 100644 src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_db_operations.py
create mode 100644 src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_db_operations.py
diff --git a/src/datamigration/HISTORY.rst b/src/datamigration/HISTORY.rst
index fc54d120109..4ffc8853932 100644
--- a/src/datamigration/HISTORY.rst
+++ b/src/datamigration/HISTORY.rst
@@ -3,11 +3,18 @@
Release History
===============
+0.3.0
+++++++
+* [BREAKING CHANGE] `az datamigration sql-managed-instance/sql-vm create`: Remove `--provisioing-error` and `--migration-operation-id` as they are unnecessary parameters.
+* [BREAKING CHANGE] `az datamigration sql-managed-instance/sql-vm cancel/cutover`: Making `--migration-operation-id` as a required parameter.
+* [BREAKING CHANGE] `az datamigration performance-data-collection`: Rename `--number-of-interation` to `--number-of-iteration` for typo correction
+* [NEW COMMAND GROUP] `az datamigration sql-db`: Manage database migrations to SQL DB instance.
+
0.2.0
++++++
* Bug fix for Multiple connection strings in az datamigration get-assessment command.
-* [NEW COMMAND] az datamigration performance-data-collection - Collect performance data for given SQL Server instance(s).
-* [NEW COMMAND] az datamigration get-sku-recommendation - Give SKU recommendations for Azure SQL offerings.
+* [NEW COMMAND] `az datamigration performance-data-collection` - Collect performance data for given SQL Server instance(s).
+* [NEW COMMAND] `az datamigration get-sku-recommendation` - Give SKU recommendations for Azure SQL offerings.
0.1.0
++++++
diff --git a/src/datamigration/README.md b/src/datamigration/README.md
index 13e2e50cc74..16ba265f4df 100644
--- a/src/datamigration/README.md
+++ b/src/datamigration/README.md
@@ -106,6 +106,33 @@ az datamigration sql-vm cancel --migration-operation-id "4124fe90-d1b6-4b50-b4d9
az datamigration sql-vm cutover --migration-operation-id "4124fe90-d1b6-4b50-b4d9-46d02381f59a" \
--resource-group "testrg" --sql-virtual-machine-name "testvm" --target-db-name "db1"
```
+#### datamigration sql-db ####
+##### Create #####
+```
+az datamigration sql-db create \
+ --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyGroup/providers/Microsoft.DataMigration/SqlMigrationServices/MyService" \
+ --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyGroup/providers/Microsoft.Sql/servers/labserver" \
+ --source-database-name "AdventureWorks" \
+ --source-sql-connection authentication="SQLAuthentication" data-source="aaa" password="bbb" user-name="ccc" \
+ --target-sql-connection authentication="SQLAuthentication" data-source="aaa" password="bbb" user-name="ccc" \
+ --resource-group "MyGroup" --sqldb-instance-name "labserver" --target-db-name AdventureWorksTarget
+```
+##### Show #####
+```
+az datamigration sql-db show --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+ --target-db-name "db1"
+```
+##### Delete #####
+```
+az datamigration sql-db delete --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+ --target-db-name "db1"
+```
+##### Cancel #####
+```
+az datamigration sql-db cancel --migration-operation-id "9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07" \
+ --resource-group "testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+```
+
#### datamigration sql-service ####
##### Create #####
```
diff --git a/src/datamigration/azext_datamigration/generated/_client_factory.py b/src/datamigration/azext_datamigration/generated/_client_factory.py
index 0d4518aa8a6..2d0870e1e34 100644
--- a/src/datamigration/azext_datamigration/generated/_client_factory.py
+++ b/src/datamigration/azext_datamigration/generated/_client_factory.py
@@ -16,6 +16,10 @@ def cf_datamigration_cl(cli_ctx, *_):
DataMigrationManagementClient)
+def cf_database_migration_sqldb(cli_ctx, *_):
+ return cf_datamigration_cl(cli_ctx).database_migrations_sql_db
+
+
def cf_database_migration_sqlmi(cli_ctx, *_):
return cf_datamigration_cl(cli_ctx).database_migrations_sql_mi
diff --git a/src/datamigration/azext_datamigration/generated/_help.py b/src/datamigration/azext_datamigration/generated/_help.py
index 07a8b5e3c83..72f9248c87a 100644
--- a/src/datamigration/azext_datamigration/generated/_help.py
+++ b/src/datamigration/azext_datamigration/generated/_help.py
@@ -17,6 +17,110 @@
short-summary: Manage Data Migration
'''
+helps['datamigration sql-db'] = """
+ type: group
+ short-summary: Manage database migrations to SQL DB.
+"""
+
+helps['datamigration sql-db show'] = """
+ type: command
+ short-summary: "Retrieve the specified database migration for a given SQL DB."
+ examples:
+ - name: Get Sql DB database Migration with the expand parameter.
+ text: |-
+ az datamigration sql-db show --expand "MigrationStatusDetails" --resource-group "testrg" \
+--sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+ - name: Get Sql DB database Migration without the expand parameter.
+ text: |-
+ az datamigration sql-db show --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1"
+"""
+
+helps['datamigration sql-db create'] = """
+ type: command
+ short-summary: "Create a new database migration to a given SQL DB."
+ parameters:
+ - name: --source-sql-connection
+ short-summary: "Source SQL Server connection details."
+ long-summary: |
+ Usage: --source-sql-connection data-source=XX authentication=XX user-name=XX password=XX \
+encrypt-connection=XX trust-server-certificate=XX
+
+ data-source: Data source.
+ authentication: Authentication type.
+ user-name: User name to connect to source SQL.
+ password: Password to connect to source SQL.
+ encrypt-connection: Whether to encrypt connection or not.
+ trust-server-certificate: Whether to trust server certificate or not.
+ - name: --target-sql-connection
+ short-summary: "Target SQL DB connection details."
+ long-summary: |
+ Usage: --target-sql-connection data-source=XX authentication=XX user-name=XX password=XX \
+encrypt-connection=XX trust-server-certificate=XX
+
+ data-source: Data source.
+ authentication: Authentication type.
+ user-name: User name to connect to source SQL.
+ password: Password to connect to source SQL.
+ encrypt-connection: Whether to encrypt connection or not.
+ trust-server-certificate: Whether to trust server certificate or not.
+ examples:
+ - name: Create or Update Database Migration resource with Maximum parameters.
+ text: |-
+ az datamigration sql-db create --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/\
+resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope \
+"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstanc\
+e" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" data-source="aaa" \
+encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" --table-list \
+"[Schema1].[TableName1]" "[Schema2].[TableName2]" --target-sql-connection authentication="SqlAuthentication" \
+data-source="sqldbinstance" encrypt-connection=true password="placeholder" trust-server-certificate=true \
+user-name="bbb" --resource-group "testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+ - name: Create or Update Database Migration resource with Minimum parameters.
+ text: |-
+ az datamigration sql-db create --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/\
+resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope \
+"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstanc\
+e" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" data-source="aaa" \
+encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" --target-sql-connection \
+authentication="SqlAuthentication" data-source="sqldbinstance" encrypt-connection=true password="placeholder" \
+trust-server-certificate=true user-name="bbb" --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1"
+"""
+
+helps['datamigration sql-db delete'] = """
+ type: command
+ short-summary: "Delete an in-progress or completed database migration to SQL DB."
+ examples:
+ - name: Delete Database Migration resource.
+ text: |-
+ az datamigration sql-db delete --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1"
+"""
+
+helps['datamigration sql-db cancel'] = """
+ type: command
+ short-summary: "Stop in-progress database migration to SQL DB."
+ examples:
+ - name: Stop ongoing migration for the database.
+ text: |-
+ az datamigration sql-db cancel --migration-operation-id "9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07" \
+--resource-group "testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+"""
+
+helps['datamigration sql-db wait'] = """
+ type: command
+ short-summary: Place the CLI in a waiting state until a condition of the datamigration sql-db is met.
+ examples:
+ - name: Pause executing next line of CLI script until the datamigration sql-db is successfully created.
+ text: |-
+ az datamigration sql-db wait --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1" --created
+ - name: Pause executing next line of CLI script until the datamigration sql-db is successfully deleted.
+ text: |-
+ az datamigration sql-db wait --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1" --deleted
+"""
+
helps['datamigration sql-managed-instance'] = """
type: group
short-summary: Manage database migrations to SQL Managed Instance.
@@ -26,7 +130,11 @@
type: command
short-summary: "Retrieve the specified database migration for a given SQL Managed Instance."
examples:
- - name: Get Database Migration resource.
+ - name: Get Sql MI database Migration with the expand parameter.
+ text: |-
+ az datamigration sql-managed-instance show --expand "MigrationStatusDetails" --managed-instance-name \
+"managedInstance1" --resource-group "testrg" --target-db-name "db1"
+ - name: Get Sql MI database Migration without the expand parameter.
text: |-
az datamigration sql-managed-instance show --managed-instance-name "managedInstance1" --resource-group \
"testrg" --target-db-name "db1"
@@ -82,11 +190,10 @@
--source-location "{\\"fileShare\\":{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\bbb\\\\\\\\ccc\\",\\"password\\":\\"placeholder\
\\",\\"username\\":\\"name\\"}}" --target-location account-key="abcd" storage-account-resource-id="account.database.win\
dows.net" --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Micr\
-osoft.DataMigration/sqlMigrationServices/testagent" --offline-configuration last-backup-name="last_backup_file_name" \
-offline=true --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql\
-/managedInstances/instance" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication"\
- data-source="aaa" encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" \
---resource-group "testrg" --target-db-name "db1"
+osoft.DataMigration/sqlMigrationServices/testagent" --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resour\
+ceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance" --source-database-name "aaa" \
+--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true \
+password="placeholder" trust-server-certificate=true user-name="bbb" --resource-group "testrg" --target-db-name "db1"
"""
helps['datamigration sql-managed-instance cancel'] = """
@@ -130,7 +237,11 @@
type: command
short-summary: "Retrieve the specified database migration for a given SQL VM."
examples:
- - name: Get Database Migration resource.
+ - name: Get Sql VM database Migration with the expand parameter.
+ text: |-
+ az datamigration sql-vm show --expand "MigrationStatusDetails" --resource-group "testrg" --sql-vm-name \
+"testvm" --target-db-name "db1"
+ - name: Get Sql VM database Migration without the expand parameter.
text: |-
az datamigration sql-vm show --resource-group "testrg" --sql-vm-name "testvm" --target-db-name "db1"
"""
@@ -184,12 +295,11 @@
az datamigration sql-vm create --source-location "{\\"fileShare\\":{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\b\
bb\\\\\\\\ccc\\",\\"password\\":\\"placeholder\\",\\"username\\":\\"name\\"}}" --target-location account-key="abcd" \
storage-account-resource-id="account.database.windows.net" --migration-service "/subscriptions/00000000-1111-2222-3333-\
-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" \
---offline-configuration last-backup-name="last_backup_file_name" offline=true --scope "/subscriptions/00000000-1111-222\
-2-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm" \
---source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" data-source="aaa" \
-encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" --resource-group "testrg" \
---sql-vm-name "testvm" --target-db-name "db1"
+444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope \
+"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVir\
+tualMachines/testvm" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" \
+data-source="aaa" encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" \
+--resource-group "testrg" --sql-vm-name "testvm" --target-db-name "db1"
"""
helps['datamigration sql-vm cancel'] = """
diff --git a/src/datamigration/azext_datamigration/generated/_params.py b/src/datamigration/azext_datamigration/generated/_params.py
index 3dff1c4e27b..132fb1c64ce 100644
--- a/src/datamigration/azext_datamigration/generated/_params.py
+++ b/src/datamigration/azext_datamigration/generated/_params.py
@@ -12,6 +12,7 @@
from azure.cli.core.commands.parameters import (
tags_type,
+ get_three_state_flag,
resource_group_name_type,
get_location_type
)
@@ -28,6 +29,52 @@
def load_arguments(self, _):
+ with self.argument_context('datamigration sql-db show') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.', id_part='name')
+ c.argument('target_db_name', type=str, help='The name of the target database.', id_part='child_name_1')
+ c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
+ 'of migration operation for that ID are retrieved. If not provided (default), then details related '
+ 'to most recent or current operation are retrieved.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
+
+ with self.argument_context('datamigration sql-db create') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.')
+ c.argument('target_db_name', type=str, help='The name of the target database.')
+ c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL '
+ 'DB)')
+ c.argument('source_sql_connection', action=AddSourceSqlConnection, nargs='+', help='Source SQL Server '
+ 'connection details.')
+ c.argument('source_database_name', type=str, help='Name of the source database.')
+ c.argument('migration_service', type=str, help='Resource Id of the Migration Service.')
+ c.argument('target_db_collation', type=str, help='Database collation to be used for the target database.')
+ c.argument('target_sql_connection', action=AddSourceSqlConnection, nargs='+', help='Target SQL DB connection '
+ 'details.')
+ c.argument('table_list', nargs='+', help='List of tables to copy.')
+
+ with self.argument_context('datamigration sql-db delete') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.', id_part='name')
+ c.argument('target_db_name', type=str, help='The name of the target database.', id_part='child_name_1')
+ c.argument('force', arg_type=get_three_state_flag(), help='Optional force delete boolean. If this is provided '
+ 'as true, migration will be deleted even if active.')
+
+ with self.argument_context('datamigration sql-db cancel') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.', id_part='name')
+ c.argument('target_db_name', type=str, help='The name of the target database.', id_part='child_name_1')
+ c.argument('migration_operation_id', help='ID tracking migration operation.')
+
+ with self.argument_context('datamigration sql-db wait') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.', id_part='name')
+ c.argument('target_db_name', type=str, help='The name of the target database.', id_part='child_name_1')
+ c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
+ 'of migration operation for that ID are retrieved. If not provided (default), then details related '
+ 'to most recent or current operation are retrieved.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
+
with self.argument_context('datamigration sql-managed-instance show') as c:
c.argument('resource_group_name', resource_group_name_type)
c.argument('managed_instance_name', type=str, help='Name of the target SQL Managed Instance.', id_part='name')
@@ -35,20 +82,19 @@ def load_arguments(self, _):
c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
'of migration operation for that ID are retrieved. If not provided (default), then details related '
'to most recent or current operation are retrieved.')
- c.argument('expand', type=str, help='The child resources to include in the response.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
with self.argument_context('datamigration sql-managed-instance create') as c:
c.argument('resource_group_name', resource_group_name_type)
c.argument('managed_instance_name', type=str, help='Name of the target SQL Managed Instance.')
c.argument('target_db_name', type=str, help='The name of the target database.')
- c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM or SQL Managed Instance)')
+ c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL '
+ 'DB)')
c.argument('source_sql_connection', action=AddSourceSqlConnection, nargs='+', help='Source SQL Server '
'connection details.')
c.argument('source_database_name', type=str, help='Name of the source database.')
c.argument('migration_service', type=str, help='Resource Id of the Migration Service.')
- c.argument('migration_operation_id', type=str, help='ID tracking current migration operation.')
c.argument('target_db_collation', type=str, help='Database collation to be used for the target database.')
- c.argument('provisioning_error', type=str, help='Error message for migration provisioning failure, if any.')
c.argument('offline_configuration', action=AddOfflineConfiguration, nargs='+', help='Offline configuration.')
c.argument('source_location', type=validate_file_or_dict, help='Source location of backups. Expected value: '
'json-string/json-file/@json-file.', arg_group='Backup Configuration')
@@ -74,7 +120,7 @@ def load_arguments(self, _):
c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
'of migration operation for that ID are retrieved. If not provided (default), then details related '
'to most recent or current operation are retrieved.')
- c.argument('expand', type=str, help='The child resources to include in the response.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
with self.argument_context('datamigration sql-vm show') as c:
c.argument('resource_group_name', resource_group_name_type)
@@ -83,20 +129,19 @@ def load_arguments(self, _):
c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
'of migration operation for that ID are retrieved. If not provided (default), then details related '
'to most recent or current operation are retrieved.')
- c.argument('expand', type=str, help='The child resources to include in the response.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
with self.argument_context('datamigration sql-vm create') as c:
c.argument('resource_group_name', resource_group_name_type)
c.argument('sql_vm_name', type=str, help='Name of the target SQL Virtual Machine.')
c.argument('target_db_name', type=str, help='The name of the target database.')
- c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM or SQL Managed Instance)')
+ c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL '
+ 'DB)')
c.argument('source_sql_connection', action=AddSourceSqlConnection, nargs='+', help='Source SQL Server '
'connection details.')
c.argument('source_database_name', type=str, help='Name of the source database.')
c.argument('migration_service', type=str, help='Resource Id of the Migration Service.')
- c.argument('migration_operation_id', type=str, help='ID tracking current migration operation.')
c.argument('target_db_collation', type=str, help='Database collation to be used for the target database.')
- c.argument('provisioning_error', type=str, help='Error message for migration provisioning failure, if any.')
c.argument('offline_configuration', action=AddOfflineConfiguration, nargs='+', help='Offline configuration.')
c.argument('source_location', type=validate_file_or_dict, help='Source location of backups. Expected value: '
'json-string/json-file/@json-file.', arg_group='Backup Configuration')
@@ -122,7 +167,7 @@ def load_arguments(self, _):
c.argument('migration_operation_id', help='Optional migration operation ID. If this is provided, then details '
'of migration operation for that ID are retrieved. If not provided (default), then details related '
'to most recent or current operation are retrieved.')
- c.argument('expand', type=str, help='The child resources to include in the response.')
+ c.argument('expand', type=str, help='Complete migration details be included in the response.')
with self.argument_context('datamigration sql-service list') as c:
c.argument('resource_group_name', resource_group_name_type)
diff --git a/src/datamigration/azext_datamigration/generated/commands.py b/src/datamigration/azext_datamigration/generated/commands.py
index 10575799f99..94c9063aebe 100644
--- a/src/datamigration/azext_datamigration/generated/commands.py
+++ b/src/datamigration/azext_datamigration/generated/commands.py
@@ -14,12 +14,19 @@
from azure.cli.core.commands import CliCommandType
from azext_datamigration.generated._client_factory import (
+ cf_database_migration_sqldb,
cf_database_migration_sqlmi,
cf_database_migration_sqlvm,
cf_sqlmigration_service,
)
+datamigration_database_migration_sqldb = CliCommandType(
+ operations_tmpl='azext_datamigration.vendored_sdks.datamigration.operations._database_migrations_sql_db_operations#DatabaseMigrationsSqlDbOperations.{}',
+ client_factory=cf_database_migration_sqldb,
+)
+
+
datamigration_database_migration_sqlmi = CliCommandType(
operations_tmpl='azext_datamigration.vendored_sdks.datamigration.operations._database_migrations_sql_mi_operations#DatabaseMigrationsSqlMiOperations.{}',
client_factory=cf_database_migration_sqlmi,
@@ -40,6 +47,15 @@
def load_command_table(self, _):
+ with self.command_group(
+ 'datamigration sql-db', datamigration_database_migration_sqldb, client_factory=cf_database_migration_sqldb
+ ) as g:
+ g.custom_show_command('show', 'datamigration_sql_db_show')
+ g.custom_command('create', 'datamigration_sql_db_create', supports_no_wait=True)
+ g.custom_command('delete', 'datamigration_sql_db_delete', supports_no_wait=True, confirmation=True)
+ g.custom_command('cancel', 'datamigration_sql_db_cancel', supports_no_wait=True)
+ g.custom_wait_command('wait', 'datamigration_sql_db_show')
+
with self.command_group(
'datamigration sql-managed-instance',
datamigration_database_migration_sqlmi,
diff --git a/src/datamigration/azext_datamigration/generated/custom.py b/src/datamigration/azext_datamigration/generated/custom.py
index cb6a1336727..7fc66cb1579 100644
--- a/src/datamigration/azext_datamigration/generated/custom.py
+++ b/src/datamigration/azext_datamigration/generated/custom.py
@@ -12,6 +12,87 @@
from azure.cli.core.util import sdk_no_wait
+def datamigration_sql_db_show(client,
+ resource_group_name,
+ sqldb_instance_name,
+ target_db_name,
+ migration_operation_id=None,
+ expand=None):
+ return client.get(resource_group_name=resource_group_name,
+ sql_db_instance_name=sqldb_instance_name,
+ target_db_name=target_db_name,
+ migration_operation_id=migration_operation_id,
+ expand=expand)
+
+
+def datamigration_sql_db_create(client,
+ resource_group_name,
+ sqldb_instance_name,
+ target_db_name,
+ scope=None,
+ source_sql_connection=None,
+ source_database_name=None,
+ migration_service=None,
+ target_db_collation=None,
+ target_sql_connection=None,
+ table_list=None,
+ no_wait=False):
+ parameters = {}
+ parameters['properties'] = {}
+ if scope is not None:
+ parameters['properties']['scope'] = scope
+ if source_sql_connection is not None:
+ parameters['properties']['source_sql_connection'] = source_sql_connection
+ if source_database_name is not None:
+ parameters['properties']['source_database_name'] = source_database_name
+ if migration_service is not None:
+ parameters['properties']['migration_service'] = migration_service
+ if target_db_collation is not None:
+ parameters['properties']['target_database_collation'] = target_db_collation
+ if target_sql_connection is not None:
+ parameters['properties']['target_sql_connection'] = target_sql_connection
+ if table_list is not None:
+ parameters['properties']['table_list'] = table_list
+ if len(parameters['properties']) == 0:
+ del parameters['properties']
+ return sdk_no_wait(no_wait,
+ client.begin_create_or_update,
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sqldb_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters)
+
+
+def datamigration_sql_db_delete(client,
+ resource_group_name,
+ sqldb_instance_name,
+ target_db_name,
+ force=None,
+ no_wait=False):
+ return sdk_no_wait(no_wait,
+ client.begin_delete,
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sqldb_instance_name,
+ target_db_name=target_db_name,
+ force=force)
+
+
+def datamigration_sql_db_cancel(client,
+ resource_group_name,
+ sqldb_instance_name,
+ target_db_name,
+ migration_operation_id,
+ no_wait=False):
+ parameters = {}
+ parameters['migration_operation_id'] = migration_operation_id
+ return sdk_no_wait(no_wait,
+ client.begin_cancel,
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sqldb_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters)
+
+
def datamigration_sql_managed_instance_show(client,
resource_group_name,
managed_instance_name,
@@ -33,9 +114,7 @@ def datamigration_sql_managed_instance_create(client,
source_sql_connection=None,
source_database_name=None,
migration_service=None,
- migration_operation_id=None,
target_db_collation=None,
- provisioning_error=None,
offline_configuration=None,
source_location=None,
target_location=None,
@@ -50,12 +129,8 @@ def datamigration_sql_managed_instance_create(client,
parameters['properties']['source_database_name'] = source_database_name
if migration_service is not None:
parameters['properties']['migration_service'] = migration_service
- if migration_operation_id is not None:
- parameters['properties']['migration_operation_id'] = migration_operation_id
if target_db_collation is not None:
parameters['properties']['target_database_collation'] = target_db_collation
- if provisioning_error is not None:
- parameters['properties']['provisioning_error'] = provisioning_error
if offline_configuration is not None:
parameters['properties']['offline_configuration'] = offline_configuration
parameters['properties']['backup_configuration'] = {}
@@ -77,11 +152,10 @@ def datamigration_sql_managed_instance_cancel(client,
resource_group_name,
managed_instance_name,
target_db_name,
- migration_operation_id=None,
+ migration_operation_id,
no_wait=False):
parameters = {}
- if migration_operation_id is not None:
- parameters['migration_operation_id'] = migration_operation_id
+ parameters['migration_operation_id'] = migration_operation_id
return sdk_no_wait(no_wait,
client.begin_cancel,
resource_group_name=resource_group_name,
@@ -94,11 +168,10 @@ def datamigration_sql_managed_instance_cutover(client,
resource_group_name,
managed_instance_name,
target_db_name,
- migration_operation_id=None,
+ migration_operation_id,
no_wait=False):
parameters = {}
- if migration_operation_id is not None:
- parameters['migration_operation_id'] = migration_operation_id
+ parameters['migration_operation_id'] = migration_operation_id
return sdk_no_wait(no_wait,
client.begin_cutover,
resource_group_name=resource_group_name,
@@ -128,9 +201,7 @@ def datamigration_sql_vm_create(client,
source_sql_connection=None,
source_database_name=None,
migration_service=None,
- migration_operation_id=None,
target_db_collation=None,
- provisioning_error=None,
offline_configuration=None,
source_location=None,
target_location=None,
@@ -145,12 +216,8 @@ def datamigration_sql_vm_create(client,
parameters['properties']['source_database_name'] = source_database_name
if migration_service is not None:
parameters['properties']['migration_service'] = migration_service
- if migration_operation_id is not None:
- parameters['properties']['migration_operation_id'] = migration_operation_id
if target_db_collation is not None:
parameters['properties']['target_database_collation'] = target_db_collation
- if provisioning_error is not None:
- parameters['properties']['provisioning_error'] = provisioning_error
if offline_configuration is not None:
parameters['properties']['offline_configuration'] = offline_configuration
parameters['properties']['backup_configuration'] = {}
@@ -172,11 +239,10 @@ def datamigration_sql_vm_cancel(client,
resource_group_name,
sql_vm_name,
target_db_name,
- migration_operation_id=None,
+ migration_operation_id,
no_wait=False):
parameters = {}
- if migration_operation_id is not None:
- parameters['migration_operation_id'] = migration_operation_id
+ parameters['migration_operation_id'] = migration_operation_id
return sdk_no_wait(no_wait,
client.begin_cancel,
resource_group_name=resource_group_name,
@@ -189,11 +255,10 @@ def datamigration_sql_vm_cutover(client,
resource_group_name,
sql_vm_name,
target_db_name,
- migration_operation_id=None,
+ migration_operation_id,
no_wait=False):
parameters = {}
- if migration_operation_id is not None:
- parameters['migration_operation_id'] = migration_operation_id
+ parameters['migration_operation_id'] = migration_operation_id
return sdk_no_wait(no_wait,
client.begin_cutover,
resource_group_name=resource_group_name,
diff --git a/src/datamigration/azext_datamigration/manual/_params.py b/src/datamigration/azext_datamigration/manual/_params.py
index 52cfa023fba..44bf7c04634 100644
--- a/src/datamigration/azext_datamigration/manual/_params.py
+++ b/src/datamigration/azext_datamigration/manual/_params.py
@@ -11,6 +11,14 @@
# pylint: disable=too-many-statements
# pylint: disable=line-too-long
+from azure.cli.core.commands.parameters import (
+ resource_group_name_type,
+)
+from azext_datamigration.action import (
+ AddSourceSqlConnection,
+ AddTargetSqlConnection
+)
+
def load_arguments(self, _):
@@ -46,3 +54,18 @@ def load_arguments(self, _):
with self.argument_context('datamigration register-integration-runtime') as c:
c.argument('auth_key', type=str, help='AuthKey of SQL Migration Service')
c.argument('ir_path', type=str, help='Path of Integration Runtime MSI')
+
+ with self.argument_context('datamigration sql-db create') as c:
+ c.argument('resource_group_name', resource_group_name_type)
+ c.argument('sqldb_instance_name', type=str, help='Name of the target SQL Database Server.')
+ c.argument('target_db_name', type=str, help='The name of the target database.')
+ c.argument('scope', type=str, help='Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL '
+ 'DB)')
+ c.argument('source_sql_connection', action=AddSourceSqlConnection, nargs='+', help='Source SQL Server '
+ 'connection details.')
+ c.argument('source_database_name', type=str, help='Name of the source database.')
+ c.argument('migration_service', type=str, help='Resource Id of the Migration Service.')
+ c.argument('target_db_collation', type=str, help='Database collation to be used for the target database.')
+ c.argument('target_sql_connection', action=AddTargetSqlConnection, nargs='+', help='Target SQL DB connection '
+ 'details.')
+ c.argument('table_list', nargs='+', help='List of tables to copy.')
diff --git a/src/datamigration/azext_datamigration/manual/action.py b/src/datamigration/azext_datamigration/manual/action.py
new file mode 100644
index 00000000000..7d4ce4a232c
--- /dev/null
+++ b/src/datamigration/azext_datamigration/manual/action.py
@@ -0,0 +1,68 @@
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for
+# license information.
+#
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is
+# regenerated.
+# --------------------------------------------------------------------------
+
+
+# pylint: disable=protected-access
+
+# pylint: disable=no-self-use
+
+# pylint: disable=consider-using-f-string
+
+# pylint: disable=raise-missing-from
+
+import argparse
+from collections import defaultdict
+from knack.util import CLIError
+
+
+class AddTargetSqlConnection(argparse.Action):
+ def __call__(self, parser, namespace, values, option_string=None):
+ action = self.get_action(values, option_string)
+ namespace.target_sql_connection = action
+
+ def get_action(self, values, option_string):
+ try:
+ properties = defaultdict(list)
+ for (k, v) in (x.split('=', 1) for x in values):
+ properties[k].append(v)
+ properties = dict(properties)
+ except ValueError:
+ raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string))
+ d = {}
+ for k in properties:
+ kl = k.lower()
+ v = properties[k]
+
+ if kl == 'data-source':
+ d['data_source'] = v[0]
+
+ elif kl == 'authentication':
+ d['authentication'] = v[0]
+
+ elif kl == 'user-name':
+ d['user_name'] = v[0]
+
+ elif kl == 'password':
+ d['password'] = v[0]
+
+ elif kl == 'encrypt-connection':
+ d['encrypt_connection'] = v[0]
+
+ elif kl == 'trust-server-certificate':
+ d['trust_server_certificate'] = v[0]
+
+ else:
+ raise CLIError(
+ 'Unsupported Key {} is provided for parameter target-sql-connection. All possible keys are:'
+ ' data-source, authentication, user-name, password, encrypt-connection, trust-server-certificate'
+ .format(k)
+ )
+
+ return d
diff --git a/src/datamigration/azext_datamigration/manual/tests/latest/test_datamigration_scenario.py b/src/datamigration/azext_datamigration/manual/tests/latest/test_datamigration_scenario.py
index 8ae85a6b8d1..ed69a8a2d10 100644
--- a/src/datamigration/azext_datamigration/manual/tests/latest/test_datamigration_scenario.py
+++ b/src/datamigration/azext_datamigration/manual/tests/latest/test_datamigration_scenario.py
@@ -26,7 +26,7 @@ def setup_scenario(test):
"vmTargetDb": "tsum-Db-VM"
}),#12. Create Common Params
test.kwargs.update({
- "migrationService": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
+ "migrationService": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
"miScope": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi",
"vmScope": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/DMSCmdletTest-SqlVM",
"sourceDBName": "AdventureWorks",
@@ -43,12 +43,12 @@ def setup_scenario(test):
"fsSourceLocation":"'{\"fileShare\":{\"path\":\"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup\\\\tsuman\",\"password\":\"XXXXXXXXXXXX\",\"username\":\"AALAB03-2K8\\hijavatestlocaluser\"}}'"
}), #Blob
test.kwargs.update({
- "blobSourceLocation": "'{\"AzureBlob\":{\"storageAccountResourceId\":\"/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage\",\"accountKey\":\"XXXXXXXXXXXX/XXXXXXXXXXXX\",\"blobContainerName\":\"tsum38-adventureworks\"}}'",
+ "blobSourceLocation": "'{\"AzureBlob\":{\"storageAccountResourceId\":\"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage\",\"accountKey\":\"XXXXXXXXXXXX/XXXXXXXXXXXX\",\"blobContainerName\":\"tsum38-adventureworks\"}}'",
"miOnlineBlobTargetDb":"tsum-Db-mi-online-blob9"
}), # VM DBs
test.kwargs.update({
"vmOnlineFsTargetDb":"tsum-Db-vm-online-fs9",
- "vmOnlineBlobTargetDb": "tsum-Db-vm-online-blob9"
+ "vmOnlineBlobTargetDb": "tsum-Db-vm-online-blob10"
})# Offline
test.kwargs.update({
"lastBackupName":"AdventureWorksTransactionLog2.trn",
@@ -56,8 +56,21 @@ def setup_scenario(test):
"miOfflineBlobTargetDb": "tsum-Db-mi-offline-blob",
"vmOfflineFsTargetDb":"tsum-Db-vm-offline-fs",
"vmOfflineBlobTargetDb": "tsum-Db-vm-offline-blob9"
+ }) # Show DB parameters
+ test.kwargs.update({
+ "dbRG":"tsum38RG",
+ "sqlserver":"dmstestsqldb",
+ "dbTargetDb": "NewDb"
+ }) # Db Migration parameters
+ test.kwargs.update({
+ "targetDataSource":"dmstestsqldb.database.windows.net",
+ "targetUserName":"demouser",
+ "targetPassword": "XXXXXXXXXXXX",
+ "targetAuthentication": "SqlAuthentication",
+ "dbSourceDBName": "Brih",
+ "tableName": "[dbo].[Table_1]",
+ "dbScope": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb"
})
-
#Test Cases
#1. SQL Service Create
@@ -410,8 +423,9 @@ def step_sql_vm_online_blob_cancel_Confirm(test, checks=None):
'--sql-vm-name "{virtualMachine}" '
'--target-db-name "{vmOnlineBlobTargetDb}"',
checks=checks)
+
'''
- #20. MI Offline FS Create
+#20. MI Offline FS Create
def step_sql_managed_instance_offline_fileshare_create(test, checks=None):
if checks is None:
checks = []
@@ -428,7 +442,7 @@ def step_sql_managed_instance_offline_fileshare_create(test, checks=None):
'--offline-configuration offline=true last-backup-name="{lastBackupName}"',
checks=checks)
- #21. MI Offline Blob Create
+#21. MI Offline Blob Create
def step_sql_managed_instance_offline_blob_create (test, checks=None):
if checks is None:
checks = []
@@ -462,6 +476,7 @@ def step_sql_vm_offline_fileshare_create (test, checks=None):
'--offline-configuration offline=true last-backup-name="{lastBackupName}"',
checks=checks)
'''
+
#23. VM Offline Blob Create
def step_sql_vm_offline_blob_create(test, checks=None):
if checks is None:
@@ -479,34 +494,136 @@ def step_sql_vm_offline_blob_create(test, checks=None):
'--offline-configuration offline=true last-backup-name="{lastBackupName}"',
checks=checks)
+#24. DB Migration Show
+def step_sql_db_show(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db show '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}"',
+ checks=checks)
+
+#25. DB Migration create
+def step_sql_db_offline_create(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db create '
+ '--migration-service "{migrationService}" '
+ '--scope "{dbScope}" '
+ '--source-database-name "{dbSourceDBName}" '
+ '--source-sql-connection authentication="{authentication}" data-source="{dataSource}" password="{password}" user-name="{userName}" '
+ '--target-sql-connection authentication="{targetAuthentication}" data-source="{targetDataSource}" password="{targetPassword}" user-name="{targetUserName}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--resource-group "{dbRG}" '
+ '--sqldb-instance-name "{sqlserver}"',
+ checks=checks)
+
+#26. DB Migration selected tables create
+def step_sql_db_offline_tablelist_create(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db create '
+ '--migration-service "{migrationService}" '
+ '--scope "{dbScope}" '
+ '--source-database-name "{dbSourceDBName}" '
+ '--source-sql-connection authentication="{authentication}" data-source="{dataSource}" password="{password}" user-name="{userName}" '
+ '--target-sql-connection authentication="{targetAuthentication}" data-source="{targetDataSource}" password="{targetPassword}" user-name="{targetUserName}" '
+ '--table-list "{tableName}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--resource-group "{dbRG}" '
+ '--sqldb-instance-name "{sqlserver}"',
+ checks=checks)
+
+#26. DB Migration Delete
+def step_sql_db_offline_delete(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db delete '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--force -y',
+ checks=checks)
+
+
+#26. DB Migration cancel
+def step_sql_db_offline_cancel(test, checks=None):
+ if checks is None:
+ checks = []
+ dbOfflineMigrationStats = test.cmd('az datamigration sql-db show '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--expand=MigrationStatusDetails').get_output_in_json()
+ test.kwargs.update({
+ "dbOfflineCancelMigrationId": dbOfflineMigrationStats["properties"]["migrationOperationId"]
+ })
+
+ test.cmd('az datamigration sql-db cancel '
+ '--resource-group "{dbRG}" '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--migration-operation-id "{dbOfflineCancelMigrationId}"',
+ checks=checks)
+
+
+#26. DB Migration selected tables check for completion
+def step_sql_db_offline_tablelist_complete(test, checks=None):
+ if checks is None:
+ checks = []
+ dbOfflineMigrationStats = test.cmd('az datamigration sql-db show '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--expand=MigrationStatusDetails').get_output_in_json()
+ migrationStatus = dbOfflineMigrationStats["properties"]["migrationStatus"]
+
+ while migrationStatus == "InProgress":
+
+ time.sleep(30)
+ dbOfflineMigrationStats = test.cmd('az datamigration sql-db show '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}" '
+ '--expand=MigrationStatusDetails').get_output_in_json()
+ migrationStatus = dbOfflineMigrationStats["properties"]["migrationStatus"]
+
+ test.cmd('az datamigration sql-db show '
+ '--sqldb-instance-name "{sqlserver}" '
+ '--resource-group "{dbRG}" '
+ '--target-db-name "{dbTargetDb}"',
+ checks=checks)
# Env cleanup_scenario
def cleanup_scenario(test):
pass
-
-# Testcase: Scenario
+# # Testcase: Scenario
def call_scenario(test):
setup_scenario(test)
try:
- #1. SQL Service Create
+ #1. SQL Service Create
step_sql_service_create(test, checks=[
test.check("location", "{location}", case_sensitive=False),
test.check("name", "{createSqlMigrationService}", case_sensitive=False),
test.check("provisioningState", "Succeeded", case_sensitive=False)
])
- #2. SQL Service Show
+ #2. SQL Service Show
step_sql_service_show(test, checks=[
test.check("location", "{location}", case_sensitive=False),
test.check("name", "{sqlMigrationService}", case_sensitive=False)
])
- #3. SQL Service List RG
+
+ #3. SQL Service List RG
step_sql_service_list_rg(test)
+ '''
#4. SQL Service List Sub
step_sql_service_list_sub(test)
+ '''
#5. SQL Service List Migration
step_sql_service_list_migration(test)
@@ -532,32 +649,32 @@ def call_scenario(test):
test.check("properties.kind", "SqlMi", case_sensitive=False)
])
- #11. VM Show
+ # #11. VM Show
step_sql_vm_show(test, checks=[
test.check("name", "{vmTargetDb}", case_sensitive=False),
test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
test.check("properties.kind", "SqlVm", case_sensitive=False)
])
- #12. MI Online FileShare Create
- step_sql_managed_instance_online_fileshare_create(test, checks=[
- test.check("name", "{miOnlineFsTargetDb}", case_sensitive=False),
- test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
- test.check("properties.kind", "SqlMi", case_sensitive=False),
- test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
- test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
- ])
+ # #12. MI Online FileShare Create
+ # step_sql_managed_instance_online_fileshare_create(test, checks=[
+ # test.check("name", "{miOnlineFsTargetDb}", case_sensitive=False),
+ # test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ # test.check("properties.kind", "SqlMi", case_sensitive=False),
+ # test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ # test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
+ # ])
- #13.1 MI Online FileShare Cutover
- step_sql_managed_instance_online_fileshare_cutover(test)
-
- #13.2 MI Online FileShare Cutover Confirm
- step_sql_managed_instance_online_fileshare_cutover_Confirm(test, checks=[
- test.check("name", "{miOnlineFsTargetDb}", case_sensitive=False),
- test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
- test.check("properties.kind", "SqlMi", case_sensitive=False),
- test.check("properties.migrationStatus", "Succeeded", case_sensitive=False)
- ])
+ # #13.1 MI Online FileShare Cutover
+ # step_sql_managed_instance_online_fileshare_cutover(test)
+
+ # #13.2 MI Online FileShare Cutover Confirm
+ # step_sql_managed_instance_online_fileshare_cutover_Confirm(test, checks=[
+ # test.check("name", "{miOnlineFsTargetDb}", case_sensitive=False),
+ # test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ # test.check("properties.kind", "SqlMi", case_sensitive=False),
+ # test.check("properties.migrationStatus", "Succeeded", case_sensitive=False)
+ # ])
#14. MI Online Blob Create
step_sql_managed_instance_online_blob_create(test, checks=[
@@ -579,25 +696,25 @@ def call_scenario(test):
test.check("properties.migrationStatus", "Canceled", case_sensitive=False)
])
- #16. VM Online FileShare Create
- step_sql_vm_online_fileshare_create(test, checks=[
- test.check("name", "{vmOnlineFsTargetDb}", case_sensitive=False),
- test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
- test.check("properties.kind", "SqlVm", case_sensitive=False),
- test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
- test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
- ])
+ # #16. VM Online FileShare Create
+ # step_sql_vm_online_fileshare_create(test, checks=[
+ # test.check("name", "{vmOnlineFsTargetDb}", case_sensitive=False),
+ # test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ # test.check("properties.kind", "SqlVm", case_sensitive=False),
+ # test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ # test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
+ # ])
- #17.1 VM Online FileShare Cutover
- step_sql_vm_online_fileshare_cutover(test)
+ # #17.1 VM Online FileShare Cutover
+ # step_sql_vm_online_fileshare_cutover(test)
- #17.2 VM Online FileShare Cutover
- step_sql_vm_online_fileshare_cutover_Confirm(test, checks=[
- test.check("name", "{vmOnlineFsTargetDb}", case_sensitive=False),
- test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
- test.check("properties.kind", "SqlVm", case_sensitive=False),
- test.check("properties.migrationStatus", "Succeeded", case_sensitive=False)
- ])
+ # #17.2 VM Online FileShare Cutover
+ # step_sql_vm_online_fileshare_cutover_Confirm(test, checks=[
+ # test.check("name", "{vmOnlineFsTargetDb}", case_sensitive=False),
+ # test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ # test.check("properties.kind", "SqlVm", case_sensitive=False),
+ # test.check("properties.migrationStatus", "Succeeded", case_sensitive=False)
+ # ])
#18. VM Online Blob Create
@@ -608,10 +725,20 @@ def call_scenario(test):
test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
])
- '''
- #19. VM Online Blob Cancel
+
+ time.sleep(120)
+ #19.1 VM Online Blob Cancel
step_sql_vm_online_blob_cancel(test)
+
+ #19.2 VM Online Blob Cancel Confirm
+ step_sql_vm_online_blob_cancel_Confirm(test, checks=[
+ test.check("name", "{vmOnlineBlobTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlVm", case_sensitive=False),
+ test.check("properties.migrationStatus", "Canceled", case_sensitive=False)
+ ])
+ '''
#20. MI Offline FS Create
step_sql_managed_instance_offline_fileshare_create(test, checks=[
test.check("name", "{miOfflineFsTargetDb}", case_sensitive=False),
@@ -636,7 +763,7 @@ def call_scenario(test):
test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
])
- '''
+
#23. VM Offline Blob Create
step_sql_vm_offline_blob_create(test, checks=[
test.check("name", "{vmOfflineBlobTargetDb}", case_sensitive=False),
@@ -645,8 +772,61 @@ def call_scenario(test):
test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
])
+ '''
+
+ #24. DB Migration Show
+ step_sql_db_show(test, checks=[
+ test.check("name", "{dbTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlDb", case_sensitive=False)
+ ])
+
+ #25.1. DB Migration create
+ step_sql_db_offline_create(test, checks=[
+ test.check("name", "{dbTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlDb", case_sensitive=False),
+ test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
+ ])
+
+ #25.2. DB Migration delete
+ step_sql_db_offline_delete(test)
+
+ #26.1. DB Migration create
+ step_sql_db_offline_create(test, checks=[
+ test.check("name", "{dbTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlDb", case_sensitive=False),
+ test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ test.check("properties.migrationStatus", "InProgress", case_sensitive=False)
+ ])
+
+ #26.2. DB Migration cancel
+ step_sql_db_offline_cancel(test)
+
+ #27.1. DB Migration selected tables create
+ step_sql_db_offline_tablelist_create(test, checks=[
+ test.check("name", "{dbTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlDb", case_sensitive=False),
+ test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ test.check("properties.migrationStatus", "InProgress", case_sensitive=False),
+ test.check("properties.tableList[0]", "{tableName}", case_sensitive=False)
+ ])
+
+ #27.2. DB Migration selected tables check for completion
+ step_sql_db_offline_tablelist_complete(test, checks=[
+ test.check("name", "{dbTargetDb}", case_sensitive=False),
+ test.check("type", "Microsoft.DataMigration/databaseMigrations", case_sensitive=False),
+ test.check("properties.kind", "SqlDb", case_sensitive=False),
+ test.check("properties.provisioningState", "Succeeded", case_sensitive=False),
+ test.check("properties.migrationStatus", "Succeeded", case_sensitive=False),
+ test.check("properties.tableList[0]", "{tableName}", case_sensitive=False)
+ ])
except Exception as e:
raise e
finally:
- cleanup_scenario(test)
\ No newline at end of file
+ cleanup_scenario(test)
+
diff --git a/src/datamigration/azext_datamigration/tests/latest/example_steps.py b/src/datamigration/azext_datamigration/tests/latest/example_steps.py
index 741c8b377b9..5cacbaf9c7a 100644
--- a/src/datamigration/azext_datamigration/tests/latest/example_steps.py
+++ b/src/datamigration/azext_datamigration/tests/latest/example_steps.py
@@ -139,6 +139,99 @@ def step_sql_service_list_integration_runtime_metric(test, checks=None):
checks=checks)
+# EXAMPLE: /DatabaseMigrationsSqlDb/put/Create or Update Database Migration resource with Maximum parameters.
+@try_manual
+def step_sql_db_create(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db create '
+ '--migration-service "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.DataMigrati'
+ 'on/sqlMigrationServices/{mySqlMigrationService}" '
+ '--scope "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Sql/servers/sqldbinstan'
+ 'ce" '
+ '--source-database-name "aaa" '
+ '--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true '
+ 'password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--table-list "[Schema1].[TableName1]" "[Schema2].[TableName2]" '
+ '--target-sql-connection authentication="SqlAuthentication" data-source="sqldbinstance" '
+ 'encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlDb/put/Create or Update Database Migration resource with Minimum parameters.
+@try_manual
+def step_sql_db_create2(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db create '
+ '--migration-service "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.DataMigrati'
+ 'on/sqlMigrationServices/{mySqlMigrationService}" '
+ '--scope "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Sql/servers/sqldbinstan'
+ 'ce" '
+ '--source-database-name "aaa" '
+ '--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true '
+ 'password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--target-sql-connection authentication="SqlAuthentication" data-source="sqldbinstance" '
+ 'encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlDb/get/Get Sql DB database Migration with the expand parameter.
+@try_manual
+def step_sql_db_show(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db show '
+ '--expand "MigrationStatusDetails" '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlDb/get/Get Sql DB database Migration without the expand parameter.
+@try_manual
+def step_sql_db_show2(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db show '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlDb/post/Stop ongoing migration for the database.
+@try_manual
+def step_sql_db_cancel(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db cancel '
+ '--migration-operation-id "9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07" '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlDb/delete/Delete Database Migration resource.
+@try_manual
+def step_sql_db_delete(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-db delete -y '
+ '--resource-group "{rg}" '
+ '--sqldb-instance-name "sqldbinstance" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
# EXAMPLE: /DatabaseMigrationsSqlMi/put/Create or Update Database Migration resource with Maximum parameters.
@try_manual
def step_sql_managed_instance_create(test, checks=None):
@@ -165,12 +258,41 @@ def step_sql_managed_instance_create(test, checks=None):
# EXAMPLE: /DatabaseMigrationsSqlMi/put/Create or Update Database Migration resource with Minimum parameters.
@try_manual
def step_sql_managed_instance_create2(test, checks=None):
- return step_sql_managed_instance_create(test, checks)
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-managed-instance create '
+ '--managed-instance-name "managedInstance1" '
+ '--source-location "{{\\"fileShare\\":{{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\bbb\\\\\\\\ccc\\",\\"password\\'
+ '":\\"placeholder\\",\\"username\\":\\"name\\"}}}}" '
+ '--target-location account-key="abcd" storage-account-resource-id="account.database.windows.net" '
+ '--migration-service "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.DataMigrati'
+ 'on/sqlMigrationServices/{mySqlMigrationService}" '
+ '--scope "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Sql/managedInstances/in'
+ 'stance" '
+ '--source-database-name "aaa" '
+ '--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true '
+ 'password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--resource-group "{rg}" '
+ '--target-db-name "db1"',
+ checks=checks)
-# EXAMPLE: /DatabaseMigrationsSqlMi/get/Get Database Migration resource.
+# EXAMPLE: /DatabaseMigrationsSqlMi/get/Get Sql MI database Migration with the expand parameter.
@try_manual
def step_sql_managed_instance_show(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-managed-instance show '
+ '--expand "MigrationStatusDetails" '
+ '--managed-instance-name "managedInstance1" '
+ '--resource-group "{rg}" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlMi/get/Get Sql MI database Migration without the expand parameter.
+@try_manual
+def step_sql_managed_instance_show2(test, checks=None):
if checks is None:
checks = []
test.cmd('az datamigration sql-managed-instance show '
@@ -232,12 +354,41 @@ def step_sql_vm_create(test, checks=None):
# EXAMPLE: /DatabaseMigrationsSqlVm/put/Create or Update Database Migration resource with Minimum parameters.
@try_manual
def step_sql_vm_create2(test, checks=None):
- return step_sql_vm_create(test, checks)
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-vm create '
+ '--source-location "{{\\"fileShare\\":{{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\bbb\\\\\\\\ccc\\",\\"password\\'
+ '":\\"placeholder\\",\\"username\\":\\"name\\"}}}}" '
+ '--target-location account-key="abcd" storage-account-resource-id="account.database.windows.net" '
+ '--migration-service "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.DataMigrati'
+ 'on/sqlMigrationServices/{mySqlMigrationService}" '
+ '--scope "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.SqlVirtualMachine/sqlVi'
+ 'rtualMachines/testvm" '
+ '--source-database-name "aaa" '
+ '--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true '
+ 'password="placeholder" trust-server-certificate=true user-name="bbb" '
+ '--resource-group "{rg}" '
+ '--sql-vm-name "testvm" '
+ '--target-db-name "db1"',
+ checks=checks)
-# EXAMPLE: /DatabaseMigrationsSqlVm/get/Get Database Migration resource.
+# EXAMPLE: /DatabaseMigrationsSqlVm/get/Get Sql VM database Migration with the expand parameter.
@try_manual
def step_sql_vm_show(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az datamigration sql-vm show '
+ '--expand "MigrationStatusDetails" '
+ '--resource-group "{rg}" '
+ '--sql-vm-name "testvm" '
+ '--target-db-name "db1"',
+ checks=checks)
+
+
+# EXAMPLE: /DatabaseMigrationsSqlVm/get/Get Sql VM database Migration without the expand parameter.
+@try_manual
+def step_sql_vm_show2(test, checks=None):
if checks is None:
checks = []
test.cmd('az datamigration sql-vm show '
diff --git a/src/datamigration/azext_datamigration/tests/latest/recordings/test_datamigration_Scenario.yaml b/src/datamigration/azext_datamigration/tests/latest/recordings/test_datamigration_Scenario.yaml
index 5e9e0cc2e34..b7736d9e281 100644
--- a/src/datamigration/azext_datamigration/tests/latest/recordings/test_datamigration_Scenario.yaml
+++ b/src/datamigration/azext_datamigration/tests/latest/recordings/test_datamigration_Scenario.yaml
@@ -17,15 +17,15 @@ interactions:
ParameterSetName:
- --location --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2022-03-30-preview
response:
body:
string: '{"properties":{"provisioningState":"Provisioning"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2","name":"sqlServiceUnitTest-Pipeline2","type":"Microsoft.DataMigration/sqlMigrationServices"}'
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmigrationservice/operationResults/cb8821cc-6cba-447e-afc8-dca6dc902f55?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmigrationservice/operationResults/129aa1b4-dee8-4824-84a5-7def79fef836?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
@@ -33,7 +33,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:21:42 GMT
+ - Mon, 18 Apr 2022 10:54:29 GMT
expires:
- '-1'
pragma:
@@ -45,7 +45,7 @@ interactions:
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- - '1198'
+ - '1199'
status:
code: 201
message: Created
@@ -63,12 +63,12 @@ interactions:
ParameterSetName:
- --location --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmigrationservice/operationResults/cb8821cc-6cba-447e-afc8-dca6dc902f55?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmigrationservice/operationResults/129aa1b4-dee8-4824-84a5-7def79fef836?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"cb8821cc-6cba-447e-afc8-dca6dc902f55","status":"Succeeded","startTime":"2022-01-18T12:21:40.867Z"}'
+ string: '{"name":"129aa1b4-dee8-4824-84a5-7def79fef836","status":"Succeeded","startTime":"2022-04-18T10:54:28.597Z"}'
headers:
cache-control:
- no-cache
@@ -77,7 +77,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:21:58 GMT
+ - Mon, 18 Apr 2022 10:54:44 GMT
expires:
- '-1'
pragma:
@@ -109,9 +109,9 @@ interactions:
ParameterSetName:
- --location --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2022-03-30-preview
response:
body:
string: '{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":"NeedRegistration"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2","name":"sqlServiceUnitTest-Pipeline2","type":"Microsoft.DataMigration/sqlMigrationServices"}'
@@ -123,7 +123,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:21:58 GMT
+ - Mon, 18 Apr 2022 10:54:45 GMT
expires:
- '-1'
pragma:
@@ -155,9 +155,9 @@ interactions:
ParameterSetName:
- --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest?api-version=2022-03-30-preview
response:
body:
string: '{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":"NeedRegistration"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest","name":"dmsCliUnitTest","type":"Microsoft.DataMigration/sqlMigrationServices"}'
@@ -169,7 +169,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:00 GMT
+ - Mon, 18 Apr 2022 10:54:46 GMT
expires:
- '-1'
pragma:
@@ -201,100 +201,35 @@ interactions:
ParameterSetName:
- --resource-group
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices?api-version=2021-10-30-preview
- response:
- body:
- string: '{"value":[{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","name":"sqlServiceUnitTest-Pipeline","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest","name":"dmsCliUnitTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest7SBLE","name":"sqlServiceUnitTest7SBLE","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline1","name":"sqlServiceUnitTest-Pipeline1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2","name":"sqlServiceUnitTest-Pipeline2","type":"Microsoft.DataMigration/sqlMigrationServices"}]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1792'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:22:01 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-original-request-ids:
- - af2d6aec-ed0e-4d41-8e1f-fc8b1cc90afe
- - eadd36a8-7b13-429e-ab3c-66893fddec73
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-service list
- Connection:
- - keep-alive
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/sqlMigrationServices?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices?api-version=2022-03-30-preview
response:
body:
- string: '{"value":[{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimtest10/providers/Microsoft.DataMigration/sqlMigrationServices/aasimdms944","name":"aasimdms944","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestdmseastus2","name":"aasimtestdmseastus2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/anjalitest","name":"anjalitest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/anjali/providers/Microsoft.DataMigration/sqlMigrationServices/anjali-dms-v2","name":"anjali-dms-v2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","name":"sqlServiceUnitTest-Pipeline","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavaeastus2/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasvcapril23","name":"hijavasvcapril23","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice123","name":"hijavaservice123","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lonwrg/providers/Microsoft.DataMigration/sqlMigrationServices/lonwdmseus2","name":"lonwdmseus2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/aasim0509test","name":"aasim0509test","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/madhurirg/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice9","name":"hijavaservice9","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRGEastUS2/providers/Microsoft.DataMigration/sqlMigrationServices/myservice1","name":"myservice1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRGEastUS2/providers/Microsoft.DataMigration/sqlMigrationServices/myservice-eastus2","name":"myservice-eastus2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/mscmdlet","name":"mscmdlet","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/MyCLISqlMigrationService","name":"MyCLISqlMigrationService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/MyCLISqlMigrationService1","name":"MyCLISqlMigrationService1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/vasuMService","name":"vasuMService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsAuth","name":"dmsAuth","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmscheck","name":"dmscheck","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsMigration","name":"dmsMigration","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMS","name":"psDMS","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest267abchywo","name":"psDMStest267abchywo","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest3rbnp5yalc","name":"psDMStest3rbnp5yalc","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest49jxbqeuta","name":"psDMStest49jxbqeuta","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest6xzdi2cqjy","name":"psDMStest6xzdi2cqjy","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest7b5m0vptuw","name":"psDMStest7b5m0vptuw","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStest9gezsb4x5o","name":"psDMStest9gezsb4x5o","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestbxyther6fp","name":"psDMStestbxyther6fp","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestdn2lcrmj6o","name":"psDMStestdn2lcrmj6o","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestjtpgsridov","name":"psDMStestjtpgsridov","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestkgy63ticsz","name":"psDMStestkgy63ticsz","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestlfo728yn3g","name":"psDMStestlfo728yn3g","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestmw4tqh6vok","name":"psDMStestmw4tqh6vok","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStesto2sjnmaq6y","name":"psDMStesto2sjnmaq6y","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestpjvnwf04q7","name":"psDMStestpjvnwf04q7","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestxftmn20j81","name":"psDMStestxftmn20j81","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStestxnjlyh5gmp","name":"psDMStestxnjlyh5gmp","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/psTest/providers/Microsoft.DataMigration/sqlMigrationServices/psDMStesty6i3w7zmbf","name":"psDMStesty6i3w7zmbf","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rackimtest2/providers/Microsoft.DataMigration/sqlMigrationServices/test0903","name":"test0903","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/dmsscript1","name":"dmsscript1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/dmsUnit","name":"dmsUnit","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/dmsUnitTest","name":"dmsUnitTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/scriptdms19","name":"scriptdms19","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/scriptdms23","name":"scriptdms23","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/scriptdms29","name":"scriptdms29","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/scripty1","name":"scripty1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/myservice2","name":"myservice2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/myservice3","name":"myservice3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/yalyservice2","name":"yalyservice2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eastustest/providers/Microsoft.DataMigration/sqlMigrationServices/EastUSTestService","name":"EastUSTestService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/KMVsRG/providers/Microsoft.DataMigration/sqlMigrationServices/kmvadms","name":"kmvadms","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/madhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/ms123","name":"ms123","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/madhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/vms1","name":"vms1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/SaGangwarSqlMigrationService","name":"SaGangwarSqlMigrationService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SaGangwarGroup/providers/Microsoft.DataMigration/sqlMigrationServices/SaGangwarSqlMigrationService","name":"SaGangwarSqlMigrationService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/MySqlMigrationService","name":"MySqlMigrationService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/SaGangwarSqlMigrationService","name":"SaGangwarSqlMigrationService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vasundhra/providers/Microsoft.DataMigration/sqlMigrationServices/trial","name":"trial","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"canadacentral","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/canadacentraltest/providers/Microsoft.DataMigration/sqlMigrationServices/CanadaCentralTest","name":"CanadaCentralTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CentralUsTest/providers/Microsoft.DataMigration/sqlMigrationServices/CentralUsTest","name":"CentralUsTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"canadaeast","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CanadaEastTest/providers/Microsoft.DataMigration/sqlMigrationServices/CanadaEastTest","name":"CanadaEastTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"westeurope","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalywesteurope/providers/Microsoft.DataMigration/sqlMigrationServices/failovertest","name":"failovertest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"australiaeast","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergaustraliaeast/providers/Microsoft.DataMigration/sqlMigrationServices/serviceaustraliaeast","name":"serviceaustraliaeast","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"australiasoutheast","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergaustraliasoutheast/providers/Microsoft.DataMigration/sqlMigrationServices/serviceaustraliasoutheast","name":"serviceaustraliasoutheast","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"francecentral","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergfrancec/providers/Microsoft.DataMigration/sqlMigrationServices/servicefrancec","name":"servicefrancec","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergindiacentral/providers/Microsoft.DataMigration/sqlMigrationServices/serviceindiacentral","name":"serviceindiacentral","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"southindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergindiasouth/providers/Microsoft.DataMigration/sqlMigrationServices/serviceindiasouth","name":"serviceindiasouth","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"japaneast","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergjapaneast/providers/Microsoft.DataMigration/sqlMigrationServices/servicejapaneast","name":"servicejapaneast","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"southcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergussouth/providers/Microsoft.DataMigration/sqlMigrationServices/serviceussouth","name":"serviceussouth","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicergasiasoutheast/providers/Microsoft.DataMigration/sqlMigrationServices/serviceasiasoutheast","name":"serviceasiasoutheast","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testyaly/providers/Microsoft.DataMigration/sqlMigrationServices/testyaly","name":"testyaly","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/MadhuriBB","name":"MadhuriBB","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/MadhuriServiceBugBash","name":"MadhuriServiceBugBash","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/kamurugatest1","name":"kamurugatest1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicerguksouth/providers/Microsoft.DataMigration/sqlMigrationServices/serviceuksouth","name":"serviceuksouth","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/rohitdhtest","name":"rohitdhtest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaDmsUkSouth1","name":"hijavaDmsUkSouth1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicerguswest/providers/Microsoft.DataMigration/sqlMigrationServices/serviceuswest","name":"serviceuswest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicerguswest2/providers/Microsoft.DataMigration/sqlMigrationServices/serviceuswest2","name":"serviceuswest2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalyeastasia/providers/Microsoft.DataMigration/sqlMigrationServices/CRUDTest","name":"CRUDTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"northeurope","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalyNorthEurope/providers/Microsoft.DataMigration/sqlMigrationServices/DMSTest","name":"DMSTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"ukwest","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalyukwest/providers/Microsoft.DataMigration/sqlMigrationServices/DMSFailoverTest","name":"DMSFailoverTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalywestcentralus/providers/Microsoft.DataMigration/sqlMigrationServices/FailoverTest","name":"FailoverTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azrRG/providers/Microsoft.DataMigration/sqlMigrationServices/azrTest2","name":"azrTest2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/asdfsadfsadfasd","name":"asdfsadfsadfasd","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test6","name":"test6","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test1","name":"test1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","name":"sqlServiceUnitTest-Pipeline","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/test0608202122","name":"test0608202122","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/myservice1","name":"myservice1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/vmsf","name":"vmsf","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/datamigration-test-ads","name":"datamigration-test-ads","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/alias","name":"alias","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/alias-dms","name":"alias-dms","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/sqltoolsdemo331","name":"sqltoolsdemo331","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/tsum38-td","name":"tsum38-td","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/061020211057","name":"061020211057","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestdms0504","name":"aasimtestdms0504","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline1","name":"sqlServiceUnitTest-Pipeline1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/listdmscanary","name":"listdmscanary","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RSETLEM-RG-DMS/providers/Microsoft.DataMigration/sqlMigrationServices/RSETLEM-DMS-Service20","name":"RSETLEM-DMS-Service20","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg/providers/Microsoft.DataMigration/sqlMigrationServices/hijava_canary_controller","name":"hijava_canary_controller","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/new-testing-sqlmigrationservice-cd5j6m1bh8","name":"new-testing-sqlmigrationservice-cd5j6m1bh8","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2","name":"sqlServiceUnitTest-Pipeline2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservicesep01","name":"hijavaservicesep01","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-test-dms-330","name":"aasim-test-dms-330","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-dms-test-330-2","name":"aasim-dms-test-330-2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijava_canary_controller","name":"hijava_canary_controller","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test060821","name":"test060821","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.DataMigration/sqlMigrationServices/vasumsFiddler","name":"vasumsFiddler","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestbutton","name":"aasimtestbutton","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/vmTest0611256","name":"vmTest0611256","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/at0608t","name":"at0608t","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtest1","name":"aasimtest1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimtest10/providers/Microsoft.DataMigration/sqlMigrationServices/aasim728157","name":"aasim728157","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/test","name":"test","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/test123","name":"test123","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-dms-330-test-2","name":"aasim-dms-330-test-2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test1234","name":"test1234","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtest0505","name":"aasimtest0505","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice3","name":"hijavaservice3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice3","name":"hijavaservice3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rohitdhmi/providers/Microsoft.DataMigration/sqlMigrationServices/rohitdhbugbush1021","name":"rohitdhbugbush1021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/TestFactory0505","name":"TestFactory0505","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/yalyservice4","name":"yalyservice4","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test5","name":"test5","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aaskhan060821trial24","name":"aaskhan060821trial24","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicerguseast2euap/providers/Microsoft.DataMigration/sqlMigrationServices/serviceuseast2euap","name":"serviceuseast2euap","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice2","name":"hijavaservice2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/MadhuriTestFactory1","name":"MadhuriTestFactory1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/smartura/providers/Microsoft.DataMigration/sqlMigrationServices/smarturatest","name":"smarturatest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/trailTD-delete","name":"trailTD-delete","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RSETLEM-DMS-RG/providers/Microsoft.DataMigration/sqlMigrationServices/DMS-05192021","name":"DMS-05192021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/MadhuriTestFactory","name":"MadhuriTestFactory","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasvc25may","name":"hijavasvc25may","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/yalytest","name":"yalytest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimTestDms060821trial1","name":"aasimTestDms060821trial1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasep22-3","name":"hijavasep22-3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimTest","name":"aasimTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rackimtest2/providers/Microsoft.DataMigration/sqlMigrationServices/0910DMS","name":"0910DMS","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RSETLEM-RG-MC41/providers/Microsoft.DataMigration/sqlMigrationServices/RSETLEM-MC41","name":"RSETLEM-MC41","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestirdms419","name":"aasimtestirdms419","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/vasu","name":"vasu","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/MadhuriTestFactory2","name":"MadhuriTestFactory2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aaskhan060821trial23","name":"aaskhan060821trial23","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimtest10/providers/Microsoft.DataMigration/sqlMigrationServices/test2","name":"test2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest7SBLE","name":"sqlServiceUnitTest7SBLE","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rackimtest/providers/Microsoft.DataMigration/sqlMigrationServices/test1","name":"test1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rackimtest2/providers/Microsoft.DataMigration/sqlMigrationServices/test1","name":"test1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aaskhan","name":"aaskhan","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test/providers/Microsoft.DataMigration/sqlMigrationServices/brih-ADMS-v2","name":"brih-ADMS-v2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/vmanhasADSMS","name":"vmanhasADSMS","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtest412","name":"aasimtest412","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/migrationdemoads/providers/Microsoft.DataMigration/sqlMigrationServices/migrationdemodms2021","name":"migrationdemodms2021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rohitdhmi/providers/Microsoft.DataMigration/sqlMigrationServices/testservicecreation","name":"testservicecreation","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/dms20211030","name":"dms20211030","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/vMS07","name":"vMS07","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/at0608","name":"at0608","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mohamedrg/providers/Microsoft.DataMigration/sqlMigrationServices/mohamedservice001","name":"mohamedservice001","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/madhurirg/providers/Microsoft.DataMigration/sqlMigrationServices/hijavaservice1","name":"hijavaservice1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/06101046","name":"06101046","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test123ggjugu","name":"test123ggjugu","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/brih-dms-v2/providers/Microsoft.DataMigration/sqlMigrationServices/brih-dms-v2-2","name":"brih-dms-v2-2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestdms0505","name":"aasimtestdms0505","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestdms","name":"aasimtestdms","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/myservice","name":"myservice","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rackimtest2/providers/Microsoft.DataMigration/sqlMigrationServices/0901dms","name":"0901dms","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/myservice2","name":"myservice2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasep22-2","name":"hijavasep22-2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavajuly28","name":"hijavajuly28","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/MySqlMigrationService1","name":"MySqlMigrationService1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/brih-dms-v2/providers/Microsoft.DataMigration/sqlMigrationServices/brih-dms-v2","name":"brih-dms-v2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest","name":"dmsCliUnitTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimTest06102021","name":"aasimTest06102021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/TestFactory0107_1","name":"TestFactory0107_1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/blakhani-ads/providers/Microsoft.DataMigration/sqlMigrationServices/blakhani-ads-ui","name":"blakhani-ads-ui","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/at0608tt","name":"at0608tt","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-dms-330-3","name":"aasim-dms-330-3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/madhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/dms2021","name":"dms2021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/asdfasdfasdf","name":"asdfasdfasdf","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/yalyservice1","name":"yalyservice1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test123","name":"test123","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/trialTD","name":"trialTD","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim0610","name":"aasim0610","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimtest10/providers/Microsoft.DataMigration/sqlMigrationServices/test454","name":"test454","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimbuttontest2","name":"aasimbuttontest2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestbutton2","name":"aasimtestbutton2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/MyTestService","name":"MyTestService","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/trail-custom","name":"trail-custom","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasvccanary","name":"hijavasvccanary","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/test124","name":"test124","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimtestbuttons","name":"aasimtestbuttons","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/at0608ttf","name":"at0608ttf","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aasimTestVM_group/providers/Microsoft.DataMigration/sqlMigrationServices/test123ds","name":"test123ds","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasep22-1","name":"hijavasep22-1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hijavarg_canary/providers/Microsoft.DataMigration/sqlMigrationServices/hijavasvc25may2","name":"hijavasvc25may2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalyeastus2EUAP/providers/Microsoft.DataMigration/sqlMigrationServices/failovertest","name":"failovertest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/brih-dms-v2/providers/Microsoft.DataMigration/sqlMigrationServices/kebarlet-dms","name":"kebarlet-dms","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-test-06-10-2021","name":"aasim-test-06-10-2021","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MadhuriRG/providers/Microsoft.DataMigration/sqlMigrationServices/factoryeuap","name":"factoryeuap","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/IR1","name":"IR1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasimTestDms060821trial2","name":"aasimTestDms060821trial2","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aasim-test0610","name":"aasim-test0610","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.DataMigration/sqlMigrationServices/aaskhan-dms-0329","name":"aaskhan-dms-0329","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Failed","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yaly/providers/Microsoft.DataMigration/sqlMigrationServices/yalyservice3","name":"yalyservice3","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"centraluseuap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/central_us_euap_testing/providers/Microsoft.DataMigration/sqlMigrationServices/hijavacanary2svc1","name":"hijavacanary2svc1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"koreasouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yalyKoreaSouth/providers/Microsoft.DataMigration/sqlMigrationServices/FailoverTest","name":"FailoverTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"swedensouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/brih-dms-v2/providers/Microsoft.DataMigration/sqlMigrationServices/hijava-sweden-svc1","name":"hijava-sweden-svc1","type":"Microsoft.DataMigration/sqlMigrationServices"}]}'
+ string: '{"value":[{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest","name":"dmsCliUnitTest","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline1","name":"sqlServiceUnitTest-Pipeline1","type":"Microsoft.DataMigration/sqlMigrationServices"},{"properties":{"provisioningState":"Succeeded","integrationRuntimeState":""},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2","name":"sqlServiceUnitTest-Pipeline2","type":"Microsoft.DataMigration/sqlMigrationServices"}]}'
headers:
cache-control:
- no-cache
content-length:
- - '69255'
+ - '1078'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:04 GMT
+ - Mon, 18 Apr 2022 10:54:47 GMT
expires:
- '-1'
pragma:
- no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
- x-ms-original-request-ids:
- - 16ece97e-6938-4260-9b80-7f13e19a924d
- - 4e2482ea-da3b-4c0e-944b-5e2db041bf20
- - fd22c1c8-4bb3-489b-94a5-3104748659d5
- - 12348367-7727-45d9-8f6e-87ac62e3fc5a
- - e023c2a9-13cc-4996-98d8-4ab7520a9b68
- - 01f909d4-f8fe-4428-9bd7-d012dd6f83ae
- - 26f79643-e909-49fb-aa1e-e7d119cd2318
- - c590de5b-60ce-47a6-98b5-c9979afc83b6
- - 724a81b9-0d02-4e47-b144-2cd615305336
- - 7981d5a4-c384-44a8-b1eb-44ae6cc0888f
- - 46122513-36c7-489c-b7ec-cd9b412a14a0
- - b0bfcc4d-5dd1-4812-8926-2fc9c338891f
- - d61554c8-c3c6-4e3e-84db-6e92d9ba737e
- - 6f854a8c-625e-44e3-835b-06b16b195b5b
- - 649caf64-d6a4-46da-b9a8-c164e9ee4069
- - d45cb482-c95d-4b44-8bba-bed802d82b63
- - 50fb543a-4ed7-427f-aa2b-54d4f0076af6
- - ab19eb6c-49f6-4e16-aff8-e9d23bde6b6d
- - a0d10b61-0e92-4e91-86ad-b8cd007f7e4f
- - 4b6e0454-c5bb-477d-8961-367bc7b6133c
- - 281d3f77-cd91-42dd-8cc7-647eec5d5230
- - 13b7df81-c88c-42d8-9efd-9e707bdc1364
- - 1e59bac3-61c9-49c3-90d4-e29f2dc53ee2
- - 4e02e79a-2b42-48ab-a59b-c16686ed3bb7
- - cfd60385-93df-4c0f-831e-cf93be1440e0
status:
code: 200
message: OK
@@ -312,9 +247,9 @@ interactions:
ParameterSetName:
- --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listMigrations?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listMigrations?api-version=2022-03-30-preview
response:
body:
string: '{"value":[]}'
@@ -326,7 +261,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:05 GMT
+ - Mon, 18 Apr 2022 10:54:48 GMT
expires:
- '-1'
pragma:
@@ -360,9 +295,9 @@ interactions:
ParameterSetName:
- --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listAuthKeys?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listAuthKeys?api-version=2022-03-30-preview
response:
body:
string: '{"authKey1":"IR@XXXXXXXXXX","authKey2":"IR@XXXXXXXXXX"}'
@@ -374,7 +309,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:06 GMT
+ - Mon, 18 Apr 2022 10:54:48 GMT
expires:
- '-1'
pragma:
@@ -412,9 +347,9 @@ interactions:
ParameterSetName:
- --key-name --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/regenerateAuthKeys?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/regenerateAuthKeys?api-version=2022-03-30-preview
response:
body:
string: '{"authKey1":"IR@XXXXXXXXXX"}'
@@ -426,7 +361,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:09 GMT
+ - Mon, 18 Apr 2022 10:54:50 GMT
expires:
- '-1'
pragma:
@@ -462,9 +397,9 @@ interactions:
ParameterSetName:
- --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listMonitoringData?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/dmsCliUnitTest/listMonitoringData?api-version=2022-03-30-preview
response:
body:
string: '{"name":"default-ir","nodes":[]}'
@@ -476,7 +411,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:11 GMT
+ - Mon, 18 Apr 2022 10:54:51 GMT
expires:
- '-1'
pragma:
@@ -512,25 +447,25 @@ interactions:
ParameterSetName:
- -y --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLIUnitTest/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline2?api-version=2022-03-30-preview
response:
body:
string: ''
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/deletesqlmigrationservice/operationResults/c3d681ba-415b-41e2-a014-51cc1236d370?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/deletesqlmigrationservice/operationResults/43e1b622-463a-4488-97fc-7c7552f40bc9?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- '0'
date:
- - Tue, 18 Jan 2022 12:22:14 GMT
+ - Mon, 18 Apr 2022 10:54:54 GMT
expires:
- '-1'
location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/sqlMigrationServiceOperationResults/c3d681ba-415b-41e2-a014-51cc1236d370?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/sqlMigrationServiceOperationResults/43e1b622-463a-4488-97fc-7c7552f40bc9?api-version=2022-03-30-preview
pragma:
- no-cache
server:
@@ -558,12 +493,12 @@ interactions:
ParameterSetName:
- -y --resource-group --name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/deletesqlmigrationservice/operationResults/c3d681ba-415b-41e2-a014-51cc1236d370?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/deletesqlmigrationservice/operationResults/43e1b622-463a-4488-97fc-7c7552f40bc9?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"c3d681ba-415b-41e2-a014-51cc1236d370","status":"Succeeded","startTime":"2022-01-18T12:22:13.963Z"}'
+ string: '{"name":"43e1b622-463a-4488-97fc-7c7552f40bc9","status":"Succeeded","startTime":"2022-04-18T10:54:53.923Z"}'
headers:
cache-control:
- no-cache
@@ -572,7 +507,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:29 GMT
+ - Mon, 18 Apr 2022 10:55:09 GMT
expires:
- '-1'
pragma:
@@ -604,21 +539,21 @@ interactions:
ParameterSetName:
- --managed-instance-name --resource-group --target-db-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-CLI-MIOnline?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-CLI-MIOnline?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2021-12-30T06:16:43.983Z","endedOn":"2021-12-30T07:34:46.553Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/IR1","migrationOperationId":"c20c73a6-9cf4-488e-b458-243b9eb43e24","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-CLI-MIOnline","name":"tsum-CLI-MIOnline","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileShare":{"path":"\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman"},"fileStorageType":"FileShare"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2021-12-30T06:16:43.983Z","endedOn":"2021-12-30T07:34:46.553Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/IR1","migrationOperationId":"c20c73a6-9cf4-488e-b458-243b9eb43e24","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-CLI-MIOnline","name":"tsum-CLI-MIOnline","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '874'
+ - '1095'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:31 GMT
+ - Mon, 18 Apr 2022 10:55:11 GMT
expires:
- '-1'
pragma:
@@ -650,21 +585,21 @@ interactions:
ParameterSetName:
- --resource-group --sql-vm-name --target-db-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-VM?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-VM?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2021-12-28T17:31:36.843Z","endedOn":"2021-12-28T17:45:08.573Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/IR1","migrationOperationId":"18aff4bb-892a-4c9a-bc31-49110101255d","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-VM","name":"tsum-Db-VM","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileShare":{"path":"\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman"},"fileStorageType":"FileShare"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2021-12-28T17:31:36.843Z","endedOn":"2021-12-28T17:45:08.573Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/IR1","migrationOperationId":"18aff4bb-892a-4c9a-bc31-49110101255d","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-VM","name":"tsum-Db-VM","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '884'
+ - '1105'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:32 GMT
+ - Mon, 18 Apr 2022 10:55:11 GMT
expires:
- '-1'
pragma:
@@ -687,10 +622,12 @@ interactions:
"sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
"authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
"XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
- "backupConfiguration": {"sourceLocation": {"fileShare": {"path": "\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman",
- "username": "AALAB03-2K8\\hijavatestlocaluser", "password": "XXXXXXXXXXXX"}},
- "targetLocation": {"storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
+ "backupConfiguration": {"sourceLocation": {"azureBlob": {"storageAccountResourceId":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage",
+ "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX",
+ "blobContainerName": "tsum38-adventureworks"}}, "targetLocation": {"storageAccountResourceId":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
"accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}}}}'
headers:
Accept:
@@ -702,30 +639,30 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '1094'
+ - '1254'
Content-Type:
- application/json
ParameterSetName:
- --source-location --target-location --migration-service --scope --source-database-name
--source-sql-connection --target-db-name --resource-group --managed-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/5b46960e-ecd2-4d4c-a45c-7358dd399d61?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/b6507332-c794-497d-ab75-e9ad5fff963f?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '737'
+ - '797'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:35 GMT
+ - Mon, 18 Apr 2022 10:55:14 GMT
expires:
- '-1'
pragma:
@@ -734,13 +671,17 @@ interactions:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
- code: 201
- message: Created
+ code: 200
+ message: OK
- request:
body: null
headers:
@@ -756,21 +697,21 @@ interactions:
- --source-location --target-location --migration-service --scope --source-database-name
--source-sql-connection --target-db-name --resource-group --managed-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/5b46960e-ecd2-4d4c-a45c-7358dd399d61?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/b6507332-c794-497d-ab75-e9ad5fff963f?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"5b46960e-ecd2-4d4c-a45c-7358dd399d61","status":"InProgress","startTime":"2022-01-18T12:22:34.747Z"}'
+ string: '{"name":"b6507332-c794-497d-ab75-e9ad5fff963f","status":"Succeeded","startTime":"2022-04-18T10:55:14.117Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:22:51 GMT
+ - Mon, 18 Apr 2022 10:55:29 GMT
expires:
- '-1'
pragma:
@@ -803,21 +744,21 @@ interactions:
- --source-location --target-location --migration-service --scope --source-database-name
--source-sql-connection --target-db-name --resource-group --managed-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/5b46960e-ecd2-4d4c-a45c-7358dd399d61?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"5b46960e-ecd2-4d4c-a45c-7358dd399d61","status":"Succeeded","startTime":"2022-01-18T12:22:34.747Z"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T10:55:15.18Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"6f808196-44c7-477f-b0d3-7cc1a4255cdf","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '107'
+ - '929'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:06 GMT
+ - Mon, 18 Apr 2022 10:55:30 GMT
expires:
- '-1'
pragma:
@@ -839,32 +780,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance create
+ - datamigration sql-managed-instance show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --managed-instance-name
+ - --managed-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","blobContainerName":"tsum38-adventureworks","pendingLogBackupsCount":0},"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T10:55:15.18Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"6f808196-44c7-477f-b0d3-7cc1a4255cdf","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '870'
+ - '1063'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:06 GMT
+ - Mon, 18 Apr 2022 10:55:31 GMT
expires:
- '-1'
pragma:
@@ -883,34 +823,40 @@ interactions:
code: 200
message: OK
- request:
- body: null
+ body: '{"migrationOperationId": "6f808196-44c7-477f-b0d3-7cc1a4255cdf"}'
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
+ Content-Length:
+ - '64'
+ Content-Type:
+ - application/json
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9/cancel?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"StartFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Canceling","sourceDatabaseName":"AdventureWorks","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '1033'
+ - '562'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:07 GMT
+ - Mon, 18 Apr 2022 10:55:33 GMT
expires:
- '-1'
pragma:
@@ -925,6 +871,8 @@ interactions:
- Accept-Encoding
x-content-type-options:
- nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
status:
code: 200
message: OK
@@ -932,31 +880,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:19 GMT
+ - Mon, 18 Apr 2022 10:55:48 GMT
expires:
- '-1'
pragma:
@@ -978,31 +926,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:31 GMT
+ - Mon, 18 Apr 2022 10:56:03 GMT
expires:
- '-1'
pragma:
@@ -1024,31 +972,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:42 GMT
+ - Mon, 18 Apr 2022 10:56:19 GMT
expires:
- '-1'
pragma:
@@ -1070,31 +1018,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:23:54 GMT
+ - Mon, 18 Apr 2022 10:56:34 GMT
expires:
- '-1'
pragma:
@@ -1116,31 +1064,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:24:06 GMT
+ - Mon, 18 Apr 2022 10:56:49 GMT
expires:
- '-1'
pragma:
@@ -1162,31 +1110,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:24:18 GMT
+ - Mon, 18 Apr 2022 10:57:04 GMT
expires:
- '-1'
pragma:
@@ -1208,31 +1156,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"InProgress","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:24:31 GMT
+ - Mon, 18 Apr 2022 10:57:19 GMT
expires:
- '-1'
pragma:
@@ -1254,31 +1202,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-managed-instance cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --managed-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"994ed8f7-6169-4c3f-b05e-2eb7b9f1eae6","status":"Succeeded","startTime":"2022-04-18T10:55:32.847Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:24:42 GMT
+ - Mon, 18 Apr 2022 10:57:34 GMT
expires:
- '-1'
pragma:
@@ -1297,34 +1245,51 @@ interactions:
code: 200
message: OK
- request:
- body: null
+ body: '{"properties": {"kind": "SqlVm", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/DMSCmdletTest-SqlVM",
+ "sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
+ "authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
+ "XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
+ "backupConfiguration": {"sourceLocation": {"azureBlob": {"storageAccountResourceId":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage",
+ "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX",
+ "blobContainerName": "tsum38-adventureworks"}}, "targetLocation": {"storageAccountResourceId":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
+ "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}}}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
+ Content-Length:
+ - '1266'
+ Content-Type:
+ - application/json
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10","name":"tsum-Db-vm-online-blob10","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '1035'
+ - '823'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:24:55 GMT
+ - Mon, 18 Apr 2022 10:57:37 GMT
expires:
- '-1'
pragma:
@@ -1339,6 +1304,8 @@ interactions:
- Accept-Encoding
x-content-type-options:
- nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
status:
code: 200
message: OK
@@ -1346,31 +1313,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"InProgress","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '1035'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:25:07 GMT
+ - Mon, 18 Apr 2022 10:57:52 GMT
expires:
- '-1'
pragma:
@@ -1392,33 +1360,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"InProgress","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '2661'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:25:20 GMT
+ - Mon, 18 Apr 2022 10:58:08 GMT
expires:
- '-1'
pragma:
@@ -1440,33 +1407,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"InProgress","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '2661'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:25:32 GMT
+ - Mon, 18 Apr 2022 10:58:23 GMT
expires:
- '-1'
pragma:
@@ -1488,33 +1454,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"InProgress","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '2661'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:25:43 GMT
+ - Mon, 18 Apr 2022 10:58:38 GMT
expires:
- '-1'
pragma:
@@ -1536,33 +1501,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"InProgress","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '2661'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:25:55 GMT
+ - Mon, 18 Apr 2022 10:58:53 GMT
expires:
- '-1'
pragma:
@@ -1584,33 +1548,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/5c89b1d2-954f-44c7-945d-7c9e3cfc6933?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"5c89b1d2-954f-44c7-945d-7c9e3cfc6933","status":"Succeeded","startTime":"2022-04-18T10:57:37.26Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '2661'
+ - '106'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:26:07 GMT
+ - Mon, 18 Apr 2022 10:59:08 GMT
expires:
- '-1'
pragma:
@@ -1632,33 +1595,32 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm create
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --source-location --target-location --migration-service --scope --source-database-name
+ --source-sql-connection --target-db-name --resource-group --sql-vm-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T10:59:09.107Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"2e8b78cf-f22e-4475-8f3d-3a0836b2843f","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10","name":"tsum-Db-vm-online-blob10","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '3206'
+ - '956'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:26:18 GMT
+ - Mon, 18 Apr 2022 10:59:08 GMT
expires:
- '-1'
pragma:
@@ -1684,29 +1646,27 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm show
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --sql-vm-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","blobContainerName":"tsum38-adventureworks","pendingLogBackupsCount":0},"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T10:59:09.107Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"2e8b78cf-f22e-4475-8f3d-3a0836b2843f","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10","name":"tsum-Db-vm-online-blob10","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '3206'
+ - '1090'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:26:30 GMT
+ - Mon, 18 Apr 2022 11:01:10 GMT
expires:
- '-1'
pragma:
@@ -1725,36 +1685,40 @@ interactions:
code: 200
message: OK
- request:
- body: null
+ body: '{"migrationOperationId": "2e8b78cf-f22e-4475-8f3d-3a0836b2843f"}'
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
+ Content-Length:
+ - '64'
+ Content-Type:
+ - application/json
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10/cancel?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Canceling","sourceDatabaseName":"AdventureWorks","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10","name":"tsum-Db-vm-online-blob10","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '3206'
+ - '588'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:26:41 GMT
+ - Mon, 18 Apr 2022 11:01:12 GMT
expires:
- '-1'
pragma:
@@ -1769,6 +1733,8 @@ interactions:
- Accept-Encoding
x-content-type-options:
- nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
status:
code: 200
message: OK
@@ -1776,33 +1742,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"98b22b3b-659d-4464-804c-74f12ccaf749","status":"InProgress","startTime":"2022-04-18T11:01:11.297Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '3206'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:26:53 GMT
+ - Mon, 18 Apr 2022 11:01:27 GMT
expires:
- '-1'
pragma:
@@ -1824,33 +1788,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"98b22b3b-659d-4464-804c-74f12ccaf749","status":"InProgress","startTime":"2022-04-18T11:01:11.297Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '3206'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:27:04 GMT
+ - Mon, 18 Apr 2022 11:01:42 GMT
expires:
- '-1'
pragma:
@@ -1872,33 +1834,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":58,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"98b22b3b-659d-4464-804c-74f12ccaf749","status":"InProgress","startTime":"2022-04-18T11:01:11.297Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '3206'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:27:15 GMT
+ - Mon, 18 Apr 2022 11:01:57 GMT
expires:
- '-1'
pragma:
@@ -1920,4006 +1880,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3266'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:27:26 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3266'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:27:37 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3266'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:27:49 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3266'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:00 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":275.36099243164062,"copyDuration":119,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3266'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:12 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"StartLogBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '6149'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:24 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"currentRestoringFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3308'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:36 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"currentRestoringFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3308'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:48 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"currentRestoringFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3308'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:28:59 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"currentRestoringFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3308'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:29:11 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restoring","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":false,"currentRestoringFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3308'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:29:24 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restored","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":true,"hasBackupChecksums":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restored","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":369.43399047851562,"copyDuration":167,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":true,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","isFullBackupRestored":true,"currentRestoringFilename":"AdventureWorksFullBackup.bak","lastRestoredFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3357'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:29:35 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"migrationOperationId": "5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd"}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- Content-Length:
- - '64'
- Content-Type:
- - application/json
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9/cutover?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:23:00.387Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- cache-control:
- - no-cache
- content-length:
- - '870'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:29:39 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63","status":"InProgress","startTime":"2022-01-18T12:29:38.463Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:29:54 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63","status":"InProgress","startTime":"2022-01-18T12:29:38.463Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:30:10 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63","status":"InProgress","startTime":"2022-01-18T12:29:38.463Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:30:25 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63","status":"InProgress","startTime":"2022-01-18T12:29:38.463Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:30:40 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cutover
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlmimigration/operationResults/6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"6d84ca72-f4fe-4aa1-8c6f-ff3d99351c63","status":"Succeeded","startTime":"2022-01-18T12:29:38.463Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '107'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:30:56 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2022-01-18T12:23:00.387Z","endedOn":"2022-01-18T12:30:43.86Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"5b1d7d1b-0e2c-4bd1-bb47-2b209791eccd","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-fs9","name":"tsum-Db-mi-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '905'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:30:58 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"properties": {"kind": "SqlMi", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi",
- "sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
- "authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
- "XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
- "backupConfiguration": {"sourceLocation": {"azureBlob": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX",
- "blobContainerName": "tsum38-adventureworks"}}, "targetLocation": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance create
- Connection:
- - keep-alive
- Content-Length:
- - '1271'
- Content-Type:
- - application/json
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --managed-instance-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/3240ef81-26a4-4ed3-9945-b1bdf73559ba?api-version=2021-10-30-preview
- cache-control:
- - no-cache
- content-length:
- - '741'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:00 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --managed-instance-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlmimigration/operationResults/3240ef81-26a4-4ed3-9945-b1bdf73559ba?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3240ef81-26a4-4ed3-9945-b1bdf73559ba","status":"Succeeded","startTime":"2022-01-18T12:31:00.173Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '107'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --managed-instance-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:31:00.517Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"50e46d33-15df-4deb-8cbe-50a0facbe626","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '874'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance show
- Connection:
- - keep-alive
- ParameterSetName:
- - --managed-instance-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","blobContainerName":"tsum38-adventureworks","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:31:00.517Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"50e46d33-15df-4deb-8cbe-50a0facbe626","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1008'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:18 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"migrationOperationId": "50e46d33-15df-4deb-8cbe-50a0facbe626"}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- Content-Length:
- - '64'
- Content-Type:
- - application/json
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9/cancel?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi","provisioningState":"Canceling","sourceDatabaseName":"AdventureWorks","kind":"SqlMi"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MigrationTesting/providers/Microsoft.Sql/managedInstances/migrationtestmi/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-mi-online-blob9","name":"tsum-Db-mi-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- cache-control:
- - no-cache
- content-length:
- - '562'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:21 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:36 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:31:52 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:32:08 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:32:23 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:32:38 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:32:54 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"InProgress","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:33:09 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-managed-instance cancel
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --managed-instance-name --target-db-name --migration-operation-id
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlmimigration/operationResults/3fb5961a-2d4f-4c2c-823e-fae5272119cd?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"3fb5961a-2d4f-4c2c-823e-fae5272119cd","status":"Succeeded","startTime":"2022-01-18T12:31:21.263Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '107'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:33:25 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"properties": {"kind": "SqlVm", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/DMSCmdletTest-SqlVM",
- "sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
- "authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
- "XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
- "backupConfiguration": {"sourceLocation": {"fileShare": {"path": "\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman",
- "username": "AALAB03-2K8\\hijavatestlocaluser", "password": "XXXXXXXXXXXX"}},
- "targetLocation": {"storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- Content-Length:
- - '1106'
- Content-Type:
- - application/json
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- cache-control:
- - no-cache
- content-length:
- - '761'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:33:28 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1198'
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:33:43 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:33:58 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:34:13 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:34:31 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:34:46 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:35:01 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:35:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:35:32 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:35:47 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:02 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:18 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"InProgress","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:33 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/834dc234-c23f-41bb-aa3a-e440579e2f0d?api-version=2021-10-30-preview
- response:
- body:
- string: '{"name":"834dc234-c23f-41bb-aa3a-e440579e2f0d","status":"Succeeded","startTime":"2022-01-18T12:33:27.483Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '107'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:48 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '894'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:49 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"StartFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1057'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:36:51 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:37:04 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:37:14 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:37:26 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:37:37 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:37:49 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:00 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:11 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:23 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:34 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:45 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":0},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1059'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:38:58 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2685'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:39:09 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2685'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:39:22 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2685'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:39:34 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2685'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:39:45 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Arrived","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2685'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:39:58 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3204'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:40:09 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3204'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:40:20 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3204'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:40:32 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3204'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:40:44 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":57,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3204'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:40:56 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:41:07 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:41:19 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:41:31 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:41:43 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploading","totalSize":63176192,"dataRead":33554432,"dataWritten":33554432,"copyThroughput":277.69500732421875,"copyDuration":118,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:41:56 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3262'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:42:07 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3262'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:42:19 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3262'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:42:30 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3262'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:42:42 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitForFullBackupUploadOperation","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3262'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:42:53 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"RestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '6130'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:43:05 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitRestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '6134'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:43:17 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitRestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"98b22b3b-659d-4464-804c-74f12ccaf749","status":"InProgress","startTime":"2022-04-18T11:01:11.297Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '6134'
+ - '108'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:43:28 GMT
+ - Mon, 18 Apr 2022 11:02:12 GMT
expires:
- '-1'
pragma:
@@ -5941,63 +1926,31 @@ interactions:
body: null
headers:
Accept:
- - application/json
+ - '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm show
+ - datamigration sql-vm cancel
Connection:
- keep-alive
ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqlvmmigration/operationResults/98b22b3b-659d-4464-804c-74f12ccaf749?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitRestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"98b22b3b-659d-4464-804c-74f12ccaf749","status":"Succeeded","startTime":"2022-04-18T11:01:11.297Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '6134'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:43:40 GMT
+ - Mon, 18 Apr 2022 11:02:27 GMT
expires:
- '-1'
pragma:
@@ -6027,55 +1980,23 @@ interactions:
Connection:
- keep-alive
ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
+ - --resource-group --sql-vm-name --target-db-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitRestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"backupConfiguration":{"sourceLocation":{"fileStorageType":"AzureBlob"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"Canceled","startedOn":"2022-04-18T10:59:09.107Z","endedOn":"2022-04-18T11:02:23.15Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"2e8b78cf-f22e-4475-8f3d-3a0836b2843f","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob10","name":"tsum-Db-vm-online-blob10","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '6134'
+ - '990'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:43:52 GMT
+ - Mon, 18 Apr 2022 11:02:28 GMT
expires:
- '-1'
pragma:
@@ -6101,59 +2022,27 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm show
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
+ - --sqldb-instance-name --resource-group --target-db-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"WaitRestoreStart","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Uploaded","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":false,"fileUploadBlockingErrors":["Failure
- happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''Cannot open backup device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).\nRESTORE HEADERONLY is terminating
- abnormally.,Source=.Net SqlClient Data Provider,SqlErrorNumber=3201,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=3201,State=2,Message=Cannot
- open backup device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\backup''.
- Operating system error 5(Access is denied.).,},{Class=16,Number=3013,State=1,Message=RESTORE
- HEADERONLY is terminating abnormally.,},],''","Failure happened on ''Source''
- side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net SqlClient
- Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test.json''
- is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY is terminating
- abnormally.,},],''","Failure happened on ''Source'' side. ErrorCode=SqlOperationFailed,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A
- database operation failed with the following error: ''The volume on device
- ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test -
- Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.'',Source=,''''Type=System.Data.SqlClient.SqlException,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.\nRESTORE HEADERONLY is terminating abnormally.,Source=.Net
- SqlClient Data Provider,SqlErrorNumber=3254,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=3254,State=1,Message=The
- volume on device ''\\\\aalab03-2k8.redmond.corp.microsoft.com\\SharedBackup\\tsuman\\test
- - Copy.txt'' is empty.,},{Class=16,Number=3013,State=1,Message=RESTORE HEADERONLY
- is terminating abnormally.,},],''"],"pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"Canceled","startedOn":"2022-04-18T10:13:44.08Z","endedOn":"2022-04-18T10:13:52.983Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"b1f1aafa-42bc-4479-9172-5855d4fdb4f1","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '6134'
+ - '973'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:44:04 GMT
+ - Mon, 18 Apr 2022 11:02:29 GMT
expires:
- '-1'
pragma:
@@ -6172,88 +2061,46 @@ interactions:
code: 200
message: OK
- request:
- body: null
+ body: '{"properties": {"kind": "SqlDb", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb",
+ "sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
+ "authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
+ "XXXXXXXXXXXX"}, "sourceDatabaseName": "Brih", "migrationService": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
+ "targetSqlConnection": {"dataSource": "dmstestsqldb.database.windows.net", "authentication":
+ "SqlAuthentication", "userName": "demouser", "password": "XXXXXXXXXXXX"}}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --sql-vm-name --resource-group --target-db-name --expand
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?$expand=MigrationStatusDetails&api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","fullBackupSetInfo":{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restored","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":true,"familyCount":1},"activeBackupSets":[{"backupSetId":"e6b60e53-c7b5-48dd-8f07-95f0caa66de1","firstLSN":"486000000145100000","lastLSN":"486000000145300000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog2.trn","status":"Arrived","totalSize":259584,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:56:02Z","backupFinishDate":"2019-01-11T13:56:02Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"9fceb4b8-3864-45b6-bd35-998619297164","firstLSN":"486000000131000000","lastLSN":"486000000132600000","backupType":"Database","listOfBackupFiles":[{"fileName":"AdventureWorksFullBackup.bak","status":"Restored","totalSize":63176192,"dataRead":63176192,"dataWritten":63176192,"copyThroughput":356.62100219726562,"copyDuration":173,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:53:40Z","backupFinishDate":"2019-01-11T13:53:40Z","isBackupRestored":true,"hasBackupChecksums":true,"familyCount":1},{"backupSetId":"7bdfc66c-14d5-4acc-91d3-d9568cabc0e0","firstLSN":"486000000126400000","lastLSN":"486000000145100000","backupType":"TransactionLog","listOfBackupFiles":[{"fileName":"AdventureWorksTransactionLog1.trn","status":"Arrived","totalSize":325120,"dataRead":0,"dataWritten":0,"copyThroughput":0.0,"copyDuration":0,"familySequenceNumber":1}],"backupStartDate":"2019-01-11T13:55:21Z","backupFinishDate":"2019-01-11T13:55:21Z","isBackupRestored":false,"hasBackupChecksums":true,"familyCount":1}],"invalidFiles":["test
- - Copy.txt","test.json","InvalidBackup %20+ `~1!2@3#4$5%6^7&8(9)0_-+=]}[{;'',,
- ;+&[]~{}.txt"],"blobContainerName":"79b234dd-5f04-4f18-9edd-30ce333b6474","isFullBackupRestored":true,"currentRestoringFilename":"AdventureWorksFullBackup.bak","lastRestoredFilename":"AdventureWorksFullBackup.bak","pendingLogBackupsCount":2},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3355'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:44:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"migrationOperationId": "79b234dd-5f04-4f18-9edd-30ce333b6474"}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db create
Connection:
- keep-alive
Content-Length:
- - '64'
+ - '707'
Content-Type:
- application/json
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9/cutover?api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:36:45.973Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Creating","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/45dcdf4c-3d17-4abc-9a78-24b7ec6729b4?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '894'
+ - '806'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:44:19 GMT
+ - Mon, 18 Apr 2022 11:02:32 GMT
expires:
- '-1'
pragma:
@@ -6281,18 +2128,19 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/45dcdf4c-3d17-4abc-9a78-24b7ec6729b4?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"7783038f-3286-472d-8bbb-b7ac1254d6df","status":"InProgress","startTime":"2022-01-18T12:44:18.447Z"}'
+ string: '{"name":"45dcdf4c-3d17-4abc-9a78-24b7ec6729b4","status":"InProgress","startTime":"2022-04-18T11:02:32.077Z"}'
headers:
cache-control:
- no-cache
@@ -6301,7 +2149,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:44:34 GMT
+ - Mon, 18 Apr 2022 11:02:48 GMT
expires:
- '-1'
pragma:
@@ -6327,27 +2175,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/45dcdf4c-3d17-4abc-9a78-24b7ec6729b4?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"7783038f-3286-472d-8bbb-b7ac1254d6df","status":"InProgress","startTime":"2022-01-18T12:44:18.447Z"}'
+ string: '{"name":"45dcdf4c-3d17-4abc-9a78-24b7ec6729b4","status":"Succeeded","startTime":"2022-04-18T11:02:32.077Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:44:49 GMT
+ - Mon, 18 Apr 2022 11:03:03 GMT
expires:
- '-1'
pragma:
@@ -6373,27 +2222,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"7783038f-3286-472d-8bbb-b7ac1254d6df","status":"InProgress","startTime":"2022-01-18T12:44:18.447Z"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:02:50.483Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"54dd90ce-149f-4221-a74b-e85b37e18b46","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '939'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:45:05 GMT
+ - Mon, 18 Apr 2022 11:03:03 GMT
expires:
- '-1'
pragma:
@@ -6419,27 +2269,29 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db delete
Connection:
- keep-alive
+ Content-Length:
+ - '0'
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --sqldb-instance-name --resource-group --target-db-name --force -y
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?force=true&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"7783038f-3286-472d-8bbb-b7ac1254d6df","status":"InProgress","startTime":"2022-01-18T12:44:18.447Z"}'
+ string: ''
headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/dropsqldbmigration/operationResults/f6f64497-897a-4832-b758-284c837af112?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '108'
- content-type:
- - application/json; charset=utf-8
+ - '0'
date:
- - Tue, 18 Jan 2022 12:45:20 GMT
+ - Mon, 18 Apr 2022 11:03:05 GMT
expires:
- '-1'
pragma:
@@ -6448,12 +2300,10 @@ interactions:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
x-content-type-options:
- nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
status:
code: 200
message: OK
@@ -6465,18 +2315,18 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm cutover
+ - datamigration sql-db delete
Connection:
- keep-alive
ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name --migration-operation-id
+ - --sqldb-instance-name --resource-group --target-db-name --force -y
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cutoversqlvmmigration/operationResults/7783038f-3286-472d-8bbb-b7ac1254d6df?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/dropsqldbmigration/operationResults/f6f64497-897a-4832-b758-284c837af112?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"7783038f-3286-472d-8bbb-b7ac1254d6df","status":"Succeeded","startTime":"2022-01-18T12:44:18.447Z"}'
+ string: '{"name":"f6f64497-897a-4832-b758-284c837af112","status":"Succeeded","startTime":"2022-04-18T11:03:05.953Z"}'
headers:
cache-control:
- no-cache
@@ -6485,53 +2335,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:45:36 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - datamigration sql-vm show
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group --sql-vm-name --target-db-name
- User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9?api-version=2021-10-30-preview
- response:
- body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2022-01-18T12:36:45.973Z","endedOn":"2022-01-18T12:45:20.02Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"79b234dd-5f04-4f18-9edd-30ce333b6474","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-fs9","name":"tsum-Db-vm-online-fs9","type":"Microsoft.DataMigration/databaseMigrations"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '929'
- content-type:
- - application/json; charset=utf-8
- date:
- - Tue, 18 Jan 2022 12:45:37 GMT
+ - Mon, 18 Apr 2022 11:03:20 GMT
expires:
- '-1'
pragma:
@@ -6550,51 +2354,46 @@ interactions:
code: 200
message: OK
- request:
- body: '{"properties": {"kind": "SqlVm", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/DMSCmdletTest-SqlVM",
+ body: '{"properties": {"kind": "SqlDb", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb",
"sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
"authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
- "XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
- "backupConfiguration": {"sourceLocation": {"azureBlob": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX",
- "blobContainerName": "tsum38-adventureworks"}}, "targetLocation": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}}}}'
+ "XXXXXXXXXXXX"}, "sourceDatabaseName": "Brih", "migrationService": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
+ "targetSqlConnection": {"dataSource": "dmstestsqldb.database.windows.net", "authentication":
+ "SqlAuthentication", "userName": "demouser", "password": "XXXXXXXXXXXX"}}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
Content-Length:
- - '1283'
+ - '707'
Content-Type:
- application/json
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob9","name":"tsum-Db-vm-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Creating","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/403726fd-f62e-481a-932c-bbfc733f26a5?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/f9c6e635-000e-4e50-8d99-c147010b83c5?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '765'
+ - '806'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:45:41 GMT
+ - Mon, 18 Apr 2022 11:03:23 GMT
expires:
- '-1'
pragma:
@@ -6618,28 +2417,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/403726fd-f62e-481a-932c-bbfc733f26a5?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/f9c6e635-000e-4e50-8d99-c147010b83c5?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"403726fd-f62e-481a-932c-bbfc733f26a5","status":"InProgress","startTime":"2022-01-18T12:45:41.067Z"}'
+ string: '{"name":"f9c6e635-000e-4e50-8d99-c147010b83c5","status":"Succeeded","startTime":"2022-04-18T11:03:23.073Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:45:56 GMT
+ - Mon, 18 Apr 2022 11:03:38 GMT
expires:
- '-1'
pragma:
@@ -6665,28 +2464,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/403726fd-f62e-481a-932c-bbfc733f26a5?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"403726fd-f62e-481a-932c-bbfc733f26a5","status":"InProgress","startTime":"2022-01-18T12:45:41.067Z"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:03:34.51Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"cbe6ae9c-f5eb-4500-9247-cd5f4a03c9b4","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '938'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:46:13 GMT
+ - Mon, 18 Apr 2022 11:03:38 GMT
expires:
- '-1'
pragma:
@@ -6708,32 +2507,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/403726fd-f62e-481a-932c-bbfc733f26a5?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"403726fd-f62e-481a-932c-bbfc733f26a5","status":"InProgress","startTime":"2022-01-18T12:45:41.067Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"StartSqlDataCopy","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:03:34.51Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"cbe6ae9c-f5eb-4500-9247-cd5f4a03c9b4","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '108'
+ - '1032'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:46:28 GMT
+ - Mon, 18 Apr 2022 11:03:40 GMT
expires:
- '-1'
pragma:
@@ -6752,35 +2550,40 @@ interactions:
code: 200
message: OK
- request:
- body: null
+ body: '{"migrationOperationId": "cbe6ae9c-f5eb-4500-9247-cd5f4a03c9b4"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db cancel
Connection:
- keep-alive
+ Content-Length:
+ - '64'
+ Content-Type:
+ - application/json
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --resource-group --sqldb-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/403726fd-f62e-481a-932c-bbfc733f26a5?api-version=2021-10-30-preview
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb/cancel?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"403726fd-f62e-481a-932c-bbfc733f26a5","status":"Succeeded","startTime":"2022-01-18T12:45:41.067Z"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Canceling","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqldbmigration/operationResults/b0d5fb4c-4a23-403d-bb2a-0e3b056c829b?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '107'
+ - '644'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:46:43 GMT
+ - Mon, 18 Apr 2022 11:03:43 GMT
expires:
- '-1'
pragma:
@@ -6795,6 +2598,8 @@ interactions:
- Accept-Encoding
x-content-type-options:
- nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
status:
code: 200
message: OK
@@ -6806,28 +2611,27 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db cancel
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name
+ - --resource-group --sqldb-instance-name --target-db-name --migration-operation-id
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/cancelsqldbmigration/operationResults/b0d5fb4c-4a23-403d-bb2a-0e3b056c829b?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:46:42.74Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"8b776e61-572b-4365-a9ce-34a3c094b506","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-online-blob9","name":"tsum-Db-vm-online-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"name":"b0d5fb4c-4a23-403d-bb2a-0e3b056c829b","status":"Succeeded","startTime":"2022-04-18T11:03:41.953Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '897'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:46:43 GMT
+ - Mon, 18 Apr 2022 11:03:58 GMT
expires:
- '-1'
pragma:
@@ -6846,52 +2650,47 @@ interactions:
code: 200
message: OK
- request:
- body: '{"properties": {"kind": "SqlVm", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/DMSCmdletTest-SqlVM",
+ body: '{"properties": {"kind": "SqlDb", "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb",
"sourceSqlConnection": {"dataSource": "AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM",
"authentication": "SqlAuthentication", "userName": "hijavatestuser1", "password":
- "XXXXXXXXXXXX"}, "sourceDatabaseName": "AdventureWorks", "migrationService":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/sqlServiceUnitTest-Pipeline",
- "backupConfiguration": {"sourceLocation": {"azureBlob": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tzppesignoff1211/providers/Microsoft.Storage/storageAccounts/hijavateststorage",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX",
- "blobContainerName": "tsum38-adventureworks"}}, "targetLocation": {"storageAccountResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aaskhan/providers/Microsoft.Storage/storageAccounts/aasimmigrationtest",
- "accountKey": "XXXXXXXXXXXX/XXXXXXXXXXXX"}},
- "offlineConfiguration": {"offline": true, "lastBackupName": "AdventureWorksTransactionLog2.trn"}}}'
+ "XXXXXXXXXXXX"}, "sourceDatabaseName": "Brih", "migrationService": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/SqlMigrationServices/tsuman-IR2",
+ "targetSqlConnection": {"dataSource": "dmstestsqldb.database.windows.net", "authentication":
+ "SqlAuthentication", "userName": "demouser", "password": "XXXXXXXXXXXX"}, "tableList":
+ ["[dbo].[Table_1]"]}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
Content-Length:
- - '1381'
+ - '741'
Content-Type:
- application/json
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --table-list --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-offline-blob9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"autoCutoverConfiguration":{"autoCutover":true,"lastBackupName":"AdventureWorksTransactionLog2.trn"},"offlineConfiguration":{"offline":true,"lastBackupName":"AdventureWorksTransactionLog2.trn"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Creating","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-offline-blob9","name":"tsum-Db-vm-offline-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Creating","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/9c5bd682-81a8-41c5-87c7-65b4b4123e32?api-version=2022-03-30-preview
cache-control:
- no-cache
content-length:
- - '961'
+ - '838'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:46:47 GMT
+ - Mon, 18 Apr 2022 11:04:01 GMT
expires:
- '-1'
pragma:
@@ -6900,13 +2699,17 @@ interactions:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
- code: 201
- message: Created
+ code: 200
+ message: OK
- request:
body: null
headers:
@@ -6915,28 +2718,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --table-list --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqldbmigration/operationResults/9c5bd682-81a8-41c5-87c7-65b4b4123e32?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"name":"9c5bd682-81a8-41c5-87c7-65b4b4123e32","status":"Succeeded","startTime":"2022-04-18T11:04:00.653Z"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '107'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:47:03 GMT
+ - Mon, 18 Apr 2022 11:04:16 GMT
expires:
- '-1'
pragma:
@@ -6962,28 +2765,28 @@ interactions:
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db create
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --migration-service --scope --source-database-name --source-sql-connection
+ --target-sql-connection --table-list --target-db-name --resource-group --sqldb-instance-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '971'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:47:18 GMT
+ - Mon, 18 Apr 2022 11:04:16 GMT
expires:
- '-1'
pragma:
@@ -7005,32 +2808,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:47:33 GMT
+ - Mon, 18 Apr 2022 11:04:18 GMT
expires:
- '-1'
pragma:
@@ -7052,32 +2854,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:47:49 GMT
+ - Mon, 18 Apr 2022 11:04:48 GMT
expires:
- '-1'
pragma:
@@ -7099,32 +2900,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:48:05 GMT
+ - Mon, 18 Apr 2022 11:05:20 GMT
expires:
- '-1'
pragma:
@@ -7146,32 +2946,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:48:20 GMT
+ - Mon, 18 Apr 2022 11:05:51 GMT
expires:
- '-1'
pragma:
@@ -7193,32 +2992,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:48:36 GMT
+ - Mon, 18 Apr 2022 11:06:22 GMT
expires:
- '-1'
pragma:
@@ -7240,32 +3038,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1065'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:48:51 GMT
+ - Mon, 18 Apr 2022 11:06:53 GMT
expires:
- '-1'
pragma:
@@ -7287,32 +3084,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[{"tableName":"dbo.Table_1","status":"Succeeded","parallelCopyType":"None","usedParallelCopies":1,"dataRead":400,"dataWritten":400,"rowsRead":20,"rowsCopied":20,"copyStart":"2022-04-18T11:06:50.003Z","copyThroughput":0.014000000432133675,"copyDuration":27}]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1320'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:49:06 GMT
+ - Mon, 18 Apr 2022 11:07:23 GMT
expires:
- '-1'
pragma:
@@ -7334,32 +3130,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"InProgress","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"MonitorMigration","listOfCopyProgressDetails":[{"tableName":"dbo.Table_1","status":"Succeeded","parallelCopyType":"None","usedParallelCopies":1,"dataRead":400,"dataWritten":400,"rowsRead":20,"rowsCopied":20,"copyStart":"2022-04-18T11:06:50.003Z","copyThroughput":0.014000000432133675,"copyDuration":27}]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-04-18T11:04:10.497Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '106'
+ - '1320'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:49:21 GMT
+ - Mon, 18 Apr 2022 11:07:54 GMT
expires:
- '-1'
pragma:
@@ -7381,32 +3176,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name --expand
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration/locations/eastus2euap/operationTypes/createsqlvmmigration/operationResults/2683bec1-0700-4514-a178-392082ba8571?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?$expand=MigrationStatusDetails&api-version=2022-03-30-preview
response:
body:
- string: '{"name":"2683bec1-0700-4514-a178-392082ba8571","status":"Succeeded","startTime":"2022-01-18T12:46:47.2Z"}'
+ string: '{"properties":{"migrationStatusDetails":{"migrationState":"Succeeded","listOfCopyProgressDetails":[{"tableName":"dbo.Table_1","status":"Succeeded","parallelCopyType":"None","usedParallelCopies":1,"dataRead":400,"dataWritten":400,"rowsRead":20,"rowsCopied":20,"copyStart":"2022-04-18T11:06:50.003Z","copyThroughput":0.014000000432133675,"copyDuration":27}]},"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2022-04-18T11:04:10.497Z","endedOn":"2022-04-18T11:08:19.237Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '105'
+ - '1349'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:49:37 GMT
+ - Mon, 18 Apr 2022 11:08:25 GMT
expires:
- '-1'
pragma:
@@ -7428,32 +3222,31 @@ interactions:
body: null
headers:
Accept:
- - '*/*'
+ - application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- - datamigration sql-vm create
+ - datamigration sql-db show
Connection:
- keep-alive
ParameterSetName:
- - --source-location --target-location --migration-service --scope --source-database-name
- --source-sql-connection --target-db-name --resource-group --sql-vm-name --offline-configuration
+ - --sqldb-instance-name --resource-group --target-db-name
User-Agent:
- - AZURECLI/2.32.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.1 (Windows-10-10.0.22000-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-datamigration/1.0.0b1 Python/3.10.0 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-offline-blob9?api-version=2021-10-30-preview
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb?api-version=2022-03-30-preview
response:
body:
- string: '{"properties":{"autoCutoverConfiguration":{"autoCutover":true,"lastBackupName":"AdventureWorksTransactionLog2.trn"},"offlineConfiguration":{"offline":true,"lastBackupName":"AdventureWorksTransactionLog2.trn"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM","provisioningState":"Succeeded","migrationStatus":"InProgress","startedOn":"2022-01-18T12:49:32.543Z","sourceDatabaseName":"AdventureWorks","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/sqlServiceUnitTest-Pipeline","migrationOperationId":"ab7b603a-83b1-4741-a54c-faec6c8869be","kind":"SqlVm"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/DMSCmdletTest-SqlVM/providers/Microsoft.DataMigration/databaseMigrations/tsum-Db-vm-offline-blob9","name":"tsum-Db-vm-offline-blob9","type":"Microsoft.DataMigration/databaseMigrations"}'
+ string: '{"properties":{"offlineConfiguration":{"offline":true},"backupConfiguration":{"sourceLocation":{"fileStorageType":"None"}},"tableList":["[dbo].[Table_1]"],"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb","provisioningState":"Succeeded","migrationStatus":"Succeeded","startedOn":"2022-04-18T11:04:10.497Z","endedOn":"2022-04-18T11:08:19.237Z","sourceServerName":"AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM","sourceDatabaseName":"Brih","migrationService":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.DataMigration/sqlMigrationServices/tsuman-IR2","migrationOperationId":"ea36f793-8bd1-4ceb-a82a-e0faf0d0dfcb","kind":"SqlDb"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tsum38RG/providers/Microsoft.Sql/servers/dmstestsqldb/providers/Microsoft.DataMigration/databaseMigrations/NewDb","name":"NewDb","type":"Microsoft.DataMigration/databaseMigrations"}'
headers:
cache-control:
- no-cache
content-length:
- - '1094'
+ - '1007'
content-type:
- application/json; charset=utf-8
date:
- - Tue, 18 Jan 2022 12:49:37 GMT
+ - Mon, 18 Apr 2022 11:08:27 GMT
expires:
- '-1'
pragma:
diff --git a/src/datamigration/azext_datamigration/tests/latest/test_datamigration_scenario.py b/src/datamigration/azext_datamigration/tests/latest/test_datamigration_scenario.py
index 75e273a39ea..ed87e2855c9 100644
--- a/src/datamigration/azext_datamigration/tests/latest/test_datamigration_scenario.py
+++ b/src/datamigration/azext_datamigration/tests/latest/test_datamigration_scenario.py
@@ -22,14 +22,22 @@
from .example_steps import step_sql_service_regenerate_auth_key
from .example_steps import step_sql_service_list_auth_key
from .example_steps import step_sql_service_list_integration_runtime_metric
+from .example_steps import step_sql_db_create
+from .example_steps import step_sql_db_create2
+from .example_steps import step_sql_db_show
+from .example_steps import step_sql_db_show2
+from .example_steps import step_sql_db_cancel
+from .example_steps import step_sql_db_delete
from .example_steps import step_sql_managed_instance_create
from .example_steps import step_sql_managed_instance_create2
from .example_steps import step_sql_managed_instance_show
+from .example_steps import step_sql_managed_instance_show2
from .example_steps import step_sql_managed_instance_cutover
from .example_steps import step_sql_managed_instance_cancel
from .example_steps import step_sql_vm_create
from .example_steps import step_sql_vm_create2
from .example_steps import step_sql_vm_show
+from .example_steps import step_sql_vm_show2
from .example_steps import step_sql_vm_cutover
from .example_steps import step_sql_vm_cancel
from .example_steps import step_sql_service_delete
@@ -84,14 +92,22 @@ def call_scenario(test):
step_sql_service_regenerate_auth_key(test, checks=[])
step_sql_service_list_auth_key(test, checks=[])
step_sql_service_list_integration_runtime_metric(test, checks=[])
+ step_sql_db_create(test, checks=[])
+ step_sql_db_create2(test, checks=[])
+ step_sql_db_show(test, checks=[])
+ step_sql_db_show2(test, checks=[])
+ step_sql_db_cancel(test, checks=[])
+ step_sql_db_delete(test, checks=[])
step_sql_managed_instance_create(test, checks=[])
step_sql_managed_instance_create2(test, checks=[])
step_sql_managed_instance_show(test, checks=[])
+ step_sql_managed_instance_show2(test, checks=[])
step_sql_managed_instance_cutover(test, checks=[])
step_sql_managed_instance_cancel(test, checks=[])
step_sql_vm_create(test, checks=[])
step_sql_vm_create2(test, checks=[])
step_sql_vm_show(test, checks=[])
+ step_sql_vm_show2(test, checks=[])
step_sql_vm_cutover(test, checks=[])
step_sql_vm_cancel(test, checks=[])
step_sql_service_delete(test, checks=[])
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_configuration.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_configuration.py
index 616215b8769..028c2652cc7 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_configuration.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_configuration.py
@@ -48,7 +48,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-10-30-preview"
+ self.api_version = "2022-03-30-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-datamigration/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_data_migration_management_client.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_data_migration_management_client.py
index 60701029ec6..e83eeff9009 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_data_migration_management_client.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/_data_migration_management_client.py
@@ -18,6 +18,7 @@
from azure.core.credentials import TokenCredential
from ._configuration import DataMigrationManagementClientConfiguration
+from .operations import DatabaseMigrationsSqlDbOperations
from .operations import DatabaseMigrationsSqlMiOperations
from .operations import DatabaseMigrationsSqlVmOperations
from .operations import Operations
@@ -35,6 +36,8 @@
class DataMigrationManagementClient(object):
"""Data Migration Client.
+ :ivar database_migrations_sql_db: DatabaseMigrationsSqlDbOperations operations
+ :vartype database_migrations_sql_db: azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations
:ivar database_migrations_sql_mi: DatabaseMigrationsSqlMiOperations operations
:vartype database_migrations_sql_mi: azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations
:ivar database_migrations_sql_vm: DatabaseMigrationsSqlVmOperations operations
@@ -83,6 +86,8 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)
+ self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations(
+ self._client, self._config, self._serialize, self._deserialize)
self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations(
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_configuration.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_configuration.py
index e1c37c8429a..9403c0dee9f 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_configuration.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_configuration.py
@@ -45,7 +45,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-10-30-preview"
+ self.api_version = "2022-03-30-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-datamigration/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_data_migration_management_client.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_data_migration_management_client.py
index 3d01d7064b9..c399f64d47b 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_data_migration_management_client.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/_data_migration_management_client.py
@@ -16,6 +16,7 @@
from azure.core.credentials_async import AsyncTokenCredential
from ._configuration import DataMigrationManagementClientConfiguration
+from .operations import DatabaseMigrationsSqlDbOperations
from .operations import DatabaseMigrationsSqlMiOperations
from .operations import DatabaseMigrationsSqlVmOperations
from .operations import Operations
@@ -33,6 +34,8 @@
class DataMigrationManagementClient(object):
"""Data Migration Client.
+ :ivar database_migrations_sql_db: DatabaseMigrationsSqlDbOperations operations
+ :vartype database_migrations_sql_db: azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations
:ivar database_migrations_sql_mi: DatabaseMigrationsSqlMiOperations operations
:vartype database_migrations_sql_mi: azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations
:ivar database_migrations_sql_vm: DatabaseMigrationsSqlVmOperations operations
@@ -80,6 +83,8 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)
+ self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations(
+ self._client, self._config, self._serialize, self._deserialize)
self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations(
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/__init__.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/__init__.py
index 6e3db8789ac..f225cba43b6 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/__init__.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/__init__.py
@@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+from ._database_migrations_sql_db_operations import DatabaseMigrationsSqlDbOperations
from ._database_migrations_sql_mi_operations import DatabaseMigrationsSqlMiOperations
from ._database_migrations_sql_vm_operations import DatabaseMigrationsSqlVmOperations
from ._operations import Operations
@@ -19,6 +20,7 @@
from ._files_operations import FilesOperations
__all__ = [
+ 'DatabaseMigrationsSqlDbOperations',
'DatabaseMigrationsSqlMiOperations',
'DatabaseMigrationsSqlVmOperations',
'Operations',
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_db_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_db_operations.py
new file mode 100644
index 00000000000..607c4e90385
--- /dev/null
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_db_operations.py
@@ -0,0 +1,500 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union
+import warnings
+
+from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
+from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod
+from azure.mgmt.core.exceptions import ARMErrorFormat
+from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
+
+from ... import models
+
+T = TypeVar('T')
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+class DatabaseMigrationsSqlDbOperations:
+ """DatabaseMigrationsSqlDbOperations async operations.
+
+ You should not instantiate this class directly. Instead, you should create a Client instance that
+ instantiates it for you and attaches it as an attribute.
+
+ :ivar models: Alias to model classes used in this operation group.
+ :type models: ~azure.mgmt.datamigration.models
+ :param client: Client for service requests.
+ :param config: Configuration of service client.
+ :param serializer: An object model serializer.
+ :param deserializer: An object model deserializer.
+ """
+
+ models = models
+
+ def __init__(self, client, config, serializer, deserializer) -> None:
+ self._client = client
+ self._serialize = serializer
+ self._deserialize = deserializer
+ self._config = config
+
+ async def get(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ migration_operation_id: Optional[str] = None,
+ expand: Optional[str] = None,
+ **kwargs
+ ) -> "models.DatabaseMigrationSqlDb":
+ """Retrieve the Database Migration resource.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param migration_operation_id: Optional migration operation ID. If this is provided, then
+ details of migration operation for that ID are retrieved. If not provided (default), then
+ details related to most recent or current operation are retrieved.
+ :type migration_operation_id: str
+ :param expand: Complete migration details be included in the response.
+ :type expand: str
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: DatabaseMigrationSqlDb, or the result of cls(response)
+ :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ accept = "application/json"
+
+ # Construct URL
+ url = self.get.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ if migration_operation_id is not None:
+ query_parameters['migrationOperationId'] = self._serialize.query("migration_operation_id", migration_operation_id, 'str')
+ if expand is not None:
+ query_parameters['$expand'] = self._serialize.query("expand", expand, 'str')
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+
+ return deserialized
+ get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ async def _create_or_update_initial(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ parameters: "models.DatabaseMigrationSqlDb",
+ **kwargs
+ ) -> "models.DatabaseMigrationSqlDb":
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ content_type = kwargs.pop("content_type", "application/json")
+ accept = "application/json"
+
+ # Construct URL
+ url = self._create_or_update_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ body_content_kwargs = {} # type: Dict[str, Any]
+ body_content = self._serialize.body(parameters, 'DatabaseMigrationSqlDb')
+ body_content_kwargs['content'] = body_content
+ request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 201]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if response.status_code == 200:
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if response.status_code == 201:
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+
+ return deserialized
+ _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ async def begin_create_or_update(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ parameters: "models.DatabaseMigrationSqlDb",
+ **kwargs
+ ) -> AsyncLROPoller["models.DatabaseMigrationSqlDb"]:
+ """Create a new database migration to a given SQL DB.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param parameters: Details of Sql Db migration resource.
+ :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = await self._create_or_update_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+ return deserialized
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = AsyncNoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return AsyncLROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ async def _delete_initial(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ force: Optional[bool] = None,
+ **kwargs
+ ) -> None:
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+
+ # Construct URL
+ url = self._delete_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ if force is not None:
+ query_parameters['force'] = self._serialize.query("force", force, 'bool')
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+
+ request = self._client.delete(url, query_parameters, header_parameters)
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202, 204]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ async def begin_delete(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ force: Optional[bool] = None,
+ **kwargs
+ ) -> AsyncLROPoller[None]:
+ """Delete Database Migration resource.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param force: Optional force delete boolean. If this is provided as true, migration will be
+ deleted even if active.
+ :type force: bool
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = await self._delete_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ force=force,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = AsyncNoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return AsyncLROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ async def _cancel_initial(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ parameters: "models.MigrationOperationInput",
+ **kwargs
+ ) -> None:
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ content_type = kwargs.pop("content_type", "application/json")
+
+ # Construct URL
+ url = self._cancel_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
+
+ body_content_kwargs = {} # type: Dict[str, Any]
+ body_content = self._serialize.body(parameters, 'MigrationOperationInput')
+ body_content_kwargs['content'] = body_content
+ request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ _cancel_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'} # type: ignore
+
+ async def begin_cancel(
+ self,
+ resource_group_name: str,
+ sql_db_instance_name: str,
+ target_db_name: str,
+ parameters: "models.MigrationOperationInput",
+ **kwargs
+ ) -> AsyncLROPoller[None]:
+ """Stop on going migration for the database.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param parameters: Required migration operation ID for which cancel will be initiated.
+ :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = await self._cancel_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = AsyncNoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return AsyncLROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'} # type: ignore
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_mi_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_mi_operations.py
index 2f19c85e075..6831acfdbb4 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_mi_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_mi_operations.py
@@ -51,7 +51,7 @@ async def get(
expand: Optional[str] = None,
**kwargs
) -> "models.DatabaseMigrationSqlMi":
- """Retrieve the Database Migration resource.
+ """Retrieve the specified database migration for a given SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -64,7 +64,7 @@ async def get(
details of migration operation for that ID are retrieved. If not provided (default), then
details related to most recent or current operation are retrieved.
:type migration_operation_id: str
- :param expand: The child resources to include in the response.
+ :param expand: Complete migration details be included in the response.
:type expand: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DatabaseMigrationSqlMi, or the result of cls(response)
@@ -76,7 +76,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -130,7 +130,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -266,7 +266,7 @@ async def _cancel_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -311,7 +311,7 @@ async def begin_cancel(
parameters: "models.MigrationOperationInput",
**kwargs
) -> AsyncLROPoller[None]:
- """Stop migrations in progress for the database.
+ """Stop in-progress database migration to SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -390,7 +390,7 @@ async def _cutover_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -435,7 +435,7 @@ async def begin_cutover(
parameters: "models.MigrationOperationInput",
**kwargs
) -> AsyncLROPoller[None]:
- """Initiate cutover for online migration in progress for the database.
+ """Initiate cutover for in-progress online database migration to SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_vm_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_vm_operations.py
index 150b6486763..96b5745c279 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_vm_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_vm_operations.py
@@ -51,7 +51,7 @@ async def get(
expand: Optional[str] = None,
**kwargs
) -> "models.DatabaseMigrationSqlVm":
- """Retrieve the Database Migration resource.
+ """Retrieve the specified database migration for a given SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -64,7 +64,7 @@ async def get(
details of migration operation for that ID are retrieved. If not provided (default), then
details related to most recent or current operation are retrieved.
:type migration_operation_id: str
- :param expand: The child resources to include in the response.
+ :param expand: Complete migration details be included in the response.
:type expand: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DatabaseMigrationSqlVm, or the result of cls(response)
@@ -76,7 +76,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -130,7 +130,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -266,7 +266,7 @@ async def _cancel_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -311,7 +311,7 @@ async def begin_cancel(
parameters: "models.MigrationOperationInput",
**kwargs
) -> AsyncLROPoller[None]:
- """Stop ongoing migration for the database.
+ """Stop in-progress database migration to SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -390,7 +390,7 @@ async def _cutover_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -435,7 +435,7 @@ async def begin_cutover(
parameters: "models.MigrationOperationInput",
**kwargs
) -> AsyncLROPoller[None]:
- """Cutover online migration operation for the database.
+ """Initiate cutover for in-progress online database migration to SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_files_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_files_operations.py
index 13085a72c06..ecc67ad58f3 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_files_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_files_operations.py
@@ -69,7 +69,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -154,7 +154,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -226,7 +226,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -304,7 +304,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -373,7 +373,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -448,7 +448,7 @@ async def read(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -517,7 +517,7 @@ async def read_write(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_operations.py
index 653286cdb65..a3c42e421ac 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_operations.py
@@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_projects_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_projects_operations.py
index 63a9dfc8d07..31f196efe43 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_projects_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_projects_operations.py
@@ -66,7 +66,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -150,7 +150,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -225,7 +225,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -294,7 +294,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -362,7 +362,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_resource_skus_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_resource_skus_operations.py
index d49ddf64e07..5658a204371 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_resource_skus_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_resource_skus_operations.py
@@ -59,7 +59,7 @@ def list_skus(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_service_tasks_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_service_tasks_operations.py
index 0b3d4d62d63..0c5332ba5aa 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_service_tasks_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_service_tasks_operations.py
@@ -71,7 +71,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -159,7 +159,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -237,7 +237,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -308,7 +308,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -377,7 +377,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -448,7 +448,7 @@ async def cancel(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_services_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_services_operations.py
index b9f18147a19..aafdf31179c 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_services_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_services_operations.py
@@ -55,7 +55,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -207,7 +207,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -256,7 +256,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -375,7 +375,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -521,7 +521,7 @@ async def check_status(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -569,7 +569,7 @@ async def _start_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -681,7 +681,7 @@ async def _stop_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -808,7 +808,7 @@ def list_skus(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -888,7 +888,7 @@ async def check_children_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -952,7 +952,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -1023,7 +1023,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -1098,7 +1098,7 @@ async def check_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_sql_migration_services_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_sql_migration_services_operations.py
index 29f3cd99705..f5b76ee3042 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_sql_migration_services_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_sql_migration_services_operations.py
@@ -49,7 +49,7 @@ async def get(
sql_migration_service_name: str,
**kwargs
) -> "models.SqlMigrationService":
- """Retrieve the Migration Service.
+ """Retrieve the Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -66,7 +66,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -114,7 +114,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -242,7 +242,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
@@ -279,7 +279,7 @@ async def begin_delete(
sql_migration_service_name: str,
**kwargs
) -> AsyncLROPoller[None]:
- """Delete SQL Migration Service.
+ """Delete Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -350,7 +350,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -402,7 +402,7 @@ async def begin_update(
parameters: "models.SqlMigrationServiceUpdate",
**kwargs
) -> AsyncLROPoller["models.SqlMigrationService"]:
- """Update SQL Migration Service.
+ """Update Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -487,7 +487,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -561,7 +561,7 @@ async def list_auth_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -623,7 +623,7 @@ async def regenerate_auth_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -690,7 +690,7 @@ async def delete_node(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -754,7 +754,7 @@ def list_migrations(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -812,7 +812,8 @@ async def list_monitoring_data(
sql_migration_service_name: str,
**kwargs
) -> "models.IntegrationRuntimeMonitoringData":
- """Retrieve the Monitoring Data.
+ """Retrieve the registered Integration Runtime nodes and their monitoring data for a given
+ Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -829,7 +830,7 @@ async def list_monitoring_data(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -881,7 +882,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_tasks_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_tasks_operations.py
index 7918767b386..532d9367822 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_tasks_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_tasks_operations.py
@@ -73,7 +73,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -164,7 +164,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -246,7 +246,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -321,7 +321,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -394,7 +394,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -469,7 +469,7 @@ async def cancel(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -542,7 +542,7 @@ async def command(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_usages_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_usages_operations.py
index e890dfc8add..2abfd666340 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_usages_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_usages_operations.py
@@ -63,7 +63,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/__init__.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/__init__.py
index 77792c9c315..d2a8bc77939 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/__init__.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/__init__.py
@@ -62,6 +62,7 @@
from ._models_py3 import ConnectToTargetSqlMiTaskOutput
from ._models_py3 import ConnectToTargetSqlMiTaskProperties
from ._models_py3 import ConnectionInfo
+ from ._models_py3 import CopyProgressDetails
from ._models_py3 import DataIntegrityValidationResult
from ._models_py3 import DataItemMigrationSummaryResult
from ._models_py3 import DataMigrationError
@@ -77,8 +78,10 @@
from ._models_py3 import DatabaseMigration
from ._models_py3 import DatabaseMigrationListResult
from ._models_py3 import DatabaseMigrationProperties
+ from ._models_py3 import DatabaseMigrationPropertiesSqlDb
from ._models_py3 import DatabaseMigrationPropertiesSqlMi
from ._models_py3 import DatabaseMigrationPropertiesSqlVm
+ from ._models_py3 import DatabaseMigrationSqlDb
from ._models_py3 import DatabaseMigrationSqlMi
from ._models_py3 import DatabaseMigrationSqlVm
from ._models_py3 import DatabaseObjectName
@@ -289,6 +292,8 @@
from ._models_py3 import SqlBackupSetInfo
from ._models_py3 import SqlConnectionInfo
from ._models_py3 import SqlConnectionInformation
+ from ._models_py3 import SqlDbMigrationStatusDetails
+ from ._models_py3 import SqlDbOfflineConfiguration
from ._models_py3 import SqlFileShare
from ._models_py3 import SqlMigrationListResult
from ._models_py3 import SqlMigrationService
@@ -375,6 +380,7 @@
from ._models import ConnectToTargetSqlMiTaskOutput # type: ignore
from ._models import ConnectToTargetSqlMiTaskProperties # type: ignore
from ._models import ConnectionInfo # type: ignore
+ from ._models import CopyProgressDetails # type: ignore
from ._models import DataIntegrityValidationResult # type: ignore
from ._models import DataItemMigrationSummaryResult # type: ignore
from ._models import DataMigrationError # type: ignore
@@ -390,8 +396,10 @@
from ._models import DatabaseMigration # type: ignore
from ._models import DatabaseMigrationListResult # type: ignore
from ._models import DatabaseMigrationProperties # type: ignore
+ from ._models import DatabaseMigrationPropertiesSqlDb # type: ignore
from ._models import DatabaseMigrationPropertiesSqlMi # type: ignore
from ._models import DatabaseMigrationPropertiesSqlVm # type: ignore
+ from ._models import DatabaseMigrationSqlDb # type: ignore
from ._models import DatabaseMigrationSqlMi # type: ignore
from ._models import DatabaseMigrationSqlVm # type: ignore
from ._models import DatabaseObjectName # type: ignore
@@ -602,6 +610,8 @@
from ._models import SqlBackupSetInfo # type: ignore
from ._models import SqlConnectionInfo # type: ignore
from ._models import SqlConnectionInformation # type: ignore
+ from ._models import SqlDbMigrationStatusDetails # type: ignore
+ from ._models import SqlDbOfflineConfiguration # type: ignore
from ._models import SqlFileShare # type: ignore
from ._models import SqlMigrationListResult # type: ignore
from ._models import SqlMigrationService # type: ignore
@@ -746,6 +756,7 @@
'ConnectToTargetSqlMiTaskOutput',
'ConnectToTargetSqlMiTaskProperties',
'ConnectionInfo',
+ 'CopyProgressDetails',
'DataIntegrityValidationResult',
'DataItemMigrationSummaryResult',
'DataMigrationError',
@@ -761,8 +772,10 @@
'DatabaseMigration',
'DatabaseMigrationListResult',
'DatabaseMigrationProperties',
+ 'DatabaseMigrationPropertiesSqlDb',
'DatabaseMigrationPropertiesSqlMi',
'DatabaseMigrationPropertiesSqlVm',
+ 'DatabaseMigrationSqlDb',
'DatabaseMigrationSqlMi',
'DatabaseMigrationSqlVm',
'DatabaseObjectName',
@@ -973,6 +986,8 @@
'SqlBackupSetInfo',
'SqlConnectionInfo',
'SqlConnectionInformation',
+ 'SqlDbMigrationStatusDetails',
+ 'SqlDbOfflineConfiguration',
'SqlFileShare',
'SqlMigrationListResult',
'SqlMigrationService',
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_data_migration_management_client_enums.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_data_migration_management_client_enums.py
index 83afba661d7..e90ecb11151 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_data_migration_management_client_enums.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_data_migration_management_client_enums.py
@@ -375,6 +375,7 @@ class ResourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
SQL_MI = "SqlMi"
SQL_VM = "SqlVm"
+ SQL_DB = "SqlDb"
class ScenarioSource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""An enumeration of source type
@@ -436,6 +437,7 @@ class ServerLevelPermissionsGroup(with_metaclass(_CaseInsensitiveEnumMeta, str,
MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB = "MigrationFromSqlServerToAzureDB"
MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI = "MigrationFromSqlServerToAzureMI"
MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL = "MigrationFromMySQLToAzureDBForMySQL"
+ MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM = "MigrationFromSqlServerToAzureVM"
class ServiceProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The resource's provisioning state
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models.py
index 84a3adfe020..d148f966e60 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models.py
@@ -155,26 +155,21 @@ def __init__(
class AzureActiveDirectoryApp(msrest.serialization.Model):
"""Azure Active Directory Application.
- All required parameters must be populated in order to send to Azure.
-
- :param application_id: Required. Application ID of the Azure Active Directory Application.
+ :param application_id: Application ID of the Azure Active Directory Application.
:type application_id: str
- :param app_key: Required. Key used to authenticate to the Azure Active Directory Application.
+ :param app_key: Key used to authenticate to the Azure Active Directory Application.
:type app_key: str
- :param tenant_id: Required. Tenant id of the customer.
+ :param tenant_id: Tenant id of the customer.
:type tenant_id: str
+ :param ignore_azure_permissions: Ignore checking azure permissions on the AAD app.
+ :type ignore_azure_permissions: bool
"""
- _validation = {
- 'application_id': {'required': True},
- 'app_key': {'required': True},
- 'tenant_id': {'required': True},
- }
-
_attribute_map = {
'application_id': {'key': 'applicationId', 'type': 'str'},
'app_key': {'key': 'appKey', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
+ 'ignore_azure_permissions': {'key': 'ignoreAzurePermissions', 'type': 'bool'},
}
def __init__(
@@ -182,9 +177,10 @@ def __init__(
**kwargs
):
super(AzureActiveDirectoryApp, self).__init__(**kwargs)
- self.application_id = kwargs['application_id']
- self.app_key = kwargs['app_key']
- self.tenant_id = kwargs['tenant_id']
+ self.application_id = kwargs.get('application_id', None)
+ self.app_key = kwargs.get('app_key', None)
+ self.tenant_id = kwargs.get('tenant_id', None)
+ self.ignore_azure_permissions = kwargs.get('ignore_azure_permissions', None)
class AzureBlob(msrest.serialization.Model):
@@ -326,16 +322,10 @@ def __init__(
class BlobShare(msrest.serialization.Model):
"""Blob container storage information.
- All required parameters must be populated in order to send to Azure.
-
- :param sas_uri: Required. SAS URI of Azure Storage Account Container.
+ :param sas_uri: SAS URI of Azure Storage Account Container.
:type sas_uri: str
"""
- _validation = {
- 'sas_uri': {'required': True},
- }
-
_attribute_map = {
'sas_uri': {'key': 'sasUri', 'type': 'str'},
}
@@ -345,7 +335,7 @@ def __init__(
**kwargs
):
super(BlobShare, self).__init__(**kwargs)
- self.sas_uri = kwargs['sas_uri']
+ self.sas_uri = kwargs.get('sas_uri', None)
class CheckOciDriverTaskInput(msrest.serialization.Model):
@@ -707,7 +697,7 @@ class ConnectToSourceMySqlTaskInput(msrest.serialization.Model):
:type target_platform: str or ~azure.mgmt.datamigration.models.MySqlTargetPlatformType
:param check_permissions_group: Permission group for validations. Possible values include:
"Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI",
- "MigrationFromMySQLToAzureDBForMySQL".
+ "MigrationFromMySQLToAzureDBForMySQL", "MigrationFromSqlServerToAzureVM".
:type check_permissions_group: str or
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
:param is_offline_migration: Flag for whether or not the migration is offline.
@@ -1205,7 +1195,7 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
:type source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
:param check_permissions_group: Permission group for validations. Possible values include:
"Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI",
- "MigrationFromMySQLToAzureDBForMySQL".
+ "MigrationFromMySQLToAzureDBForMySQL", "MigrationFromSqlServerToAzureVM".
:type check_permissions_group: str or
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
:param collect_databases: Flag for whether to collect databases from source server.
@@ -1220,6 +1210,8 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
:param validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on
the source server.
:type validate_ssis_catalog_only: bool
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -1234,6 +1226,7 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'},
'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'},
'validate_ssis_catalog_only': {'key': 'validateSsisCatalogOnly', 'type': 'bool'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -1248,6 +1241,7 @@ def __init__(
self.collect_agent_jobs = kwargs.get('collect_agent_jobs', False)
self.collect_tde_certificate_info = kwargs.get('collect_tde_certificate_info', False)
self.validate_ssis_catalog_only = kwargs.get('validate_ssis_catalog_only', False)
+ self.encrypted_key_for_secure_fields = kwargs.get('encrypted_key_for_secure_fields', None)
class ConnectToSourceSqlServerTaskOutput(msrest.serialization.Model):
@@ -1584,6 +1578,8 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput]
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -1602,6 +1598,7 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'ConnectToSourceSqlServerTaskInput'},
'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -1612,6 +1609,7 @@ def __init__(
self.task_type = 'ConnectToSource.SqlServer' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.task_id = kwargs.get('task_id', None)
class ConnectToTargetAzureDbForMySqlTaskInput(msrest.serialization.Model):
@@ -2185,6 +2183,9 @@ class ConnectToTargetSqlDbTaskInput(msrest.serialization.Model):
:param target_connection_info: Required. Connection information for target SQL DB.
:type target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
+ :param query_object_counts: Boolean flag indicating whether to query object counts for each
+ database on the target server.
+ :type query_object_counts: bool
"""
_validation = {
@@ -2193,6 +2194,7 @@ class ConnectToTargetSqlDbTaskInput(msrest.serialization.Model):
_attribute_map = {
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'},
+ 'query_object_counts': {'key': 'queryObjectCounts', 'type': 'bool'},
}
def __init__(
@@ -2201,6 +2203,7 @@ def __init__(
):
super(ConnectToTargetSqlDbTaskInput, self).__init__(**kwargs)
self.target_connection_info = kwargs['target_connection_info']
+ self.query_object_counts = kwargs.get('query_object_counts', None)
class ConnectToTargetSqlDbTaskOutput(msrest.serialization.Model):
@@ -2283,6 +2286,8 @@ class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput]
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -2301,6 +2306,7 @@ class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'ConnectToTargetSqlDbTaskInput'},
'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
@@ -2311,6 +2317,7 @@ def __init__(
self.task_type = 'ConnectToTarget.SqlDb' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.created_on = kwargs.get('created_on', None)
class ConnectToTargetSqlMiSyncTaskInput(msrest.serialization.Model):
@@ -2609,6 +2616,81 @@ def __init__(
self.output = None
+class CopyProgressDetails(msrest.serialization.Model):
+ """Details on progress of ADF copy activity.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar table_name: Table Name.
+ :vartype table_name: str
+ :ivar status: Status of the Copy activity (InProgress, Succeeded, Failed, Canceled).
+ :vartype status: str
+ :ivar parallel_copy_type: Type of parallel copy (Dynamic range, Physical partition, none).
+ :vartype parallel_copy_type: str
+ :ivar used_parallel_copies: The degree of parallelization.
+ :vartype used_parallel_copies: int
+ :ivar data_read: Bytes read.
+ :vartype data_read: long
+ :ivar data_written: Bytes written.
+ :vartype data_written: long
+ :ivar rows_read: Rows read.
+ :vartype rows_read: long
+ :ivar rows_copied: Rows Copied.
+ :vartype rows_copied: long
+ :ivar copy_start: Copy Start.
+ :vartype copy_start: ~datetime.datetime
+ :ivar copy_throughput: Copy throughput in KBps.
+ :vartype copy_throughput: float
+ :ivar copy_duration: Copy Duration in seconds.
+ :vartype copy_duration: int
+ """
+
+ _validation = {
+ 'table_name': {'readonly': True},
+ 'status': {'readonly': True},
+ 'parallel_copy_type': {'readonly': True},
+ 'used_parallel_copies': {'readonly': True},
+ 'data_read': {'readonly': True},
+ 'data_written': {'readonly': True},
+ 'rows_read': {'readonly': True},
+ 'rows_copied': {'readonly': True},
+ 'copy_start': {'readonly': True},
+ 'copy_throughput': {'readonly': True},
+ 'copy_duration': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'table_name': {'key': 'tableName', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ 'parallel_copy_type': {'key': 'parallelCopyType', 'type': 'str'},
+ 'used_parallel_copies': {'key': 'usedParallelCopies', 'type': 'int'},
+ 'data_read': {'key': 'dataRead', 'type': 'long'},
+ 'data_written': {'key': 'dataWritten', 'type': 'long'},
+ 'rows_read': {'key': 'rowsRead', 'type': 'long'},
+ 'rows_copied': {'key': 'rowsCopied', 'type': 'long'},
+ 'copy_start': {'key': 'copyStart', 'type': 'iso-8601'},
+ 'copy_throughput': {'key': 'copyThroughput', 'type': 'float'},
+ 'copy_duration': {'key': 'copyDuration', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(CopyProgressDetails, self).__init__(**kwargs)
+ self.table_name = None
+ self.status = None
+ self.parallel_copy_type = None
+ self.used_parallel_copies = None
+ self.data_read = None
+ self.data_written = None
+ self.rows_read = None
+ self.rows_copied = None
+ self.copy_start = None
+ self.copy_throughput = None
+ self.copy_duration = None
+
+
class Database(msrest.serialization.Model):
"""Information about a single database.
@@ -2974,15 +3056,16 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
"""Database Migration Resource properties.
You probably want to use the sub-classes and not this class directly. Known
- sub-classes are: DatabaseMigrationPropertiesSqlMi, DatabaseMigrationPropertiesSqlVm.
+ sub-classes are: DatabaseMigrationPropertiesSqlDb, DatabaseMigrationPropertiesSqlMi, DatabaseMigrationPropertiesSqlVm.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -2997,12 +3080,18 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
+ :param target_database_collation: Database collation to be used for the target database.
+ :type target_database_collation: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
"""
_validation = {
@@ -3011,7 +3100,10 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
}
_attribute_map = {
@@ -3023,13 +3115,16 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
+ 'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
+ 'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
}
_subtype_map = {
- 'kind': {'SqlMi': 'DatabaseMigrationPropertiesSqlMi', 'SqlVm': 'DatabaseMigrationPropertiesSqlVm'}
+ 'kind': {'SqlDb': 'DatabaseMigrationPropertiesSqlDb', 'SqlMi': 'DatabaseMigrationPropertiesSqlMi', 'SqlVm': 'DatabaseMigrationPropertiesSqlVm'}
}
def __init__(
@@ -3045,9 +3140,106 @@ def __init__(
self.ended_on = None
self.source_sql_connection = kwargs.get('source_sql_connection', None)
self.source_database_name = kwargs.get('source_database_name', None)
+ self.source_server_name = None
self.migration_service = kwargs.get('migration_service', None)
- self.migration_operation_id = kwargs.get('migration_operation_id', None)
+ self.migration_operation_id = None
self.migration_failure_error = None
+ self.target_database_collation = kwargs.get('target_database_collation', None)
+ self.provisioning_error = None
+
+
+class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties):
+ """Database Migration Resource properties for SQL database.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
+ :type kind: str or ~azure.mgmt.datamigration.models.ResourceType
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
+ :type scope: str
+ :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
+ implies that validations have been performed and migration has started.
+ :vartype provisioning_state: str
+ :ivar migration_status: Migration status.
+ :vartype migration_status: str
+ :ivar started_on: Database migration start time.
+ :vartype started_on: ~datetime.datetime
+ :ivar ended_on: Database migration end time.
+ :vartype ended_on: ~datetime.datetime
+ :param source_sql_connection: Source SQL Server connection details.
+ :type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
+ :param source_database_name: Name of the source database.
+ :type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
+ :param migration_service: Resource Id of the Migration Service.
+ :type migration_service: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
+ :ivar migration_failure_error: Error details in case of migration failure.
+ :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
+ :param target_database_collation: Database collation to be used for the target database.
+ :type target_database_collation: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails
+ :param target_sql_connection: Target SQL DB connection details.
+ :type target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
+ :ivar offline_configuration: Offline configuration.
+ :vartype offline_configuration: ~azure.mgmt.datamigration.models.SqlDbOfflineConfiguration
+ :param table_list: List of tables to copy.
+ :type table_list: list[str]
+ """
+
+ _validation = {
+ 'kind': {'required': True},
+ 'provisioning_state': {'readonly': True},
+ 'migration_status': {'readonly': True},
+ 'started_on': {'readonly': True},
+ 'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
+ 'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
+ 'migration_status_details': {'readonly': True},
+ 'offline_configuration': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'scope': {'key': 'scope', 'type': 'str'},
+ 'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'migration_status': {'key': 'migrationStatus', 'type': 'str'},
+ 'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
+ 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
+ 'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
+ 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
+ 'migration_service': {'key': 'migrationService', 'type': 'str'},
+ 'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
+ 'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
+ 'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
+ 'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'SqlDbMigrationStatusDetails'},
+ 'target_sql_connection': {'key': 'targetSqlConnection', 'type': 'SqlConnectionInformation'},
+ 'offline_configuration': {'key': 'offlineConfiguration', 'type': 'SqlDbOfflineConfiguration'},
+ 'table_list': {'key': 'tableList', 'type': '[str]'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DatabaseMigrationPropertiesSqlDb, self).__init__(**kwargs)
+ self.kind = 'SqlDb' # type: str
+ self.migration_status_details = None
+ self.target_sql_connection = kwargs.get('target_sql_connection', None)
+ self.offline_configuration = None
+ self.table_list = kwargs.get('table_list', None)
class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
@@ -3057,9 +3249,10 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -3074,18 +3267,20 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
- :ivar migration_status_details: Detailed migration status. Not included by default.
- :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param target_database_collation: Database collation to be used for the target database.
:type target_database_collation: str
- :param provisioning_error: Error message for migration provisioning failure, if any.
- :type provisioning_error: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param backup_configuration: Backup configuration info.
:type backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration
:param offline_configuration: Offline configuration.
@@ -3098,7 +3293,10 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
'migration_status_details': {'readonly': True},
}
@@ -3111,12 +3309,13 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
- 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'backup_configuration': {'key': 'backupConfiguration', 'type': 'BackupConfiguration'},
'offline_configuration': {'key': 'offlineConfiguration', 'type': 'OfflineConfiguration'},
}
@@ -3128,8 +3327,6 @@ def __init__(
super(DatabaseMigrationPropertiesSqlMi, self).__init__(**kwargs)
self.kind = 'SqlMi' # type: str
self.migration_status_details = None
- self.target_database_collation = kwargs.get('target_database_collation', None)
- self.provisioning_error = kwargs.get('provisioning_error', None)
self.backup_configuration = kwargs.get('backup_configuration', None)
self.offline_configuration = kwargs.get('offline_configuration', None)
@@ -3141,9 +3338,10 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -3158,18 +3356,20 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
- :ivar migration_status_details: Detailed migration status. Not included by default.
- :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param target_database_collation: Database collation to be used for the target database.
:type target_database_collation: str
- :param provisioning_error: Error message for migration provisioning failure, if any.
- :type provisioning_error: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param backup_configuration: Backup configuration info.
:type backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration
:param offline_configuration: Offline configuration.
@@ -3182,7 +3382,10 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
'migration_status_details': {'readonly': True},
}
@@ -3195,12 +3398,13 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
- 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'backup_configuration': {'key': 'backupConfiguration', 'type': 'BackupConfiguration'},
'offline_configuration': {'key': 'offlineConfiguration', 'type': 'OfflineConfiguration'},
}
@@ -3212,12 +3416,51 @@ def __init__(
super(DatabaseMigrationPropertiesSqlVm, self).__init__(**kwargs)
self.kind = 'SqlVm' # type: str
self.migration_status_details = None
- self.target_database_collation = kwargs.get('target_database_collation', None)
- self.provisioning_error = kwargs.get('provisioning_error', None)
self.backup_configuration = kwargs.get('backup_configuration', None)
self.offline_configuration = kwargs.get('offline_configuration', None)
+class DatabaseMigrationSqlDb(ProxyResource):
+ """Database Migration Resource for SQL Database.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id:
+ :vartype id: str
+ :ivar name:
+ :vartype name: str
+ :ivar type:
+ :vartype type: str
+ :ivar system_data: Metadata pertaining to creation and last modification of the resource.
+ :vartype system_data: ~azure.mgmt.datamigration.models.SystemData
+ :param properties: Database Migration Resource properties for SQL database.
+ :type properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'properties': {'key': 'properties', 'type': 'DatabaseMigrationPropertiesSqlDb'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DatabaseMigrationSqlDb, self).__init__(**kwargs)
+ self.system_data = None
+ self.properties = kwargs.get('properties', None)
+
+
class DatabaseMigrationSqlMi(ProxyResource):
"""Database Migration Resource for SQL Managed Instance.
@@ -3774,6 +4017,8 @@ class DataMigrationServiceStatusResponse(msrest.serialization.Model):
:param agent_version: The DMS instance agent version.
:type agent_version: str
+ :param agent_configuration: Agent Configuration.
+ :type agent_configuration: object
:param status: The machine-readable status, such as 'Initializing', 'Offline', 'Online',
'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or
'Failed'.
@@ -3786,6 +4031,7 @@ class DataMigrationServiceStatusResponse(msrest.serialization.Model):
_attribute_map = {
'agent_version': {'key': 'agentVersion', 'type': 'str'},
+ 'agent_configuration': {'key': 'agentConfiguration', 'type': 'object'},
'status': {'key': 'status', 'type': 'str'},
'vm_size': {'key': 'vmSize', 'type': 'str'},
'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'},
@@ -3797,6 +4043,7 @@ def __init__(
):
super(DataMigrationServiceStatusResponse, self).__init__(**kwargs)
self.agent_version = kwargs.get('agent_version', None)
+ self.agent_configuration = kwargs.get('agent_configuration', None)
self.status = kwargs.get('status', None)
self.vm_size = kwargs.get('vm_size', None)
self.supported_task_types = kwargs.get('supported_task_types', None)
@@ -4707,6 +4954,8 @@ class GetUserTablesSqlTaskInput(msrest.serialization.Model):
:type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
:param selected_databases: Required. List of database names to collect tables for.
:type selected_databases: list[str]
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -4717,6 +4966,7 @@ class GetUserTablesSqlTaskInput(msrest.serialization.Model):
_attribute_map = {
'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'},
'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -4726,6 +4976,7 @@ def __init__(
super(GetUserTablesSqlTaskInput, self).__init__(**kwargs)
self.connection_info = kwargs['connection_info']
self.selected_databases = kwargs['selected_databases']
+ self.encrypted_key_for_secure_fields = kwargs.get('encrypted_key_for_secure_fields', None)
class GetUserTablesSqlTaskOutput(msrest.serialization.Model):
@@ -4803,6 +5054,8 @@ class GetUserTablesSqlTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput]
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -4821,6 +5074,7 @@ class GetUserTablesSqlTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'GetUserTablesSqlTaskInput'},
'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -4831,6 +5085,7 @@ def __init__(
self.task_type = 'GetUserTables.Sql' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.task_id = kwargs.get('task_id', None)
class InstallOciDriverTaskInput(msrest.serialization.Model):
@@ -5186,6 +5441,8 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskInput(msrest.serialization.Model):
:param optional_agent_settings: Optional parameters for fine tuning the data transfer rate
during migration.
:type optional_agent_settings: dict[str, str]
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -5201,6 +5458,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskInput(msrest.serialization.Model):
'make_source_server_read_only': {'key': 'makeSourceServerReadOnly', 'type': 'bool'},
'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
'optional_agent_settings': {'key': 'optionalAgentSettings', 'type': '{str}'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -5214,6 +5472,7 @@ def __init__(
self.make_source_server_read_only = kwargs.get('make_source_server_read_only', False)
self.started_on = kwargs.get('started_on', None)
self.optional_agent_settings = kwargs.get('optional_agent_settings', None)
+ self.encrypted_key_for_secure_fields = kwargs.get('encrypted_key_for_secure_fields', None)
class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(msrest.serialization.Model):
@@ -5631,6 +5890,10 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties):
:ivar output: Task output. This is ignored if submitted.
:vartype output:
list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput]
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -5649,6 +5912,8 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'MigrateMySqlAzureDbForMySqlOfflineTaskInput'},
'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlOfflineTaskOutput]'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -5659,6 +5924,8 @@ def __init__(
self.task_type = 'Migrate.MySql.AzureDbForMySql' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.is_cloneable = kwargs.get('is_cloneable', None)
+ self.task_id = kwargs.get('task_id', None)
class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(msrest.serialization.Model):
@@ -6734,13 +7001,17 @@ def __init__(
class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(msrest.serialization.Model):
"""Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task inputs.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
:param name: Name of the database.
:type name: str
+ :ivar id: Result identifier.
+ :vartype id: str
:param target_database_name: Name of target database. Note: Target database will be truncated
before starting migration.
:type target_database_name: str
:param migration_setting: Migration settings which tune the migration behavior.
- :type migration_setting: dict[str, str]
+ :type migration_setting: dict[str, object]
:param source_setting: Source settings to tune source endpoint migration behavior.
:type source_setting: dict[str, str]
:param target_setting: Target settings to tune target endpoint migration behavior.
@@ -6750,10 +7021,15 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(msrest.serializatio
list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]
"""
+ _validation = {
+ 'id': {'readonly': True},
+ }
+
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
+ 'id': {'key': 'id', 'type': 'str'},
'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'},
- 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'},
+ 'migration_setting': {'key': 'migrationSetting', 'type': '{object}'},
'source_setting': {'key': 'sourceSetting', 'type': '{str}'},
'target_setting': {'key': 'targetSetting', 'type': '{str}'},
'selected_tables': {'key': 'selectedTables', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]'},
@@ -6765,6 +7041,7 @@ def __init__(
):
super(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
+ self.id = None
self.target_database_name = kwargs.get('target_database_name', None)
self.migration_setting = kwargs.get('migration_setting', None)
self.source_setting = kwargs.get('source_setting', None)
@@ -6794,6 +7071,8 @@ def __init__(
class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Model):
"""Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
All required parameters must be populated in order to send to Azure.
:param selected_databases: Required. Databases to migrate.
@@ -6806,12 +7085,15 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Mo
:type source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo
:param encrypted_key_for_secure_fields: encrypted key for secure fields.
:type encrypted_key_for_secure_fields: str
+ :ivar started_on: Migration start time.
+ :vartype started_on: ~datetime.datetime
"""
_validation = {
'selected_databases': {'required': True},
'target_connection_info': {'required': True},
'source_connection_info': {'required': True},
+ 'started_on': {'readonly': True},
}
_attribute_map = {
@@ -6819,6 +7101,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Mo
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'},
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'},
'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
+ 'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
}
def __init__(
@@ -6830,6 +7113,7 @@ def __init__(
self.target_connection_info = kwargs['target_connection_info']
self.source_connection_info = kwargs['source_connection_info']
self.encrypted_key_for_secure_fields = kwargs.get('encrypted_key_for_secure_fields', None)
+ self.started_on = None
class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(msrest.serialization.Model):
@@ -7288,6 +7572,8 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropert
:type task_id: str
:param created_on: DateTime in UTC when the task was created.
:type created_on: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -7308,6 +7594,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropert
'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
'created_on': {'key': 'createdOn', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -7320,6 +7607,7 @@ def __init__(
self.output = None
self.task_id = kwargs.get('task_id', None)
self.created_on = kwargs.get('created_on', None)
+ self.is_cloneable = kwargs.get('is_cloneable', None)
class MigrateSchemaSqlServerSqlDbDatabaseInput(msrest.serialization.Model):
@@ -7701,6 +7989,8 @@ class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties):
:type created_on: str
:param task_id: Task id.
:type task_id: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -7721,6 +8011,7 @@ class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties):
'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'},
'created_on': {'key': 'createdOn', 'type': 'str'},
'task_id': {'key': 'taskId', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -7733,6 +8024,7 @@ def __init__(
self.output = None
self.created_on = kwargs.get('created_on', None)
self.task_id = kwargs.get('task_id', None)
+ self.is_cloneable = kwargs.get('is_cloneable', None)
class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput):
@@ -9105,6 +9397,8 @@ class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties):
:type task_id: str
:param is_cloneable: whether the task can be cloned or not.
:type is_cloneable: bool
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -9125,6 +9419,7 @@ class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties):
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
@@ -9137,6 +9432,7 @@ def __init__(
self.output = None
self.task_id = kwargs.get('task_id', None)
self.is_cloneable = kwargs.get('is_cloneable', None)
+ self.created_on = kwargs.get('created_on', None)
class MigrateSqlServerSqlMiDatabaseInput(msrest.serialization.Model):
@@ -9255,6 +9551,9 @@ class MigrateSqlServerSqlMiSyncTaskInput(SqlServerSqlMiSyncTaskInput):
connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage
Account.
:type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp
+ :param number_of_parallel_database_migrations: Number of database migrations to start in
+ parallel.
+ :type number_of_parallel_database_migrations: float
"""
_validation = {
@@ -9272,6 +9571,7 @@ class MigrateSqlServerSqlMiSyncTaskInput(SqlServerSqlMiSyncTaskInput):
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'},
'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'},
+ 'number_of_parallel_database_migrations': {'key': 'numberOfParallelDatabaseMigrations', 'type': 'float'},
}
def __init__(
@@ -9279,6 +9579,7 @@ def __init__(
**kwargs
):
super(MigrateSqlServerSqlMiSyncTaskInput, self).__init__(**kwargs)
+ self.number_of_parallel_database_migrations = kwargs.get('number_of_parallel_database_migrations', None)
class MigrateSqlServerSqlMiSyncTaskOutput(msrest.serialization.Model):
@@ -9571,9 +9872,11 @@ class MigrateSqlServerSqlMiSyncTaskProperties(ProjectTaskProperties):
:param client_data: Key value pairs of client data to attach meta data information to task.
:type client_data: dict[str, str]
:param input: Task input.
- :type input: ~azure.mgmt.datamigration.models.SqlServerSqlMiSyncTaskInput
+ :type input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiSyncTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiSyncTaskOutput]
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -9590,8 +9893,9 @@ class MigrateSqlServerSqlMiSyncTaskProperties(ProjectTaskProperties):
'state': {'key': 'state', 'type': 'str'},
'commands': {'key': 'commands', 'type': '[CommandProperties]'},
'client_data': {'key': 'clientData', 'type': '{str}'},
- 'input': {'key': 'input', 'type': 'SqlServerSqlMiSyncTaskInput'},
+ 'input': {'key': 'input', 'type': 'MigrateSqlServerSqlMiSyncTaskInput'},
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMiSyncTaskOutput]'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
@@ -9602,6 +9906,7 @@ def __init__(
self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.created_on = kwargs.get('created_on', None)
class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
@@ -9635,6 +9940,8 @@ class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if
Windows logins are selected.
:type aad_domain_name: str
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -9655,6 +9962,7 @@ class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'},
'backup_mode': {'key': 'backupMode', 'type': 'str'},
'aad_domain_name': {'key': 'aadDomainName', 'type': 'str'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -9670,6 +9978,7 @@ def __init__(
self.backup_blob_share = kwargs['backup_blob_share']
self.backup_mode = kwargs.get('backup_mode', None)
self.aad_domain_name = kwargs.get('aad_domain_name', None)
+ self.encrypted_key_for_secure_fields = kwargs.get('encrypted_key_for_secure_fields', None)
class MigrateSqlServerSqlMiTaskOutput(msrest.serialization.Model):
@@ -10107,6 +10416,12 @@ class MigrateSqlServerSqlMiTaskProperties(ProjectTaskProperties):
:vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiTaskOutput]
:param task_id: task id.
:type task_id: str
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
+ :param parent_task_id: parent task id.
+ :type parent_task_id: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -10126,6 +10441,9 @@ class MigrateSqlServerSqlMiTaskProperties(ProjectTaskProperties):
'input': {'key': 'input', 'type': 'MigrateSqlServerSqlMiTaskInput'},
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMiTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
+ 'parent_task_id': {'key': 'parentTaskId', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -10137,6 +10455,9 @@ def __init__(
self.input = kwargs.get('input', None)
self.output = None
self.task_id = kwargs.get('task_id', None)
+ self.created_on = kwargs.get('created_on', None)
+ self.parent_task_id = kwargs.get('parent_task_id', None)
+ self.is_cloneable = kwargs.get('is_cloneable', None)
class MigrateSsisTaskInput(SqlMigrationTaskInput):
@@ -10517,6 +10838,8 @@ class MigrateSyncCompleteCommandProperties(CommandProperties):
:type input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput
:ivar output: Command output. This is ignored if submitted.
:vartype output: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput
+ :param command_id: Command id.
+ :type command_id: str
"""
_validation = {
@@ -10532,6 +10855,7 @@ class MigrateSyncCompleteCommandProperties(CommandProperties):
'state': {'key': 'state', 'type': 'str'},
'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'},
'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'},
+ 'command_id': {'key': 'commandId', 'type': 'str'},
}
def __init__(
@@ -10542,6 +10866,7 @@ def __init__(
self.command_type = 'Migrate.Sync.Complete.Database' # type: str
self.input = kwargs.get('input', None)
self.output = None
+ self.command_id = kwargs.get('command_id', None)
class MigrationEligibilityInfo(msrest.serialization.Model):
@@ -10577,10 +10902,16 @@ def __init__(
class MigrationOperationInput(msrest.serialization.Model):
"""Migration Operation Input.
- :param migration_operation_id: ID tracking migration operation.
+ All required parameters must be populated in order to send to Azure.
+
+ :param migration_operation_id: Required. ID tracking migration operation.
:type migration_operation_id: str
"""
+ _validation = {
+ 'migration_operation_id': {'required': True},
+ }
+
_attribute_map = {
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
}
@@ -10590,7 +10921,7 @@ def __init__(
**kwargs
):
super(MigrationOperationInput, self).__init__(**kwargs)
- self.migration_operation_id = kwargs.get('migration_operation_id', None)
+ self.migration_operation_id = kwargs['migration_operation_id']
class MigrationReportResult(msrest.serialization.Model):
@@ -11331,12 +11662,22 @@ class MongoDbConnectionInfo(ConnectionInfo):
:type encrypt_connection: bool
:param server_brand_version: server brand version.
:type server_brand_version: str
+ :param server_version: server version.
+ :type server_version: str
+ :param server_name: name of the server.
+ :type server_name: str
+ :param trust_server_certificate: Whether to trust the server certificate.
+ :type trust_server_certificate: bool
:param enforce_ssl:
:type enforce_ssl: bool
:param port: port for server.
:type port: int
:param additional_settings: Additional connection settings.
:type additional_settings: str
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -11352,9 +11693,13 @@ class MongoDbConnectionInfo(ConnectionInfo):
'data_source': {'key': 'dataSource', 'type': 'str'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'server_name': {'key': 'serverName', 'type': 'str'},
+ 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'},
'enforce_ssl': {'key': 'enforceSSL', 'type': 'bool'},
'port': {'key': 'port', 'type': 'int'},
'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -11367,9 +11712,13 @@ def __init__(
self.data_source = kwargs.get('data_source', None)
self.encrypt_connection = kwargs.get('encrypt_connection', None)
self.server_brand_version = kwargs.get('server_brand_version', None)
+ self.server_version = kwargs.get('server_version', None)
+ self.server_name = kwargs.get('server_name', None)
+ self.trust_server_certificate = kwargs.get('trust_server_certificate', False)
self.enforce_ssl = kwargs.get('enforce_ssl', None)
self.port = kwargs.get('port', None)
self.additional_settings = kwargs.get('additional_settings', None)
+ self.authentication = kwargs.get('authentication', None)
class MongoDbDatabaseInfo(MongoDbObjectInfo):
@@ -11908,13 +12257,12 @@ class MongoDbShardKeySetting(msrest.serialization.Model):
:param fields: Required. The fields within the shard key.
:type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField]
- :param is_unique: Required. Whether the shard key is unique.
+ :param is_unique: Whether the shard key is unique.
:type is_unique: bool
"""
_validation = {
'fields': {'required': True},
- 'is_unique': {'required': True},
}
_attribute_map = {
@@ -11928,7 +12276,7 @@ def __init__(
):
super(MongoDbShardKeySetting, self).__init__(**kwargs)
self.fields = kwargs['fields']
- self.is_unique = kwargs['is_unique']
+ self.is_unique = kwargs.get('is_unique', None)
class MongoDbThrottlingSettings(msrest.serialization.Model):
@@ -11980,6 +12328,12 @@ class MySqlConnectionInfo(ConnectionInfo):
:type port: int
:param encrypt_connection: Whether to encrypt the connection.
:type encrypt_connection: bool
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
+ :param additional_settings: Additional connection settings.
+ :type additional_settings: str
"""
_validation = {
@@ -11996,6 +12350,8 @@ class MySqlConnectionInfo(ConnectionInfo):
'data_source': {'key': 'dataSource', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
+ 'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
}
def __init__(
@@ -12008,6 +12364,8 @@ def __init__(
self.data_source = kwargs.get('data_source', None)
self.port = kwargs['port']
self.encrypt_connection = kwargs.get('encrypt_connection', True)
+ self.authentication = kwargs.get('authentication', None)
+ self.additional_settings = kwargs.get('additional_settings', None)
class NameAvailabilityRequest(msrest.serialization.Model):
@@ -12494,6 +12852,16 @@ class OracleConnectionInfo(ConnectionInfo):
:type password: str
:param data_source: Required. EZConnect or TNSName connection string.
:type data_source: str
+ :param server_name: name of the server.
+ :type server_name: str
+ :param server_version: server version.
+ :type server_version: str
+ :param port: port for server.
+ :type port: int
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -12506,6 +12874,10 @@ class OracleConnectionInfo(ConnectionInfo):
'user_name': {'key': 'userName', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'data_source': {'key': 'dataSource', 'type': 'str'},
+ 'server_name': {'key': 'serverName', 'type': 'str'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'port': {'key': 'port', 'type': 'int'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -12515,6 +12887,10 @@ def __init__(
super(OracleConnectionInfo, self).__init__(**kwargs)
self.type = 'OracleConnectionInfo' # type: str
self.data_source = kwargs['data_source']
+ self.server_name = kwargs.get('server_name', None)
+ self.server_version = kwargs.get('server_version', None)
+ self.port = kwargs.get('port', None)
+ self.authentication = kwargs.get('authentication', None)
class OracleOciDriverInfo(msrest.serialization.Model):
@@ -12616,6 +12992,14 @@ class PostgreSqlConnectionInfo(ConnectionInfo):
:type encrypt_connection: bool
:param trust_server_certificate: Whether to trust the server certificate.
:type trust_server_certificate: bool
+ :param additional_settings: Additional connection settings.
+ :type additional_settings: str
+ :param server_brand_version: server brand version.
+ :type server_brand_version: str
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -12635,6 +13019,9 @@ class PostgreSqlConnectionInfo(ConnectionInfo):
'port': {'key': 'port', 'type': 'int'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'},
+ 'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
+ 'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -12650,6 +13037,9 @@ def __init__(
self.port = kwargs['port']
self.encrypt_connection = kwargs.get('encrypt_connection', True)
self.trust_server_certificate = kwargs.get('trust_server_certificate', False)
+ self.additional_settings = kwargs.get('additional_settings', None)
+ self.server_brand_version = kwargs.get('server_brand_version', None)
+ self.authentication = kwargs.get('authentication', None)
class Project(TrackedResource):
@@ -12669,14 +13059,14 @@ class Project(TrackedResource):
:vartype type: str
:ivar system_data:
:vartype system_data: ~azure.mgmt.datamigration.models.SystemData
- :param e_tag: HTTP strong entity tag value. This is ignored if submitted.
- :type e_tag: str
+ :param etag: HTTP strong entity tag value. This is ignored if submitted.
+ :type etag: str
:param source_platform: Source platform for the project. Possible values include: "SQL",
"MySQL", "PostgreSql", "MongoDb", "Unknown".
:type source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform
:param azure_authentication_info: Field that defines the Azure active directory application
info, used to connect to the target Azure resource.
- :type azure_authentication_info: str
+ :type azure_authentication_info: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp
:param target_platform: Target platform for the project. Possible values include: "SQLDB",
"SQLMI", "AzureDbForMySql", "AzureDbForPostgreSql", "MongoDb", "Unknown".
:type target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform
@@ -12709,9 +13099,9 @@ class Project(TrackedResource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
- 'e_tag': {'key': 'eTag', 'type': 'str'},
+ 'etag': {'key': 'etag', 'type': 'str'},
'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'},
- 'azure_authentication_info': {'key': 'properties.azureAuthenticationInfo', 'type': 'str'},
+ 'azure_authentication_info': {'key': 'properties.azureAuthenticationInfo', 'type': 'AzureActiveDirectoryApp'},
'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'},
@@ -12725,7 +13115,7 @@ def __init__(
**kwargs
):
super(Project, self).__init__(**kwargs)
- self.e_tag = kwargs.get('e_tag', None)
+ self.etag = kwargs.get('etag', None)
self.source_platform = kwargs.get('source_platform', None)
self.azure_authentication_info = kwargs.get('azure_authentication_info', None)
self.target_platform = kwargs.get('target_platform', None)
@@ -13697,15 +14087,24 @@ def __init__(
class SourceLocation(msrest.serialization.Model):
"""Source Location details of backups.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
:param file_share: Source File share.
:type file_share: ~azure.mgmt.datamigration.models.SqlFileShare
:param azure_blob: Source Azure Blob.
:type azure_blob: ~azure.mgmt.datamigration.models.AzureBlob
+ :ivar file_storage_type: Backup storage Type.
+ :vartype file_storage_type: str
"""
+ _validation = {
+ 'file_storage_type': {'readonly': True},
+ }
+
_attribute_map = {
'file_share': {'key': 'fileShare', 'type': 'SqlFileShare'},
'azure_blob': {'key': 'azureBlob', 'type': 'AzureBlob'},
+ 'file_storage_type': {'key': 'fileStorageType', 'type': 'str'},
}
def __init__(
@@ -13715,6 +14114,7 @@ def __init__(
super(SourceLocation, self).__init__(**kwargs)
self.file_share = kwargs.get('file_share', None)
self.azure_blob = kwargs.get('azure_blob', None)
+ self.file_storage_type = None
class SqlBackupFileInfo(msrest.serialization.Model):
@@ -13869,8 +14269,12 @@ class SqlConnectionInfo(ConnectionInfo):
:type data_source: str
:param server_name: name of the server.
:type server_name: str
- :param port: port for server.
- :type port: str
+ :param port: Port for Server.
+ :type port: int
+ :param server_version: server version.
+ :type server_version: str
+ :param server_brand_version: server brand version.
+ :type server_brand_version: str
:param resource_id: Represents the ID of an HTTP resource represented by an Azure resource
provider.
:type resource_id: str
@@ -13899,7 +14303,9 @@ class SqlConnectionInfo(ConnectionInfo):
'password': {'key': 'password', 'type': 'str'},
'data_source': {'key': 'dataSource', 'type': 'str'},
'server_name': {'key': 'serverName', 'type': 'str'},
- 'port': {'key': 'port', 'type': 'str'},
+ 'port': {'key': 'port', 'type': 'int'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'authentication': {'key': 'authentication', 'type': 'str'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
@@ -13917,6 +14323,8 @@ def __init__(
self.data_source = kwargs['data_source']
self.server_name = kwargs.get('server_name', None)
self.port = kwargs.get('port', None)
+ self.server_version = kwargs.get('server_version', None)
+ self.server_brand_version = kwargs.get('server_brand_version', None)
self.resource_id = kwargs.get('resource_id', None)
self.authentication = kwargs.get('authentication', None)
self.encrypt_connection = kwargs.get('encrypt_connection', True)
@@ -13964,6 +14372,67 @@ def __init__(
self.trust_server_certificate = kwargs.get('trust_server_certificate', None)
+class SqlDbMigrationStatusDetails(msrest.serialization.Model):
+ """Detailed status of current Sql Db migration.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar migration_state: Current State of Migration.
+ :vartype migration_state: str
+ :ivar sql_data_copy_errors: Sql Data Copy errors, if any.
+ :vartype sql_data_copy_errors: list[str]
+ :ivar list_of_copy_progress_details: Details on progress of ADF copy activities.
+ :vartype list_of_copy_progress_details:
+ list[~azure.mgmt.datamigration.models.CopyProgressDetails]
+ """
+
+ _validation = {
+ 'migration_state': {'readonly': True},
+ 'sql_data_copy_errors': {'readonly': True},
+ 'list_of_copy_progress_details': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'migration_state': {'key': 'migrationState', 'type': 'str'},
+ 'sql_data_copy_errors': {'key': 'sqlDataCopyErrors', 'type': '[str]'},
+ 'list_of_copy_progress_details': {'key': 'listOfCopyProgressDetails', 'type': '[CopyProgressDetails]'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(SqlDbMigrationStatusDetails, self).__init__(**kwargs)
+ self.migration_state = None
+ self.sql_data_copy_errors = None
+ self.list_of_copy_progress_details = None
+
+
+class SqlDbOfflineConfiguration(msrest.serialization.Model):
+ """Offline configuration.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar offline: Offline migration.
+ :vartype offline: bool
+ """
+
+ _validation = {
+ 'offline': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'offline': {'key': 'offline', 'type': 'bool'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(SqlDbOfflineConfiguration, self).__init__(**kwargs)
+ self.offline = None
+
+
class SqlFileShare(msrest.serialization.Model):
"""File share.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models_py3.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models_py3.py
index 18448edb8e1..34352e3da03 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models_py3.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/models/_models_py3.py
@@ -179,40 +179,37 @@ def __init__(
class AzureActiveDirectoryApp(msrest.serialization.Model):
"""Azure Active Directory Application.
- All required parameters must be populated in order to send to Azure.
-
- :param application_id: Required. Application ID of the Azure Active Directory Application.
+ :param application_id: Application ID of the Azure Active Directory Application.
:type application_id: str
- :param app_key: Required. Key used to authenticate to the Azure Active Directory Application.
+ :param app_key: Key used to authenticate to the Azure Active Directory Application.
:type app_key: str
- :param tenant_id: Required. Tenant id of the customer.
+ :param tenant_id: Tenant id of the customer.
:type tenant_id: str
+ :param ignore_azure_permissions: Ignore checking azure permissions on the AAD app.
+ :type ignore_azure_permissions: bool
"""
- _validation = {
- 'application_id': {'required': True},
- 'app_key': {'required': True},
- 'tenant_id': {'required': True},
- }
-
_attribute_map = {
'application_id': {'key': 'applicationId', 'type': 'str'},
'app_key': {'key': 'appKey', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
+ 'ignore_azure_permissions': {'key': 'ignoreAzurePermissions', 'type': 'bool'},
}
def __init__(
self,
*,
- application_id: str,
- app_key: str,
- tenant_id: str,
+ application_id: Optional[str] = None,
+ app_key: Optional[str] = None,
+ tenant_id: Optional[str] = None,
+ ignore_azure_permissions: Optional[bool] = None,
**kwargs
):
super(AzureActiveDirectoryApp, self).__init__(**kwargs)
self.application_id = application_id
self.app_key = app_key
self.tenant_id = tenant_id
+ self.ignore_azure_permissions = ignore_azure_permissions
class AzureBlob(msrest.serialization.Model):
@@ -376,16 +373,10 @@ def __init__(
class BlobShare(msrest.serialization.Model):
"""Blob container storage information.
- All required parameters must be populated in order to send to Azure.
-
- :param sas_uri: Required. SAS URI of Azure Storage Account Container.
+ :param sas_uri: SAS URI of Azure Storage Account Container.
:type sas_uri: str
"""
- _validation = {
- 'sas_uri': {'required': True},
- }
-
_attribute_map = {
'sas_uri': {'key': 'sasUri', 'type': 'str'},
}
@@ -393,7 +384,7 @@ class BlobShare(msrest.serialization.Model):
def __init__(
self,
*,
- sas_uri: str,
+ sas_uri: Optional[str] = None,
**kwargs
):
super(BlobShare, self).__init__(**kwargs)
@@ -774,7 +765,7 @@ class ConnectToSourceMySqlTaskInput(msrest.serialization.Model):
:type target_platform: str or ~azure.mgmt.datamigration.models.MySqlTargetPlatformType
:param check_permissions_group: Permission group for validations. Possible values include:
"Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI",
- "MigrationFromMySQLToAzureDBForMySQL".
+ "MigrationFromMySQLToAzureDBForMySQL", "MigrationFromSqlServerToAzureVM".
:type check_permissions_group: str or
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
:param is_offline_migration: Flag for whether or not the migration is offline.
@@ -1293,7 +1284,7 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
:type source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
:param check_permissions_group: Permission group for validations. Possible values include:
"Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI",
- "MigrationFromMySQLToAzureDBForMySQL".
+ "MigrationFromMySQLToAzureDBForMySQL", "MigrationFromSqlServerToAzureVM".
:type check_permissions_group: str or
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
:param collect_databases: Flag for whether to collect databases from source server.
@@ -1308,6 +1299,8 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
:param validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on
the source server.
:type validate_ssis_catalog_only: bool
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -1322,6 +1315,7 @@ class ConnectToSourceSqlServerTaskInput(msrest.serialization.Model):
'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'},
'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'},
'validate_ssis_catalog_only': {'key': 'validateSsisCatalogOnly', 'type': 'bool'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -1334,6 +1328,7 @@ def __init__(
collect_agent_jobs: Optional[bool] = False,
collect_tde_certificate_info: Optional[bool] = False,
validate_ssis_catalog_only: Optional[bool] = False,
+ encrypted_key_for_secure_fields: Optional[str] = None,
**kwargs
):
super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs)
@@ -1344,6 +1339,7 @@ def __init__(
self.collect_agent_jobs = collect_agent_jobs
self.collect_tde_certificate_info = collect_tde_certificate_info
self.validate_ssis_catalog_only = validate_ssis_catalog_only
+ self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields
class ConnectToSourceSqlServerTaskOutput(msrest.serialization.Model):
@@ -1680,6 +1676,8 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput]
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -1698,6 +1696,7 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'ConnectToSourceSqlServerTaskInput'},
'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -1705,12 +1704,14 @@ def __init__(
*,
client_data: Optional[Dict[str, str]] = None,
input: Optional["ConnectToSourceSqlServerTaskInput"] = None,
+ task_id: Optional[str] = None,
**kwargs
):
super(ConnectToSourceSqlServerTaskProperties, self).__init__(client_data=client_data, **kwargs)
self.task_type = 'ConnectToSource.SqlServer' # type: str
self.input = input
self.output = None
+ self.task_id = task_id
class ConnectToTargetAzureDbForMySqlTaskInput(msrest.serialization.Model):
@@ -2313,6 +2314,9 @@ class ConnectToTargetSqlDbTaskInput(msrest.serialization.Model):
:param target_connection_info: Required. Connection information for target SQL DB.
:type target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
+ :param query_object_counts: Boolean flag indicating whether to query object counts for each
+ database on the target server.
+ :type query_object_counts: bool
"""
_validation = {
@@ -2321,16 +2325,19 @@ class ConnectToTargetSqlDbTaskInput(msrest.serialization.Model):
_attribute_map = {
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'},
+ 'query_object_counts': {'key': 'queryObjectCounts', 'type': 'bool'},
}
def __init__(
self,
*,
target_connection_info: "SqlConnectionInfo",
+ query_object_counts: Optional[bool] = None,
**kwargs
):
super(ConnectToTargetSqlDbTaskInput, self).__init__(**kwargs)
self.target_connection_info = target_connection_info
+ self.query_object_counts = query_object_counts
class ConnectToTargetSqlDbTaskOutput(msrest.serialization.Model):
@@ -2413,6 +2420,8 @@ class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput]
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -2431,6 +2440,7 @@ class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'ConnectToTargetSqlDbTaskInput'},
'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
@@ -2438,12 +2448,14 @@ def __init__(
*,
client_data: Optional[Dict[str, str]] = None,
input: Optional["ConnectToTargetSqlDbTaskInput"] = None,
+ created_on: Optional[str] = None,
**kwargs
):
super(ConnectToTargetSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs)
self.task_type = 'ConnectToTarget.SqlDb' # type: str
self.input = input
self.output = None
+ self.created_on = created_on
class ConnectToTargetSqlMiSyncTaskInput(msrest.serialization.Model):
@@ -2756,6 +2768,81 @@ def __init__(
self.output = None
+class CopyProgressDetails(msrest.serialization.Model):
+ """Details on progress of ADF copy activity.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar table_name: Table Name.
+ :vartype table_name: str
+ :ivar status: Status of the Copy activity (InProgress, Succeeded, Failed, Canceled).
+ :vartype status: str
+ :ivar parallel_copy_type: Type of parallel copy (Dynamic range, Physical partition, none).
+ :vartype parallel_copy_type: str
+ :ivar used_parallel_copies: The degree of parallelization.
+ :vartype used_parallel_copies: int
+ :ivar data_read: Bytes read.
+ :vartype data_read: long
+ :ivar data_written: Bytes written.
+ :vartype data_written: long
+ :ivar rows_read: Rows read.
+ :vartype rows_read: long
+ :ivar rows_copied: Rows Copied.
+ :vartype rows_copied: long
+ :ivar copy_start: Copy Start.
+ :vartype copy_start: ~datetime.datetime
+ :ivar copy_throughput: Copy throughput in KBps.
+ :vartype copy_throughput: float
+ :ivar copy_duration: Copy Duration in seconds.
+ :vartype copy_duration: int
+ """
+
+ _validation = {
+ 'table_name': {'readonly': True},
+ 'status': {'readonly': True},
+ 'parallel_copy_type': {'readonly': True},
+ 'used_parallel_copies': {'readonly': True},
+ 'data_read': {'readonly': True},
+ 'data_written': {'readonly': True},
+ 'rows_read': {'readonly': True},
+ 'rows_copied': {'readonly': True},
+ 'copy_start': {'readonly': True},
+ 'copy_throughput': {'readonly': True},
+ 'copy_duration': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'table_name': {'key': 'tableName', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ 'parallel_copy_type': {'key': 'parallelCopyType', 'type': 'str'},
+ 'used_parallel_copies': {'key': 'usedParallelCopies', 'type': 'int'},
+ 'data_read': {'key': 'dataRead', 'type': 'long'},
+ 'data_written': {'key': 'dataWritten', 'type': 'long'},
+ 'rows_read': {'key': 'rowsRead', 'type': 'long'},
+ 'rows_copied': {'key': 'rowsCopied', 'type': 'long'},
+ 'copy_start': {'key': 'copyStart', 'type': 'iso-8601'},
+ 'copy_throughput': {'key': 'copyThroughput', 'type': 'float'},
+ 'copy_duration': {'key': 'copyDuration', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(CopyProgressDetails, self).__init__(**kwargs)
+ self.table_name = None
+ self.status = None
+ self.parallel_copy_type = None
+ self.used_parallel_copies = None
+ self.data_read = None
+ self.data_written = None
+ self.rows_read = None
+ self.rows_copied = None
+ self.copy_start = None
+ self.copy_throughput = None
+ self.copy_duration = None
+
+
class Database(msrest.serialization.Model):
"""Information about a single database.
@@ -3157,15 +3244,16 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
"""Database Migration Resource properties.
You probably want to use the sub-classes and not this class directly. Known
- sub-classes are: DatabaseMigrationPropertiesSqlMi, DatabaseMigrationPropertiesSqlVm.
+ sub-classes are: DatabaseMigrationPropertiesSqlDb, DatabaseMigrationPropertiesSqlMi, DatabaseMigrationPropertiesSqlVm.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -3180,12 +3268,18 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
+ :param target_database_collation: Database collation to be used for the target database.
+ :type target_database_collation: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
"""
_validation = {
@@ -3194,7 +3288,10 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
}
_attribute_map = {
@@ -3206,13 +3303,16 @@ class DatabaseMigrationProperties(msrest.serialization.Model):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
+ 'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
+ 'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
}
_subtype_map = {
- 'kind': {'SqlMi': 'DatabaseMigrationPropertiesSqlMi', 'SqlVm': 'DatabaseMigrationPropertiesSqlVm'}
+ 'kind': {'SqlDb': 'DatabaseMigrationPropertiesSqlDb', 'SqlMi': 'DatabaseMigrationPropertiesSqlMi', 'SqlVm': 'DatabaseMigrationPropertiesSqlVm'}
}
def __init__(
@@ -3222,7 +3322,7 @@ def __init__(
source_sql_connection: Optional["SqlConnectionInformation"] = None,
source_database_name: Optional[str] = None,
migration_service: Optional[str] = None,
- migration_operation_id: Optional[str] = None,
+ target_database_collation: Optional[str] = None,
**kwargs
):
super(DatabaseMigrationProperties, self).__init__(**kwargs)
@@ -3234,9 +3334,114 @@ def __init__(
self.ended_on = None
self.source_sql_connection = source_sql_connection
self.source_database_name = source_database_name
+ self.source_server_name = None
self.migration_service = migration_service
- self.migration_operation_id = migration_operation_id
+ self.migration_operation_id = None
self.migration_failure_error = None
+ self.target_database_collation = target_database_collation
+ self.provisioning_error = None
+
+
+class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties):
+ """Database Migration Resource properties for SQL database.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
+ :type kind: str or ~azure.mgmt.datamigration.models.ResourceType
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
+ :type scope: str
+ :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
+ implies that validations have been performed and migration has started.
+ :vartype provisioning_state: str
+ :ivar migration_status: Migration status.
+ :vartype migration_status: str
+ :ivar started_on: Database migration start time.
+ :vartype started_on: ~datetime.datetime
+ :ivar ended_on: Database migration end time.
+ :vartype ended_on: ~datetime.datetime
+ :param source_sql_connection: Source SQL Server connection details.
+ :type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
+ :param source_database_name: Name of the source database.
+ :type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
+ :param migration_service: Resource Id of the Migration Service.
+ :type migration_service: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
+ :ivar migration_failure_error: Error details in case of migration failure.
+ :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
+ :param target_database_collation: Database collation to be used for the target database.
+ :type target_database_collation: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails
+ :param target_sql_connection: Target SQL DB connection details.
+ :type target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
+ :ivar offline_configuration: Offline configuration.
+ :vartype offline_configuration: ~azure.mgmt.datamigration.models.SqlDbOfflineConfiguration
+ :param table_list: List of tables to copy.
+ :type table_list: list[str]
+ """
+
+ _validation = {
+ 'kind': {'required': True},
+ 'provisioning_state': {'readonly': True},
+ 'migration_status': {'readonly': True},
+ 'started_on': {'readonly': True},
+ 'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
+ 'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
+ 'migration_status_details': {'readonly': True},
+ 'offline_configuration': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'scope': {'key': 'scope', 'type': 'str'},
+ 'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'migration_status': {'key': 'migrationStatus', 'type': 'str'},
+ 'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
+ 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
+ 'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
+ 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
+ 'migration_service': {'key': 'migrationService', 'type': 'str'},
+ 'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
+ 'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
+ 'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
+ 'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'SqlDbMigrationStatusDetails'},
+ 'target_sql_connection': {'key': 'targetSqlConnection', 'type': 'SqlConnectionInformation'},
+ 'offline_configuration': {'key': 'offlineConfiguration', 'type': 'SqlDbOfflineConfiguration'},
+ 'table_list': {'key': 'tableList', 'type': '[str]'},
+ }
+
+ def __init__(
+ self,
+ *,
+ scope: Optional[str] = None,
+ source_sql_connection: Optional["SqlConnectionInformation"] = None,
+ source_database_name: Optional[str] = None,
+ migration_service: Optional[str] = None,
+ target_database_collation: Optional[str] = None,
+ target_sql_connection: Optional["SqlConnectionInformation"] = None,
+ table_list: Optional[List[str]] = None,
+ **kwargs
+ ):
+ super(DatabaseMigrationPropertiesSqlDb, self).__init__(scope=scope, source_sql_connection=source_sql_connection, source_database_name=source_database_name, migration_service=migration_service, target_database_collation=target_database_collation, **kwargs)
+ self.kind = 'SqlDb' # type: str
+ self.migration_status_details = None
+ self.target_sql_connection = target_sql_connection
+ self.offline_configuration = None
+ self.table_list = table_list
class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
@@ -3246,9 +3451,10 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -3263,18 +3469,20 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
- :ivar migration_status_details: Detailed migration status. Not included by default.
- :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param target_database_collation: Database collation to be used for the target database.
:type target_database_collation: str
- :param provisioning_error: Error message for migration provisioning failure, if any.
- :type provisioning_error: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param backup_configuration: Backup configuration info.
:type backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration
:param offline_configuration: Offline configuration.
@@ -3287,7 +3495,10 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
'migration_status_details': {'readonly': True},
}
@@ -3300,12 +3511,13 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
- 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'backup_configuration': {'key': 'backupConfiguration', 'type': 'BackupConfiguration'},
'offline_configuration': {'key': 'offlineConfiguration', 'type': 'OfflineConfiguration'},
}
@@ -3317,18 +3529,14 @@ def __init__(
source_sql_connection: Optional["SqlConnectionInformation"] = None,
source_database_name: Optional[str] = None,
migration_service: Optional[str] = None,
- migration_operation_id: Optional[str] = None,
target_database_collation: Optional[str] = None,
- provisioning_error: Optional[str] = None,
backup_configuration: Optional["BackupConfiguration"] = None,
offline_configuration: Optional["OfflineConfiguration"] = None,
**kwargs
):
- super(DatabaseMigrationPropertiesSqlMi, self).__init__(scope=scope, source_sql_connection=source_sql_connection, source_database_name=source_database_name, migration_service=migration_service, migration_operation_id=migration_operation_id, **kwargs)
+ super(DatabaseMigrationPropertiesSqlMi, self).__init__(scope=scope, source_sql_connection=source_sql_connection, source_database_name=source_database_name, migration_service=migration_service, target_database_collation=target_database_collation, **kwargs)
self.kind = 'SqlMi' # type: str
self.migration_status_details = None
- self.target_database_collation = target_database_collation
- self.provisioning_error = provisioning_error
self.backup_configuration = backup_configuration
self.offline_configuration = offline_configuration
@@ -3340,9 +3548,10 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
All required parameters must be populated in order to send to Azure.
- :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm".
+ :param kind: Required. Constant filled by server. Possible values include: "SqlMi", "SqlVm",
+ "SqlDb".
:type kind: str or ~azure.mgmt.datamigration.models.ResourceType
- :param scope: Resource Id of the target resource (SQL VM or SQL Managed Instance).
+ :param scope: Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB).
:type scope: str
:ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded
implies that validations have been performed and migration has started.
@@ -3357,18 +3566,20 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
:type source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation
:param source_database_name: Name of the source database.
:type source_database_name: str
+ :ivar source_server_name: Name of the source sql server.
+ :vartype source_server_name: str
:param migration_service: Resource Id of the Migration Service.
:type migration_service: str
- :param migration_operation_id: ID tracking current migration operation.
- :type migration_operation_id: str
+ :ivar migration_operation_id: ID tracking current migration operation.
+ :vartype migration_operation_id: str
:ivar migration_failure_error: Error details in case of migration failure.
:vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo
- :ivar migration_status_details: Detailed migration status. Not included by default.
- :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param target_database_collation: Database collation to be used for the target database.
:type target_database_collation: str
- :param provisioning_error: Error message for migration provisioning failure, if any.
- :type provisioning_error: str
+ :ivar provisioning_error: Error message for migration provisioning failure, if any.
+ :vartype provisioning_error: str
+ :ivar migration_status_details: Detailed migration status. Not included by default.
+ :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails
:param backup_configuration: Backup configuration info.
:type backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration
:param offline_configuration: Offline configuration.
@@ -3381,7 +3592,10 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
'migration_status': {'readonly': True},
'started_on': {'readonly': True},
'ended_on': {'readonly': True},
+ 'source_server_name': {'readonly': True},
+ 'migration_operation_id': {'readonly': True},
'migration_failure_error': {'readonly': True},
+ 'provisioning_error': {'readonly': True},
'migration_status_details': {'readonly': True},
}
@@ -3394,12 +3608,13 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties):
'ended_on': {'key': 'endedOn', 'type': 'iso-8601'},
'source_sql_connection': {'key': 'sourceSqlConnection', 'type': 'SqlConnectionInformation'},
'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'},
+ 'source_server_name': {'key': 'sourceServerName', 'type': 'str'},
'migration_service': {'key': 'migrationService', 'type': 'str'},
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
'migration_failure_error': {'key': 'migrationFailureError', 'type': 'ErrorInfo'},
- 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'target_database_collation': {'key': 'targetDatabaseCollation', 'type': 'str'},
'provisioning_error': {'key': 'provisioningError', 'type': 'str'},
+ 'migration_status_details': {'key': 'migrationStatusDetails', 'type': 'MigrationStatusDetails'},
'backup_configuration': {'key': 'backupConfiguration', 'type': 'BackupConfiguration'},
'offline_configuration': {'key': 'offlineConfiguration', 'type': 'OfflineConfiguration'},
}
@@ -3411,22 +3626,61 @@ def __init__(
source_sql_connection: Optional["SqlConnectionInformation"] = None,
source_database_name: Optional[str] = None,
migration_service: Optional[str] = None,
- migration_operation_id: Optional[str] = None,
target_database_collation: Optional[str] = None,
- provisioning_error: Optional[str] = None,
backup_configuration: Optional["BackupConfiguration"] = None,
offline_configuration: Optional["OfflineConfiguration"] = None,
**kwargs
):
- super(DatabaseMigrationPropertiesSqlVm, self).__init__(scope=scope, source_sql_connection=source_sql_connection, source_database_name=source_database_name, migration_service=migration_service, migration_operation_id=migration_operation_id, **kwargs)
+ super(DatabaseMigrationPropertiesSqlVm, self).__init__(scope=scope, source_sql_connection=source_sql_connection, source_database_name=source_database_name, migration_service=migration_service, target_database_collation=target_database_collation, **kwargs)
self.kind = 'SqlVm' # type: str
self.migration_status_details = None
- self.target_database_collation = target_database_collation
- self.provisioning_error = provisioning_error
self.backup_configuration = backup_configuration
self.offline_configuration = offline_configuration
+class DatabaseMigrationSqlDb(ProxyResource):
+ """Database Migration Resource for SQL Database.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id:
+ :vartype id: str
+ :ivar name:
+ :vartype name: str
+ :ivar type:
+ :vartype type: str
+ :ivar system_data: Metadata pertaining to creation and last modification of the resource.
+ :vartype system_data: ~azure.mgmt.datamigration.models.SystemData
+ :param properties: Database Migration Resource properties for SQL database.
+ :type properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'properties': {'key': 'properties', 'type': 'DatabaseMigrationPropertiesSqlDb'},
+ }
+
+ def __init__(
+ self,
+ *,
+ properties: Optional["DatabaseMigrationPropertiesSqlDb"] = None,
+ **kwargs
+ ):
+ super(DatabaseMigrationSqlDb, self).__init__(**kwargs)
+ self.system_data = None
+ self.properties = properties
+
+
class DatabaseMigrationSqlMi(ProxyResource):
"""Database Migration Resource for SQL Managed Instance.
@@ -4011,6 +4265,8 @@ class DataMigrationServiceStatusResponse(msrest.serialization.Model):
:param agent_version: The DMS instance agent version.
:type agent_version: str
+ :param agent_configuration: Agent Configuration.
+ :type agent_configuration: object
:param status: The machine-readable status, such as 'Initializing', 'Offline', 'Online',
'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or
'Failed'.
@@ -4023,6 +4279,7 @@ class DataMigrationServiceStatusResponse(msrest.serialization.Model):
_attribute_map = {
'agent_version': {'key': 'agentVersion', 'type': 'str'},
+ 'agent_configuration': {'key': 'agentConfiguration', 'type': 'object'},
'status': {'key': 'status', 'type': 'str'},
'vm_size': {'key': 'vmSize', 'type': 'str'},
'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'},
@@ -4032,6 +4289,7 @@ def __init__(
self,
*,
agent_version: Optional[str] = None,
+ agent_configuration: Optional[object] = None,
status: Optional[str] = None,
vm_size: Optional[str] = None,
supported_task_types: Optional[List[str]] = None,
@@ -4039,6 +4297,7 @@ def __init__(
):
super(DataMigrationServiceStatusResponse, self).__init__(**kwargs)
self.agent_version = agent_version
+ self.agent_configuration = agent_configuration
self.status = status
self.vm_size = vm_size
self.supported_task_types = supported_task_types
@@ -5005,6 +5264,8 @@ class GetUserTablesSqlTaskInput(msrest.serialization.Model):
:type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo
:param selected_databases: Required. List of database names to collect tables for.
:type selected_databases: list[str]
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -5015,6 +5276,7 @@ class GetUserTablesSqlTaskInput(msrest.serialization.Model):
_attribute_map = {
'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'},
'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -5022,11 +5284,13 @@ def __init__(
*,
connection_info: "SqlConnectionInfo",
selected_databases: List[str],
+ encrypted_key_for_secure_fields: Optional[str] = None,
**kwargs
):
super(GetUserTablesSqlTaskInput, self).__init__(**kwargs)
self.connection_info = connection_info
self.selected_databases = selected_databases
+ self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields
class GetUserTablesSqlTaskOutput(msrest.serialization.Model):
@@ -5104,6 +5368,8 @@ class GetUserTablesSqlTaskProperties(ProjectTaskProperties):
:type input: ~azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput]
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -5122,6 +5388,7 @@ class GetUserTablesSqlTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'GetUserTablesSqlTaskInput'},
'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -5129,12 +5396,14 @@ def __init__(
*,
client_data: Optional[Dict[str, str]] = None,
input: Optional["GetUserTablesSqlTaskInput"] = None,
+ task_id: Optional[str] = None,
**kwargs
):
super(GetUserTablesSqlTaskProperties, self).__init__(client_data=client_data, **kwargs)
self.task_type = 'GetUserTables.Sql' # type: str
self.input = input
self.output = None
+ self.task_id = task_id
class InstallOciDriverTaskInput(msrest.serialization.Model):
@@ -5508,6 +5777,8 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskInput(msrest.serialization.Model):
:param optional_agent_settings: Optional parameters for fine tuning the data transfer rate
during migration.
:type optional_agent_settings: dict[str, str]
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -5523,6 +5794,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskInput(msrest.serialization.Model):
'make_source_server_read_only': {'key': 'makeSourceServerReadOnly', 'type': 'bool'},
'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
'optional_agent_settings': {'key': 'optionalAgentSettings', 'type': '{str}'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -5534,6 +5806,7 @@ def __init__(
make_source_server_read_only: Optional[bool] = False,
started_on: Optional[datetime.datetime] = None,
optional_agent_settings: Optional[Dict[str, str]] = None,
+ encrypted_key_for_secure_fields: Optional[str] = None,
**kwargs
):
super(MigrateMySqlAzureDbForMySqlOfflineTaskInput, self).__init__(**kwargs)
@@ -5543,6 +5816,7 @@ def __init__(
self.make_source_server_read_only = make_source_server_read_only
self.started_on = started_on
self.optional_agent_settings = optional_agent_settings
+ self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields
class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(msrest.serialization.Model):
@@ -5963,6 +6237,10 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties):
:ivar output: Task output. This is ignored if submitted.
:vartype output:
list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput]
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
+ :param task_id: Task id.
+ :type task_id: str
"""
_validation = {
@@ -5981,6 +6259,8 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties):
'client_data': {'key': 'clientData', 'type': '{str}'},
'input': {'key': 'input', 'type': 'MigrateMySqlAzureDbForMySqlOfflineTaskInput'},
'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlOfflineTaskOutput]'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
+ 'task_id': {'key': 'taskId', 'type': 'str'},
}
def __init__(
@@ -5988,12 +6268,16 @@ def __init__(
*,
client_data: Optional[Dict[str, str]] = None,
input: Optional["MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = None,
+ is_cloneable: Optional[bool] = None,
+ task_id: Optional[str] = None,
**kwargs
):
super(MigrateMySqlAzureDbForMySqlOfflineTaskProperties, self).__init__(client_data=client_data, **kwargs)
self.task_type = 'Migrate.MySql.AzureDbForMySql' # type: str
self.input = input
self.output = None
+ self.is_cloneable = is_cloneable
+ self.task_id = task_id
class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(msrest.serialization.Model):
@@ -7105,13 +7389,17 @@ def __init__(
class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(msrest.serialization.Model):
"""Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task inputs.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
:param name: Name of the database.
:type name: str
+ :ivar id: Result identifier.
+ :vartype id: str
:param target_database_name: Name of target database. Note: Target database will be truncated
before starting migration.
:type target_database_name: str
:param migration_setting: Migration settings which tune the migration behavior.
- :type migration_setting: dict[str, str]
+ :type migration_setting: dict[str, object]
:param source_setting: Source settings to tune source endpoint migration behavior.
:type source_setting: dict[str, str]
:param target_setting: Target settings to tune target endpoint migration behavior.
@@ -7121,10 +7409,15 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(msrest.serializatio
list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]
"""
+ _validation = {
+ 'id': {'readonly': True},
+ }
+
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
+ 'id': {'key': 'id', 'type': 'str'},
'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'},
- 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'},
+ 'migration_setting': {'key': 'migrationSetting', 'type': '{object}'},
'source_setting': {'key': 'sourceSetting', 'type': '{str}'},
'target_setting': {'key': 'targetSetting', 'type': '{str}'},
'selected_tables': {'key': 'selectedTables', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]'},
@@ -7135,7 +7428,7 @@ def __init__(
*,
name: Optional[str] = None,
target_database_name: Optional[str] = None,
- migration_setting: Optional[Dict[str, str]] = None,
+ migration_setting: Optional[Dict[str, object]] = None,
source_setting: Optional[Dict[str, str]] = None,
target_setting: Optional[Dict[str, str]] = None,
selected_tables: Optional[List["MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None,
@@ -7143,6 +7436,7 @@ def __init__(
):
super(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs)
self.name = name
+ self.id = None
self.target_database_name = target_database_name
self.migration_setting = migration_setting
self.source_setting = source_setting
@@ -7174,6 +7468,8 @@ def __init__(
class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Model):
"""Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
All required parameters must be populated in order to send to Azure.
:param selected_databases: Required. Databases to migrate.
@@ -7186,12 +7482,15 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Mo
:type source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo
:param encrypted_key_for_secure_fields: encrypted key for secure fields.
:type encrypted_key_for_secure_fields: str
+ :ivar started_on: Migration start time.
+ :vartype started_on: ~datetime.datetime
"""
_validation = {
'selected_databases': {'required': True},
'target_connection_info': {'required': True},
'source_connection_info': {'required': True},
+ 'started_on': {'readonly': True},
}
_attribute_map = {
@@ -7199,6 +7498,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(msrest.serialization.Mo
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'},
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'},
'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
+ 'started_on': {'key': 'startedOn', 'type': 'iso-8601'},
}
def __init__(
@@ -7215,6 +7515,7 @@ def __init__(
self.target_connection_info = target_connection_info
self.source_connection_info = source_connection_info
self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields
+ self.started_on = None
class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(msrest.serialization.Model):
@@ -7680,6 +7981,8 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropert
:type task_id: str
:param created_on: DateTime in UTC when the task was created.
:type created_on: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -7700,6 +8003,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropert
'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
'created_on': {'key': 'createdOn', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -7709,6 +8013,7 @@ def __init__(
input: Optional["MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"] = None,
task_id: Optional[str] = None,
created_on: Optional[str] = None,
+ is_cloneable: Optional[bool] = None,
**kwargs
):
super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs)
@@ -7717,6 +8022,7 @@ def __init__(
self.output = None
self.task_id = task_id
self.created_on = created_on
+ self.is_cloneable = is_cloneable
class MigrateSchemaSqlServerSqlDbDatabaseInput(msrest.serialization.Model):
@@ -8112,6 +8418,8 @@ class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties):
:type created_on: str
:param task_id: Task id.
:type task_id: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -8132,6 +8440,7 @@ class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties):
'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'},
'created_on': {'key': 'createdOn', 'type': 'str'},
'task_id': {'key': 'taskId', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -8141,6 +8450,7 @@ def __init__(
input: Optional["MigrateSchemaSqlServerSqlDbTaskInput"] = None,
created_on: Optional[str] = None,
task_id: Optional[str] = None,
+ is_cloneable: Optional[bool] = None,
**kwargs
):
super(MigrateSchemaSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs)
@@ -8149,6 +8459,7 @@ def __init__(
self.output = None
self.created_on = created_on
self.task_id = task_id
+ self.is_cloneable = is_cloneable
class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput):
@@ -9567,6 +9878,8 @@ class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties):
:type task_id: str
:param is_cloneable: whether the task can be cloned or not.
:type is_cloneable: bool
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -9587,6 +9900,7 @@ class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties):
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
@@ -9596,6 +9910,7 @@ def __init__(
input: Optional["MigrateSqlServerSqlDbTaskInput"] = None,
task_id: Optional[str] = None,
is_cloneable: Optional[bool] = None,
+ created_on: Optional[str] = None,
**kwargs
):
super(MigrateSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs)
@@ -9604,6 +9919,7 @@ def __init__(
self.output = None
self.task_id = task_id
self.is_cloneable = is_cloneable
+ self.created_on = created_on
class MigrateSqlServerSqlMiDatabaseInput(msrest.serialization.Model):
@@ -9735,6 +10051,9 @@ class MigrateSqlServerSqlMiSyncTaskInput(SqlServerSqlMiSyncTaskInput):
connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage
Account.
:type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp
+ :param number_of_parallel_database_migrations: Number of database migrations to start in
+ parallel.
+ :type number_of_parallel_database_migrations: float
"""
_validation = {
@@ -9752,6 +10071,7 @@ class MigrateSqlServerSqlMiSyncTaskInput(SqlServerSqlMiSyncTaskInput):
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'},
'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'},
+ 'number_of_parallel_database_migrations': {'key': 'numberOfParallelDatabaseMigrations', 'type': 'float'},
}
def __init__(
@@ -9763,9 +10083,11 @@ def __init__(
target_connection_info: "MiSqlConnectionInfo",
azure_app: "AzureActiveDirectoryApp",
backup_file_share: Optional["FileShare"] = None,
+ number_of_parallel_database_migrations: Optional[float] = None,
**kwargs
):
super(MigrateSqlServerSqlMiSyncTaskInput, self).__init__(selected_databases=selected_databases, backup_file_share=backup_file_share, storage_resource_id=storage_resource_id, source_connection_info=source_connection_info, target_connection_info=target_connection_info, azure_app=azure_app, **kwargs)
+ self.number_of_parallel_database_migrations = number_of_parallel_database_migrations
class MigrateSqlServerSqlMiSyncTaskOutput(msrest.serialization.Model):
@@ -10058,9 +10380,11 @@ class MigrateSqlServerSqlMiSyncTaskProperties(ProjectTaskProperties):
:param client_data: Key value pairs of client data to attach meta data information to task.
:type client_data: dict[str, str]
:param input: Task input.
- :type input: ~azure.mgmt.datamigration.models.SqlServerSqlMiSyncTaskInput
+ :type input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiSyncTaskInput
:ivar output: Task output. This is ignored if submitted.
:vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiSyncTaskOutput]
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
"""
_validation = {
@@ -10077,21 +10401,24 @@ class MigrateSqlServerSqlMiSyncTaskProperties(ProjectTaskProperties):
'state': {'key': 'state', 'type': 'str'},
'commands': {'key': 'commands', 'type': '[CommandProperties]'},
'client_data': {'key': 'clientData', 'type': '{str}'},
- 'input': {'key': 'input', 'type': 'SqlServerSqlMiSyncTaskInput'},
+ 'input': {'key': 'input', 'type': 'MigrateSqlServerSqlMiSyncTaskInput'},
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMiSyncTaskOutput]'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
}
def __init__(
self,
*,
client_data: Optional[Dict[str, str]] = None,
- input: Optional["SqlServerSqlMiSyncTaskInput"] = None,
+ input: Optional["MigrateSqlServerSqlMiSyncTaskInput"] = None,
+ created_on: Optional[str] = None,
**kwargs
):
super(MigrateSqlServerSqlMiSyncTaskProperties, self).__init__(client_data=client_data, **kwargs)
self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' # type: str
self.input = input
self.output = None
+ self.created_on = created_on
class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
@@ -10125,6 +10452,8 @@ class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if
Windows logins are selected.
:type aad_domain_name: str
+ :param encrypted_key_for_secure_fields: encrypted key for secure fields.
+ :type encrypted_key_for_secure_fields: str
"""
_validation = {
@@ -10145,6 +10474,7 @@ class MigrateSqlServerSqlMiTaskInput(SqlMigrationTaskInput):
'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'},
'backup_mode': {'key': 'backupMode', 'type': 'str'},
'aad_domain_name': {'key': 'aadDomainName', 'type': 'str'},
+ 'encrypted_key_for_secure_fields': {'key': 'encryptedKeyForSecureFields', 'type': 'str'},
}
def __init__(
@@ -10160,6 +10490,7 @@ def __init__(
backup_file_share: Optional["FileShare"] = None,
backup_mode: Optional[Union[str, "BackupMode"]] = None,
aad_domain_name: Optional[str] = None,
+ encrypted_key_for_secure_fields: Optional[str] = None,
**kwargs
):
super(MigrateSqlServerSqlMiTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs)
@@ -10171,6 +10502,7 @@ def __init__(
self.backup_blob_share = backup_blob_share
self.backup_mode = backup_mode
self.aad_domain_name = aad_domain_name
+ self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields
class MigrateSqlServerSqlMiTaskOutput(msrest.serialization.Model):
@@ -10608,6 +10940,12 @@ class MigrateSqlServerSqlMiTaskProperties(ProjectTaskProperties):
:vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMiTaskOutput]
:param task_id: task id.
:type task_id: str
+ :param created_on: DateTime in UTC when the task was created.
+ :type created_on: str
+ :param parent_task_id: parent task id.
+ :type parent_task_id: str
+ :param is_cloneable: whether the task can be cloned or not.
+ :type is_cloneable: bool
"""
_validation = {
@@ -10627,6 +10965,9 @@ class MigrateSqlServerSqlMiTaskProperties(ProjectTaskProperties):
'input': {'key': 'input', 'type': 'MigrateSqlServerSqlMiTaskInput'},
'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMiTaskOutput]'},
'task_id': {'key': 'taskId', 'type': 'str'},
+ 'created_on': {'key': 'createdOn', 'type': 'str'},
+ 'parent_task_id': {'key': 'parentTaskId', 'type': 'str'},
+ 'is_cloneable': {'key': 'isCloneable', 'type': 'bool'},
}
def __init__(
@@ -10635,6 +10976,9 @@ def __init__(
client_data: Optional[Dict[str, str]] = None,
input: Optional["MigrateSqlServerSqlMiTaskInput"] = None,
task_id: Optional[str] = None,
+ created_on: Optional[str] = None,
+ parent_task_id: Optional[str] = None,
+ is_cloneable: Optional[bool] = None,
**kwargs
):
super(MigrateSqlServerSqlMiTaskProperties, self).__init__(client_data=client_data, **kwargs)
@@ -10642,6 +10986,9 @@ def __init__(
self.input = input
self.output = None
self.task_id = task_id
+ self.created_on = created_on
+ self.parent_task_id = parent_task_id
+ self.is_cloneable = is_cloneable
class MigrateSsisTaskInput(SqlMigrationTaskInput):
@@ -11032,6 +11379,8 @@ class MigrateSyncCompleteCommandProperties(CommandProperties):
:type input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput
:ivar output: Command output. This is ignored if submitted.
:vartype output: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput
+ :param command_id: Command id.
+ :type command_id: str
"""
_validation = {
@@ -11047,18 +11396,21 @@ class MigrateSyncCompleteCommandProperties(CommandProperties):
'state': {'key': 'state', 'type': 'str'},
'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'},
'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'},
+ 'command_id': {'key': 'commandId', 'type': 'str'},
}
def __init__(
self,
*,
input: Optional["MigrateSyncCompleteCommandInput"] = None,
+ command_id: Optional[str] = None,
**kwargs
):
super(MigrateSyncCompleteCommandProperties, self).__init__(**kwargs)
self.command_type = 'Migrate.Sync.Complete.Database' # type: str
self.input = input
self.output = None
+ self.command_id = command_id
class MigrationEligibilityInfo(msrest.serialization.Model):
@@ -11094,10 +11446,16 @@ def __init__(
class MigrationOperationInput(msrest.serialization.Model):
"""Migration Operation Input.
- :param migration_operation_id: ID tracking migration operation.
+ All required parameters must be populated in order to send to Azure.
+
+ :param migration_operation_id: Required. ID tracking migration operation.
:type migration_operation_id: str
"""
+ _validation = {
+ 'migration_operation_id': {'required': True},
+ }
+
_attribute_map = {
'migration_operation_id': {'key': 'migrationOperationId', 'type': 'str'},
}
@@ -11105,7 +11463,7 @@ class MigrationOperationInput(msrest.serialization.Model):
def __init__(
self,
*,
- migration_operation_id: Optional[str] = None,
+ migration_operation_id: str,
**kwargs
):
super(MigrationOperationInput, self).__init__(**kwargs)
@@ -11921,12 +12279,22 @@ class MongoDbConnectionInfo(ConnectionInfo):
:type encrypt_connection: bool
:param server_brand_version: server brand version.
:type server_brand_version: str
+ :param server_version: server version.
+ :type server_version: str
+ :param server_name: name of the server.
+ :type server_name: str
+ :param trust_server_certificate: Whether to trust the server certificate.
+ :type trust_server_certificate: bool
:param enforce_ssl:
:type enforce_ssl: bool
:param port: port for server.
:type port: int
:param additional_settings: Additional connection settings.
:type additional_settings: str
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -11942,9 +12310,13 @@ class MongoDbConnectionInfo(ConnectionInfo):
'data_source': {'key': 'dataSource', 'type': 'str'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'server_name': {'key': 'serverName', 'type': 'str'},
+ 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'},
'enforce_ssl': {'key': 'enforceSSL', 'type': 'bool'},
'port': {'key': 'port', 'type': 'int'},
'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -11956,9 +12328,13 @@ def __init__(
data_source: Optional[str] = None,
encrypt_connection: Optional[bool] = None,
server_brand_version: Optional[str] = None,
+ server_version: Optional[str] = None,
+ server_name: Optional[str] = None,
+ trust_server_certificate: Optional[bool] = False,
enforce_ssl: Optional[bool] = None,
port: Optional[int] = None,
additional_settings: Optional[str] = None,
+ authentication: Optional[Union[str, "AuthenticationType"]] = None,
**kwargs
):
super(MongoDbConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs)
@@ -11967,9 +12343,13 @@ def __init__(
self.data_source = data_source
self.encrypt_connection = encrypt_connection
self.server_brand_version = server_brand_version
+ self.server_version = server_version
+ self.server_name = server_name
+ self.trust_server_certificate = trust_server_certificate
self.enforce_ssl = enforce_ssl
self.port = port
self.additional_settings = additional_settings
+ self.authentication = authentication
class MongoDbDatabaseInfo(MongoDbObjectInfo):
@@ -12574,13 +12954,12 @@ class MongoDbShardKeySetting(msrest.serialization.Model):
:param fields: Required. The fields within the shard key.
:type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField]
- :param is_unique: Required. Whether the shard key is unique.
+ :param is_unique: Whether the shard key is unique.
:type is_unique: bool
"""
_validation = {
'fields': {'required': True},
- 'is_unique': {'required': True},
}
_attribute_map = {
@@ -12592,7 +12971,7 @@ def __init__(
self,
*,
fields: List["MongoDbShardKeyField"],
- is_unique: bool,
+ is_unique: Optional[bool] = None,
**kwargs
):
super(MongoDbShardKeySetting, self).__init__(**kwargs)
@@ -12653,6 +13032,12 @@ class MySqlConnectionInfo(ConnectionInfo):
:type port: int
:param encrypt_connection: Whether to encrypt the connection.
:type encrypt_connection: bool
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
+ :param additional_settings: Additional connection settings.
+ :type additional_settings: str
"""
_validation = {
@@ -12669,6 +13054,8 @@ class MySqlConnectionInfo(ConnectionInfo):
'data_source': {'key': 'dataSource', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
+ 'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
}
def __init__(
@@ -12680,6 +13067,8 @@ def __init__(
password: Optional[str] = None,
data_source: Optional[str] = None,
encrypt_connection: Optional[bool] = True,
+ authentication: Optional[Union[str, "AuthenticationType"]] = None,
+ additional_settings: Optional[str] = None,
**kwargs
):
super(MySqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs)
@@ -12688,6 +13077,8 @@ def __init__(
self.data_source = data_source
self.port = port
self.encrypt_connection = encrypt_connection
+ self.authentication = authentication
+ self.additional_settings = additional_settings
class NameAvailabilityRequest(msrest.serialization.Model):
@@ -13198,6 +13589,16 @@ class OracleConnectionInfo(ConnectionInfo):
:type password: str
:param data_source: Required. EZConnect or TNSName connection string.
:type data_source: str
+ :param server_name: name of the server.
+ :type server_name: str
+ :param server_version: server version.
+ :type server_version: str
+ :param port: port for server.
+ :type port: int
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -13210,6 +13611,10 @@ class OracleConnectionInfo(ConnectionInfo):
'user_name': {'key': 'userName', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'data_source': {'key': 'dataSource', 'type': 'str'},
+ 'server_name': {'key': 'serverName', 'type': 'str'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'port': {'key': 'port', 'type': 'int'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -13218,11 +13623,19 @@ def __init__(
data_source: str,
user_name: Optional[str] = None,
password: Optional[str] = None,
+ server_name: Optional[str] = None,
+ server_version: Optional[str] = None,
+ port: Optional[int] = None,
+ authentication: Optional[Union[str, "AuthenticationType"]] = None,
**kwargs
):
super(OracleConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs)
self.type = 'OracleConnectionInfo' # type: str
self.data_source = data_source
+ self.server_name = server_name
+ self.server_version = server_version
+ self.port = port
+ self.authentication = authentication
class OracleOciDriverInfo(msrest.serialization.Model):
@@ -13327,6 +13740,14 @@ class PostgreSqlConnectionInfo(ConnectionInfo):
:type encrypt_connection: bool
:param trust_server_certificate: Whether to trust the server certificate.
:type trust_server_certificate: bool
+ :param additional_settings: Additional connection settings.
+ :type additional_settings: str
+ :param server_brand_version: server brand version.
+ :type server_brand_version: str
+ :param authentication: Authentication type to use for connection. Possible values include:
+ "None", "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated",
+ "ActiveDirectoryPassword".
+ :type authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType
"""
_validation = {
@@ -13346,6 +13767,9 @@ class PostgreSqlConnectionInfo(ConnectionInfo):
'port': {'key': 'port', 'type': 'int'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'},
+ 'additional_settings': {'key': 'additionalSettings', 'type': 'str'},
+ 'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
+ 'authentication': {'key': 'authentication', 'type': 'str'},
}
def __init__(
@@ -13360,6 +13784,9 @@ def __init__(
database_name: Optional[str] = None,
encrypt_connection: Optional[bool] = True,
trust_server_certificate: Optional[bool] = False,
+ additional_settings: Optional[str] = None,
+ server_brand_version: Optional[str] = None,
+ authentication: Optional[Union[str, "AuthenticationType"]] = None,
**kwargs
):
super(PostgreSqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs)
@@ -13371,6 +13798,9 @@ def __init__(
self.port = port
self.encrypt_connection = encrypt_connection
self.trust_server_certificate = trust_server_certificate
+ self.additional_settings = additional_settings
+ self.server_brand_version = server_brand_version
+ self.authentication = authentication
class Project(TrackedResource):
@@ -13390,14 +13820,14 @@ class Project(TrackedResource):
:vartype type: str
:ivar system_data:
:vartype system_data: ~azure.mgmt.datamigration.models.SystemData
- :param e_tag: HTTP strong entity tag value. This is ignored if submitted.
- :type e_tag: str
+ :param etag: HTTP strong entity tag value. This is ignored if submitted.
+ :type etag: str
:param source_platform: Source platform for the project. Possible values include: "SQL",
"MySQL", "PostgreSql", "MongoDb", "Unknown".
:type source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform
:param azure_authentication_info: Field that defines the Azure active directory application
info, used to connect to the target Azure resource.
- :type azure_authentication_info: str
+ :type azure_authentication_info: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp
:param target_platform: Target platform for the project. Possible values include: "SQLDB",
"SQLMI", "AzureDbForMySql", "AzureDbForPostgreSql", "MongoDb", "Unknown".
:type target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform
@@ -13430,9 +13860,9 @@ class Project(TrackedResource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
- 'e_tag': {'key': 'eTag', 'type': 'str'},
+ 'etag': {'key': 'etag', 'type': 'str'},
'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'},
- 'azure_authentication_info': {'key': 'properties.azureAuthenticationInfo', 'type': 'str'},
+ 'azure_authentication_info': {'key': 'properties.azureAuthenticationInfo', 'type': 'AzureActiveDirectoryApp'},
'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'},
@@ -13446,9 +13876,9 @@ def __init__(
*,
location: Optional[str] = None,
tags: Optional[Dict[str, str]] = None,
- e_tag: Optional[str] = None,
+ etag: Optional[str] = None,
source_platform: Optional[Union[str, "ProjectSourcePlatform"]] = None,
- azure_authentication_info: Optional[str] = None,
+ azure_authentication_info: Optional["AzureActiveDirectoryApp"] = None,
target_platform: Optional[Union[str, "ProjectTargetPlatform"]] = None,
source_connection_info: Optional["ConnectionInfo"] = None,
target_connection_info: Optional["ConnectionInfo"] = None,
@@ -13456,7 +13886,7 @@ def __init__(
**kwargs
):
super(Project, self).__init__(location=location, tags=tags, **kwargs)
- self.e_tag = e_tag
+ self.etag = etag
self.source_platform = source_platform
self.azure_authentication_info = azure_authentication_info
self.target_platform = target_platform
@@ -14511,15 +14941,24 @@ def __init__(
class SourceLocation(msrest.serialization.Model):
"""Source Location details of backups.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
:param file_share: Source File share.
:type file_share: ~azure.mgmt.datamigration.models.SqlFileShare
:param azure_blob: Source Azure Blob.
:type azure_blob: ~azure.mgmt.datamigration.models.AzureBlob
+ :ivar file_storage_type: Backup storage Type.
+ :vartype file_storage_type: str
"""
+ _validation = {
+ 'file_storage_type': {'readonly': True},
+ }
+
_attribute_map = {
'file_share': {'key': 'fileShare', 'type': 'SqlFileShare'},
'azure_blob': {'key': 'azureBlob', 'type': 'AzureBlob'},
+ 'file_storage_type': {'key': 'fileStorageType', 'type': 'str'},
}
def __init__(
@@ -14532,6 +14971,7 @@ def __init__(
super(SourceLocation, self).__init__(**kwargs)
self.file_share = file_share
self.azure_blob = azure_blob
+ self.file_storage_type = None
class SqlBackupFileInfo(msrest.serialization.Model):
@@ -14686,8 +15126,12 @@ class SqlConnectionInfo(ConnectionInfo):
:type data_source: str
:param server_name: name of the server.
:type server_name: str
- :param port: port for server.
- :type port: str
+ :param port: Port for Server.
+ :type port: int
+ :param server_version: server version.
+ :type server_version: str
+ :param server_brand_version: server brand version.
+ :type server_brand_version: str
:param resource_id: Represents the ID of an HTTP resource represented by an Azure resource
provider.
:type resource_id: str
@@ -14716,7 +15160,9 @@ class SqlConnectionInfo(ConnectionInfo):
'password': {'key': 'password', 'type': 'str'},
'data_source': {'key': 'dataSource', 'type': 'str'},
'server_name': {'key': 'serverName', 'type': 'str'},
- 'port': {'key': 'port', 'type': 'str'},
+ 'port': {'key': 'port', 'type': 'int'},
+ 'server_version': {'key': 'serverVersion', 'type': 'str'},
+ 'server_brand_version': {'key': 'serverBrandVersion', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'authentication': {'key': 'authentication', 'type': 'str'},
'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'},
@@ -14732,7 +15178,9 @@ def __init__(
user_name: Optional[str] = None,
password: Optional[str] = None,
server_name: Optional[str] = None,
- port: Optional[str] = None,
+ port: Optional[int] = None,
+ server_version: Optional[str] = None,
+ server_brand_version: Optional[str] = None,
resource_id: Optional[str] = None,
authentication: Optional[Union[str, "AuthenticationType"]] = None,
encrypt_connection: Optional[bool] = True,
@@ -14746,6 +15194,8 @@ def __init__(
self.data_source = data_source
self.server_name = server_name
self.port = port
+ self.server_version = server_version
+ self.server_brand_version = server_brand_version
self.resource_id = resource_id
self.authentication = authentication
self.encrypt_connection = encrypt_connection
@@ -14800,6 +15250,67 @@ def __init__(
self.trust_server_certificate = trust_server_certificate
+class SqlDbMigrationStatusDetails(msrest.serialization.Model):
+ """Detailed status of current Sql Db migration.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar migration_state: Current State of Migration.
+ :vartype migration_state: str
+ :ivar sql_data_copy_errors: Sql Data Copy errors, if any.
+ :vartype sql_data_copy_errors: list[str]
+ :ivar list_of_copy_progress_details: Details on progress of ADF copy activities.
+ :vartype list_of_copy_progress_details:
+ list[~azure.mgmt.datamigration.models.CopyProgressDetails]
+ """
+
+ _validation = {
+ 'migration_state': {'readonly': True},
+ 'sql_data_copy_errors': {'readonly': True},
+ 'list_of_copy_progress_details': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'migration_state': {'key': 'migrationState', 'type': 'str'},
+ 'sql_data_copy_errors': {'key': 'sqlDataCopyErrors', 'type': '[str]'},
+ 'list_of_copy_progress_details': {'key': 'listOfCopyProgressDetails', 'type': '[CopyProgressDetails]'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(SqlDbMigrationStatusDetails, self).__init__(**kwargs)
+ self.migration_state = None
+ self.sql_data_copy_errors = None
+ self.list_of_copy_progress_details = None
+
+
+class SqlDbOfflineConfiguration(msrest.serialization.Model):
+ """Offline configuration.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar offline: Offline migration.
+ :vartype offline: bool
+ """
+
+ _validation = {
+ 'offline': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'offline': {'key': 'offline', 'type': 'bool'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(SqlDbOfflineConfiguration, self).__init__(**kwargs)
+ self.offline = None
+
+
class SqlFileShare(msrest.serialization.Model):
"""File share.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/__init__.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/__init__.py
index 6e3db8789ac..f225cba43b6 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/__init__.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/__init__.py
@@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+from ._database_migrations_sql_db_operations import DatabaseMigrationsSqlDbOperations
from ._database_migrations_sql_mi_operations import DatabaseMigrationsSqlMiOperations
from ._database_migrations_sql_vm_operations import DatabaseMigrationsSqlVmOperations
from ._operations import Operations
@@ -19,6 +20,7 @@
from ._files_operations import FilesOperations
__all__ = [
+ 'DatabaseMigrationsSqlDbOperations',
'DatabaseMigrationsSqlMiOperations',
'DatabaseMigrationsSqlVmOperations',
'Operations',
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_db_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_db_operations.py
new file mode 100644
index 00000000000..f93956ee30b
--- /dev/null
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_db_operations.py
@@ -0,0 +1,511 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from typing import TYPE_CHECKING
+import warnings
+
+from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import HttpRequest, HttpResponse
+from azure.core.polling import LROPoller, NoPolling, PollingMethod
+from azure.mgmt.core.exceptions import ARMErrorFormat
+from azure.mgmt.core.polling.arm_polling import ARMPolling
+
+from .. import models
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union
+
+ T = TypeVar('T')
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+class DatabaseMigrationsSqlDbOperations(object):
+ """DatabaseMigrationsSqlDbOperations operations.
+
+ You should not instantiate this class directly. Instead, you should create a Client instance that
+ instantiates it for you and attaches it as an attribute.
+
+ :ivar models: Alias to model classes used in this operation group.
+ :type models: ~azure.mgmt.datamigration.models
+ :param client: Client for service requests.
+ :param config: Configuration of service client.
+ :param serializer: An object model serializer.
+ :param deserializer: An object model deserializer.
+ """
+
+ models = models
+
+ def __init__(self, client, config, serializer, deserializer):
+ self._client = client
+ self._serialize = serializer
+ self._deserialize = deserializer
+ self._config = config
+
+ def get(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ migration_operation_id=None, # type: Optional[str]
+ expand=None, # type: Optional[str]
+ **kwargs # type: Any
+ ):
+ # type: (...) -> "models.DatabaseMigrationSqlDb"
+ """Retrieve the Database Migration resource.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param migration_operation_id: Optional migration operation ID. If this is provided, then
+ details of migration operation for that ID are retrieved. If not provided (default), then
+ details related to most recent or current operation are retrieved.
+ :type migration_operation_id: str
+ :param expand: Complete migration details be included in the response.
+ :type expand: str
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: DatabaseMigrationSqlDb, or the result of cls(response)
+ :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ accept = "application/json"
+
+ # Construct URL
+ url = self.get.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ if migration_operation_id is not None:
+ query_parameters['migrationOperationId'] = self._serialize.query("migration_operation_id", migration_operation_id, 'str')
+ if expand is not None:
+ query_parameters['$expand'] = self._serialize.query("expand", expand, 'str')
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+
+ return deserialized
+ get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ def _create_or_update_initial(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ parameters, # type: "models.DatabaseMigrationSqlDb"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> "models.DatabaseMigrationSqlDb"
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ content_type = kwargs.pop("content_type", "application/json")
+ accept = "application/json"
+
+ # Construct URL
+ url = self._create_or_update_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ body_content_kwargs = {} # type: Dict[str, Any]
+ body_content = self._serialize.body(parameters, 'DatabaseMigrationSqlDb')
+ body_content_kwargs['content'] = body_content
+ request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 201]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if response.status_code == 200:
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if response.status_code == 201:
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+
+ return deserialized
+ _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ def begin_create_or_update(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ parameters, # type: "models.DatabaseMigrationSqlDb"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> LROPoller["models.DatabaseMigrationSqlDb"]
+ """Create a new database migration to a given SQL DB.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param parameters: Details of Sql Db migration resource.
+ :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.PollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseMigrationSqlDb"]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = self._create_or_update_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize('DatabaseMigrationSqlDb', pipeline_response)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+ return deserialized
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = NoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return LROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ def _delete_initial(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ force=None, # type: Optional[bool]
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+
+ # Construct URL
+ url = self._delete_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ if force is not None:
+ query_parameters['force'] = self._serialize.query("force", force, 'bool')
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+
+ request = self._client.delete(url, query_parameters, header_parameters)
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202, 204]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ def begin_delete(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ force=None, # type: Optional[bool]
+ **kwargs # type: Any
+ ):
+ # type: (...) -> LROPoller[None]
+ """Delete Database Migration resource.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param force: Optional force delete boolean. If this is provided as true, migration will be
+ deleted even if active.
+ :type force: bool
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.PollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = self._delete_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ force=force,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = NoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return LROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'} # type: ignore
+
+ def _cancel_initial(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ parameters, # type: "models.MigrationOperationInput"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2022-03-30-preview"
+ content_type = kwargs.pop("content_type", "application/json")
+
+ # Construct URL
+ url = self._cancel_initial.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
+
+ body_content_kwargs = {} # type: Dict[str, Any]
+ body_content = self._serialize.body(parameters, 'MigrationOperationInput')
+ body_content_kwargs['content'] = body_content
+ request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ _cancel_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'} # type: ignore
+
+ def begin_cancel(
+ self,
+ resource_group_name, # type: str
+ sql_db_instance_name, # type: str
+ target_db_name, # type: str
+ parameters, # type: "models.MigrationOperationInput"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> LROPoller[None]
+ """Stop on going migration for the database.
+
+ :param resource_group_name: Name of the resource group that contains the resource. You can
+ obtain this value from the Azure Resource Manager API or the portal.
+ :type resource_group_name: str
+ :param sql_db_instance_name:
+ :type sql_db_instance_name: str
+ :param target_db_name: The name of the target database.
+ :type target_db_name: str
+ :param parameters: Required migration operation ID for which cancel will be initiated.
+ :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :paramtype polling: bool or ~azure.core.polling.PollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType[None]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = self._cancel_initial(
+ resource_group_name=resource_group_name,
+ sql_db_instance_name=sql_db_instance_name,
+ target_db_name=target_db_name,
+ parameters=parameters,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+
+ kwargs.pop('error_map', None)
+ kwargs.pop('content_type', None)
+
+ def get_long_running_output(pipeline_response):
+ if cls:
+ return cls(pipeline_response, None, {})
+
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'sqlDbInstanceName': self._serialize.url("sql_db_instance_name", sql_db_instance_name, 'str'),
+ 'targetDbName': self._serialize.url("target_db_name", target_db_name, 'str'),
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
+ }
+
+ if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
+ elif polling is False: polling_method = NoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return LROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ else:
+ return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ begin_cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'} # type: ignore
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_mi_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_mi_operations.py
index 442a15827c7..c9a96778836 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_mi_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_mi_operations.py
@@ -56,7 +56,7 @@ def get(
**kwargs # type: Any
):
# type: (...) -> "models.DatabaseMigrationSqlMi"
- """Retrieve the Database Migration resource.
+ """Retrieve the specified database migration for a given SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -69,7 +69,7 @@ def get(
details of migration operation for that ID are retrieved. If not provided (default), then
details related to most recent or current operation are retrieved.
:type migration_operation_id: str
- :param expand: The child resources to include in the response.
+ :param expand: Complete migration details be included in the response.
:type expand: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DatabaseMigrationSqlMi, or the result of cls(response)
@@ -81,7 +81,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -136,7 +136,7 @@ def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -274,7 +274,7 @@ def _cancel_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -320,7 +320,7 @@ def begin_cancel(
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
- """Stop migrations in progress for the database.
+ """Stop in-progress database migration to SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -400,7 +400,7 @@ def _cutover_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -446,7 +446,7 @@ def begin_cutover(
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
- """Initiate cutover for online migration in progress for the database.
+ """Initiate cutover for in-progress online database migration to SQL Managed Instance.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_vm_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_vm_operations.py
index 3faec7da35c..a42a96b87e1 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_vm_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_vm_operations.py
@@ -56,7 +56,7 @@ def get(
**kwargs # type: Any
):
# type: (...) -> "models.DatabaseMigrationSqlVm"
- """Retrieve the Database Migration resource.
+ """Retrieve the specified database migration for a given SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -69,7 +69,7 @@ def get(
details of migration operation for that ID are retrieved. If not provided (default), then
details related to most recent or current operation are retrieved.
:type migration_operation_id: str
- :param expand: The child resources to include in the response.
+ :param expand: Complete migration details be included in the response.
:type expand: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DatabaseMigrationSqlVm, or the result of cls(response)
@@ -81,7 +81,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -136,7 +136,7 @@ def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -274,7 +274,7 @@ def _cancel_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -320,7 +320,7 @@ def begin_cancel(
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
- """Stop ongoing migration for the database.
+ """Stop in-progress database migration to SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -400,7 +400,7 @@ def _cutover_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
# Construct URL
@@ -446,7 +446,7 @@ def begin_cutover(
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
- """Cutover online migration operation for the database.
+ """Initiate cutover for in-progress online database migration to SQL VM.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_files_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_files_operations.py
index 98c58323bd4..341b06deed2 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_files_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_files_operations.py
@@ -74,7 +74,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -160,7 +160,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -233,7 +233,7 @@ def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -312,7 +312,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -382,7 +382,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -458,7 +458,7 @@ def read(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -528,7 +528,7 @@ def read_write(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_operations.py
index 155c79215e6..415efca6113 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_operations.py
@@ -62,7 +62,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_projects_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_projects_operations.py
index eb7d883bfd4..b1590a4c09b 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_projects_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_projects_operations.py
@@ -71,7 +71,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -156,7 +156,7 @@ def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -232,7 +232,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -302,7 +302,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -371,7 +371,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_resource_skus_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_resource_skus_operations.py
index 427b275241a..aa43570fba0 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_resource_skus_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_resource_skus_operations.py
@@ -64,7 +64,7 @@ def list_skus(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_service_tasks_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_service_tasks_operations.py
index 3844742d6cd..dea034b4dac 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_service_tasks_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_service_tasks_operations.py
@@ -76,7 +76,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -165,7 +165,7 @@ def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -244,7 +244,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -316,7 +316,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -386,7 +386,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -458,7 +458,7 @@ def cancel(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_services_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_services_operations.py
index 387c2434a44..16d83f7814b 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_services_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_services_operations.py
@@ -60,7 +60,7 @@ def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -214,7 +214,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -264,7 +264,7 @@ def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -385,7 +385,7 @@ def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -533,7 +533,7 @@ def check_status(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -582,7 +582,7 @@ def _start_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -696,7 +696,7 @@ def _stop_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -825,7 +825,7 @@ def list_skus(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -906,7 +906,7 @@ def check_children_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -971,7 +971,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -1043,7 +1043,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -1119,7 +1119,7 @@ def check_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_sql_migration_services_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_sql_migration_services_operations.py
index bb80692b83a..0854b6e8efc 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_sql_migration_services_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_sql_migration_services_operations.py
@@ -54,7 +54,7 @@ def get(
**kwargs # type: Any
):
# type: (...) -> "models.SqlMigrationService"
- """Retrieve the Migration Service.
+ """Retrieve the Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -71,7 +71,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -120,7 +120,7 @@ def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -250,7 +250,7 @@ def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
@@ -288,7 +288,7 @@ def begin_delete(
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
- """Delete SQL Migration Service.
+ """Delete Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -360,7 +360,7 @@ def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -413,7 +413,7 @@ def begin_update(
**kwargs # type: Any
):
# type: (...) -> LROPoller["models.SqlMigrationService"]
- """Update SQL Migration Service.
+ """Update Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -499,7 +499,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -574,7 +574,7 @@ def list_auth_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -637,7 +637,7 @@ def regenerate_auth_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -705,7 +705,7 @@ def delete_node(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -770,7 +770,7 @@ def list_migrations(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -829,7 +829,8 @@ def list_monitoring_data(
**kwargs # type: Any
):
# type: (...) -> "models.IntegrationRuntimeMonitoringData"
- """Retrieve the Monitoring Data.
+ """Retrieve the registered Integration Runtime nodes and their monitoring data for a given
+ Database Migration Service.
:param resource_group_name: Name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal.
@@ -846,7 +847,7 @@ def list_monitoring_data(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -899,7 +900,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_tasks_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_tasks_operations.py
index 9c05e5f389c..042fbe59f3a 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_tasks_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_tasks_operations.py
@@ -78,7 +78,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -170,7 +170,7 @@ def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -253,7 +253,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -329,7 +329,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -403,7 +403,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -479,7 +479,7 @@ def cancel(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
# Construct URL
@@ -553,7 +553,7 @@ def command(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
diff --git a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_usages_operations.py b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_usages_operations.py
index bc3dbfb7de5..3e6eaae1dea 100644
--- a/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_usages_operations.py
+++ b/src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_usages_operations.py
@@ -68,7 +68,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-10-30-preview"
+ api_version = "2022-03-30-preview"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/datamigration/report.md b/src/datamigration/report.md
index 3d50950b7a7..32164bfa4fc 100644
--- a/src/datamigration/report.md
+++ b/src/datamigration/report.md
@@ -9,11 +9,20 @@
### Command groups in `az datamigration` extension
|CLI Command Group|Group Swagger name|Commands|
|---------|------------|--------|
+|az datamigration sql-db|DatabaseMigrationsSqlDb|[commands](#CommandsInDatabaseMigrationsSqlDb)|
|az datamigration sql-managed-instance|DatabaseMigrationsSqlMi|[commands](#CommandsInDatabaseMigrationsSqlMi)|
|az datamigration sql-service|SqlMigrationServices|[commands](#CommandsInSqlMigrationServices)|
|az datamigration sql-vm|DatabaseMigrationsSqlVm|[commands](#CommandsInDatabaseMigrationsSqlVm)|
## COMMANDS
+### Commands in `az datamigration sql-db` group
+|CLI Command|Operation Swagger name|Parameters|Examples|
+|---------|------------|--------|-----------|
+|[az datamigration sql-db show](#DatabaseMigrationsSqlDbGet)|Get|[Parameters](#ParametersDatabaseMigrationsSqlDbGet)|[Example](#ExamplesDatabaseMigrationsSqlDbGet)|
+|[az datamigration sql-db create](#DatabaseMigrationsSqlDbCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDatabaseMigrationsSqlDbCreateOrUpdate#Create)|[Example](#ExamplesDatabaseMigrationsSqlDbCreateOrUpdate#Create)|
+|[az datamigration sql-db delete](#DatabaseMigrationsSqlDbDelete)|Delete|[Parameters](#ParametersDatabaseMigrationsSqlDbDelete)|[Example](#ExamplesDatabaseMigrationsSqlDbDelete)|
+|[az datamigration sql-db cancel](#DatabaseMigrationsSqlDbcancel)|cancel|[Parameters](#ParametersDatabaseMigrationsSqlDbcancel)|[Example](#ExamplesDatabaseMigrationsSqlDbcancel)|
+
### Commands in `az datamigration sql-managed-instance` group
|CLI Command|Operation Swagger name|Parameters|Examples|
|---------|------------|--------|-----------|
@@ -47,11 +56,95 @@
## COMMAND DETAILS
+### group `az datamigration sql-db`
+#### Command `az datamigration sql-db show`
+
+##### Example
+```
+az datamigration sql-db show --expand "MigrationStatusDetails" --resource-group "testrg" --sqldb-instance-name \
+"sqldbinstance" --target-db-name "db1"
+az datamigration sql-db show --resource-group "testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+```
+##### Parameters
+|Option|Type|Description|Path (SDK)|Swagger name|
+|------|----|-----------|----------|------------|
+|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
+|**--sqldb-instance-name**|string|Name of the target SQL Database Server.|sqldb_instance_name|sqlDbInstanceName|
+|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
+|**--migration-operation-id**|uuid|Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved.|migration_operation_id|migrationOperationId|
+|**--expand**|string|Complete migration details be included in the response.|expand|$expand|
+
+#### Command `az datamigration sql-db create`
+
+##### Example
+```
+az datamigration sql-db create --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/\
+testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope "/subscriptions/00000000-1111-2222-333\
+3-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance" --source-database-name "aaa" \
+--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true \
+password="placeholder" trust-server-certificate=true user-name="bbb" --table-list "[Schema1].[TableName1]" \
+"[Schema2].[TableName2]" --target-sql-connection authentication="SqlAuthentication" data-source="sqldbinstance" \
+encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" --resource-group "testrg" \
+--sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+az datamigration sql-db create --migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/\
+testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope "/subscriptions/00000000-1111-2222-333\
+3-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance" --source-database-name "aaa" \
+--source-sql-connection authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true \
+password="placeholder" trust-server-certificate=true user-name="bbb" --target-sql-connection \
+authentication="SqlAuthentication" data-source="sqldbinstance" encrypt-connection=true password="placeholder" \
+trust-server-certificate=true user-name="bbb" --resource-group "testrg" --sqldb-instance-name "sqldbinstance" \
+--target-db-name "db1"
+```
+##### Parameters
+|Option|Type|Description|Path (SDK)|Swagger name|
+|------|----|-----------|----------|------------|
+|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
+|**--sqldb-instance-name**|string|Name of the target SQL Database Server.|sqldb_instance_name|sqlDbInstanceName|
+|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
+|**--scope**|string|Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB)|scope|scope|
+|**--source-sql-connection**|object|Source SQL Server connection details.|source_sql_connection|sourceSqlConnection|
+|**--source-database-name**|string|Name of the source database.|source_database_name|sourceDatabaseName|
+|**--migration-service**|string|Resource Id of the Migration Service.|migration_service|migrationService|
+|**--target-db-collation**|string|Database collation to be used for the target database.|target_db_collation|targetDatabaseCollation|
+|**--target-sql-connection**|object|Target SQL DB connection details.|target_sql_connection|targetSqlConnection|
+|**--table-list**|array|List of tables to copy.|table_list|tableList|
+
+#### Command `az datamigration sql-db delete`
+
+##### Example
+```
+az datamigration sql-db delete --resource-group "testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+```
+##### Parameters
+|Option|Type|Description|Path (SDK)|Swagger name|
+|------|----|-----------|----------|------------|
+|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
+|**--sqldb-instance-name**|string|Name of the target SQL Database Server.|sqldb_instance_name|sqlDbInstanceName|
+|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
+|**--force**|boolean|Optional force delete boolean. If this is provided as true, migration will be deleted even if active.|force|force|
+
+#### Command `az datamigration sql-db cancel`
+
+##### Example
+```
+az datamigration sql-db cancel --migration-operation-id "9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07" --resource-group \
+"testrg" --sqldb-instance-name "sqldbinstance" --target-db-name "db1"
+```
+##### Parameters
+|Option|Type|Description|Path (SDK)|Swagger name|
+|------|----|-----------|----------|------------|
+|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
+|**--sqldb-instance-name**|string|Name of the target SQL Database Server.|sqldb_instance_name|sqlDbInstanceName|
+|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
+|**--migration-operation-id**|uuid|ID tracking migration operation.|migration_operation_id|migrationOperationId|
+
### group `az datamigration sql-managed-instance`
#### Command `az datamigration sql-managed-instance show`
##### Example
```
+az datamigration sql-managed-instance show --expand "MigrationStatusDetails" --managed-instance-name \
+"managedInstance1" --resource-group "testrg" --target-db-name "db1"
az datamigration sql-managed-instance show --managed-instance-name "managedInstance1" --resource-group "testrg" \
--target-db-name "db1"
```
@@ -62,7 +155,7 @@ az datamigration sql-managed-instance show --managed-instance-name "managedInsta
|**--managed-instance-name**|string|Name of the target SQL Managed Instance.|managed_instance_name|managedInstanceName|
|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
|**--migration-operation-id**|uuid|Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved.|migration_operation_id|migrationOperationId|
-|**--expand**|string|The child resources to include in the response.|expand|$expand|
+|**--expand**|string|Complete migration details be included in the response.|expand|$expand|
#### Command `az datamigration sql-managed-instance create`
@@ -81,11 +174,10 @@ az datamigration sql-managed-instance create --managed-instance-name "managedIns
"{\\"fileShare\\":{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\bbb\\\\\\\\ccc\\",\\"password\\":\\"placeholder\\",\\"username\\"\
:\\"name\\"}}" --target-location account-key="abcd" storage-account-resource-id="account.database.windows.net" \
--migration-service "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Data\
-Migration/sqlMigrationServices/testagent" --offline-configuration last-backup-name="last_backup_file_name" \
-offline=true --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql\
-/managedInstances/instance" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication"\
- data-source="aaa" encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" \
---resource-group "testrg" --target-db-name "db1"
+Migration/sqlMigrationServices/testagent" --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/t\
+estrg/providers/Microsoft.Sql/managedInstances/instance" --source-database-name "aaa" --source-sql-connection \
+authentication="WindowsAuthentication" data-source="aaa" encrypt-connection=true password="placeholder" \
+trust-server-certificate=true user-name="bbb" --resource-group "testrg" --target-db-name "db1"
```
##### Parameters
|Option|Type|Description|Path (SDK)|Swagger name|
@@ -93,13 +185,11 @@ offline=true --scope "/subscriptions/00000000-1111-2222-3333-444444444444/resour
|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
|**--managed-instance-name**|string|Name of the target SQL Managed Instance.|managed_instance_name|managedInstanceName|
|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
-|**--scope**|string|Resource Id of the target resource (SQL VM or SQL Managed Instance)|scope|scope|
+|**--scope**|string|Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB)|scope|scope|
|**--source-sql-connection**|object|Source SQL Server connection details.|source_sql_connection|sourceSqlConnection|
|**--source-database-name**|string|Name of the source database.|source_database_name|sourceDatabaseName|
|**--migration-service**|string|Resource Id of the Migration Service.|migration_service|migrationService|
-|**--migration-operation-id**|string|ID tracking current migration operation.|migration_operation_id|migrationOperationId|
|**--target-db-collation**|string|Database collation to be used for the target database.|target_db_collation|targetDatabaseCollation|
-|**--provisioning-error**|string|Error message for migration provisioning failure, if any.|provisioning_error|provisioningError|
|**--offline-configuration**|object|Offline configuration.|offline_configuration|offlineConfiguration|
|**--source-location**|object|Source location of backups.|source_location|sourceLocation|
|**--target-location**|object|Target location for copying backups.|target_location|targetLocation|
@@ -279,6 +369,8 @@ az datamigration sql-service regenerate-auth-key --key-name "authKey1" --resourc
##### Example
```
+az datamigration sql-vm show --expand "MigrationStatusDetails" --resource-group "testrg" --sql-vm-name "testvm" \
+--target-db-name "db1"
az datamigration sql-vm show --resource-group "testrg" --sql-vm-name "testvm" --target-db-name "db1"
```
##### Parameters
@@ -288,7 +380,7 @@ az datamigration sql-vm show --resource-group "testrg" --sql-vm-name "testvm" --
|**--sql-vm-name**|string|Name of the target SQL Virtual Machine.|sql_vm_name|sqlVirtualMachineName|
|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
|**--migration-operation-id**|uuid|Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved.|migration_operation_id|migrationOperationId|
-|**--expand**|string|The child resources to include in the response.|expand|$expand|
+|**--expand**|string|Complete migration details be included in the response.|expand|$expand|
#### Command `az datamigration sql-vm create`
@@ -306,12 +398,11 @@ encrypt-connection=true password="placeholder" trust-server-certificate=true use
az datamigration sql-vm create --source-location "{\\"fileShare\\":{\\"path\\":\\"C:\\\\\\\\aaa\\\\\\\\bbb\\\\\\\\ccc\\\
",\\"password\\":\\"placeholder\\",\\"username\\":\\"name\\"}}" --target-location account-key="abcd" \
storage-account-resource-id="account.database.windows.net" --migration-service "/subscriptions/00000000-1111-2222-3333-\
-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" \
---offline-configuration last-backup-name="last_backup_file_name" offline=true --scope "/subscriptions/00000000-1111-222\
-2-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm" \
---source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" data-source="aaa" \
-encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" --resource-group "testrg" \
---sql-vm-name "testvm" --target-db-name "db1"
+444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent" --scope \
+"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVir\
+tualMachines/testvm" --source-database-name "aaa" --source-sql-connection authentication="WindowsAuthentication" \
+data-source="aaa" encrypt-connection=true password="placeholder" trust-server-certificate=true user-name="bbb" \
+--resource-group "testrg" --sql-vm-name "testvm" --target-db-name "db1"
```
##### Parameters
|Option|Type|Description|Path (SDK)|Swagger name|
@@ -319,13 +410,11 @@ encrypt-connection=true password="placeholder" trust-server-certificate=true use
|**--resource-group-name**|string|Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.|resource_group_name|resourceGroupName|
|**--sql-vm-name**|string|Name of the target SQL Virtual Machine.|sql_vm_name|sqlVirtualMachineName|
|**--target-db-name**|string|The name of the target database.|target_db_name|targetDbName|
-|**--scope**|string|Resource Id of the target resource (SQL VM or SQL Managed Instance)|scope|scope|
+|**--scope**|string|Resource Id of the target resource (SQL VM, SQL Managed Instance or SQL DB)|scope|scope|
|**--source-sql-connection**|object|Source SQL Server connection details.|source_sql_connection|sourceSqlConnection|
|**--source-database-name**|string|Name of the source database.|source_database_name|sourceDatabaseName|
|**--migration-service**|string|Resource Id of the Migration Service.|migration_service|migrationService|
-|**--migration-operation-id**|string|ID tracking current migration operation.|migration_operation_id|migrationOperationId|
|**--target-db-collation**|string|Database collation to be used for the target database.|target_db_collation|targetDatabaseCollation|
-|**--provisioning-error**|string|Error message for migration provisioning failure, if any.|provisioning_error|provisioningError|
|**--offline-configuration**|object|Offline configuration.|offline_configuration|offlineConfiguration|
|**--source-location**|object|Source location of backups.|source_location|sourceLocation|
|**--target-location**|object|Target location for copying backups.|target_location|targetLocation|
diff --git a/src/datamigration/setup.py b/src/datamigration/setup.py
index 175787154d2..5a090250d28 100644
--- a/src/datamigration/setup.py
+++ b/src/datamigration/setup.py
@@ -10,7 +10,7 @@
from setuptools import setup, find_packages
# HISTORY.rst entry.
-VERSION = '0.2.0'
+VERSION = '0.3.0'
try:
from azext_datamigration.manual.version import VERSION
except ImportError:
@@ -48,7 +48,7 @@
description='Microsoft Azure Command-Line Tools DataMigrationManagementClient Extension',
author='Microsoft Corporation',
author_email='azpycli@microsoft.com',
- url='https://github.com/Azure/azure-cli-extensions/tree/main/src/datamigration',
+ url='https://github.com/Azure/azure-cli-extensions/tree/master/src/datamigration',
long_description=README + '\n\n' + HISTORY,
license='MIT',
classifiers=CLASSIFIERS,