Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DataMigration/DataMigration.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ directive:

- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}"].put
transform: $["description"] = "Create a new database migration to a given SQL Db."
transform: $["description"] = "Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse."

- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}"].delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Migrate TDE certificate(s) from source SQL Server to the target Azure SQL Server

### [New-AzDataMigrationToSqlDb](New-AzDataMigrationToSqlDb.md)
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

### [New-AzDataMigrationToSqlManagedInstance](New-AzDataMigrationToSqlManagedInstance.md)
Create a new database migration to a given SQL Managed Instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ schema: 2.0.0

## SYNOPSIS
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

## SYNTAX

Expand All @@ -27,6 +29,8 @@ New-AzDataMigrationToSqlDb -ResourceGroupName <String> -SqlDbInstanceName <Strin

## DESCRIPTION
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

## EXAMPLES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
<#
.Synopsis
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.
.Description
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.
.Example
$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force
$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2150,8 +2150,12 @@ end {
<#
.Synopsis
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.
.Description
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.
.Example
$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force
$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force
Expand Down
6 changes: 3 additions & 3 deletions src/DataMigration/DataMigration.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"swagger_commit": "94144aca9314644e6883adf6c8147cb1d32d9a2d",
"autorest_modelerfour": "4.15.414",
"autorest_core": "3.9.6",
"swagger_commit": "2d2d12d271c13bd1b56c1ed5e41c5f418ae46067",
"autorest_core": "3.9.7",
"node": "v14.15.5",
"autorest_modelerfour": "4.15.414",
"autorest_powershell": "3.0.505",
"autorest": "`-- (empty)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,11 @@ public partial class DataMigration
}
}

/// <summary>Create a new database migration to a given SQL Db.</summary>
/// <summary>
/// Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables
/// to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema)
/// command to migrate schema objects from source database to target databse.
/// </summary>
/// <param name="resourceGroupName">Name of the resource group that contains the resource. You can obtain this value from
/// the Azure Resource Manager API or the portal.</param>
/// <param name="sqlDbInstanceName"></param>
Expand Down Expand Up @@ -358,7 +362,11 @@ public partial class DataMigration
}
}

/// <summary>Create a new database migration to a given SQL Db.</summary>
/// <summary>
/// Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables
/// to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema)
/// command to migrate schema objects from source database to target databse.
/// </summary>
/// <param name="viaIdentity"></param>
/// <param name="body">Details of Sql Db migration resource.</param>
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets
using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions;
using System;

/// <summary>Create a new database migration to a given SQL Db.</summary>
/// <summary>
/// Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables
/// to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema)
/// command to migrate schema objects from source database to target databse.
/// </summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationToSqlDb_CreateExpanded", SupportsShouldProcess = true)]
[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlDb in their name for getting or stopping or deleting a migration created using New-AzDataMigrationToSqlDb")]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlDb))]
[global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create a new database migration to a given SQL Db.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated]
public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener
Expand Down
7 changes: 4 additions & 3 deletions src/DataMigration/DataMigration/Az.DataMigration.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 26/07/2023
# Generated on: 8/15/2023
#

@{
Expand Down Expand Up @@ -144,7 +144,8 @@ PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Azure','ResourceManager','ARM','Sql','Database','Data','Migration','Service'
Tags = 'Azure', 'ResourceManager', 'ARM', 'Sql', 'Database', 'Data', 'Migration',
'Service'

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
Expand All @@ -169,7 +170,7 @@ PrivateData = @{

} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down
1 change: 1 addition & 0 deletions src/DataMigration/DataMigration/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Updated the description of command `New-AzDataMigrationToSqlDb` to inform the customers that they can use `New-AzDataMigrationSqlServerSchema` to do schema migration.

## Version 0.14.1
* Added client type to New-AzDataMigrationTdeCertificateMigration
Expand Down
2 changes: 2 additions & 0 deletions src/DataMigration/DataMigration/help/Az.DataMigration.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ Migrate TDE certificate(s) from source SQL Server to the target Azure SQL Server

### [New-AzDataMigrationToSqlDb](New-AzDataMigrationToSqlDb.md)
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

### [New-AzDataMigrationToSqlManagedInstance](New-AzDataMigrationToSqlManagedInstance.md)
Create a new database migration to a given SQL Managed Instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ schema: 2.0.0

## SYNOPSIS
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

## SYNTAX

Expand All @@ -27,6 +29,8 @@ New-AzDataMigrationToSqlDb -ResourceGroupName <String> -SqlDbInstanceName <Strin

## DESCRIPTION
Create a new database migration to a given SQL Db.
This command can migrate data from the selected source database tables to the target database tables.
If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.

## EXAMPLES

Expand Down