Skip to content

Commit 7d1dd57

Browse files
authored
Added validation example
1 parent 54e82ee commit 7d1dd57

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

articles/dms/howto-sql-server-to-azure-sql-powershell.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,24 @@ $migTask = New-AzDataMigrationTask -TaskType MigrateSqlServerSqlDb `
195195
-SelectedDatabase $selectedDbs `
196196
```
197197

198+
The following example creates and starts the same migration task as above but also performs all three validations:
199+
200+
```powershell
201+
$migTask = New-AzDataMigrationTask -TaskType MigrateSqlServerSqlDb `
202+
-ResourceGroupName myResourceGroup `
203+
-ServiceName $service.Name `
204+
-ProjectName $project.Name `
205+
-TaskName myDMSTask `
206+
-SourceConnection $sourceConnInfo `
207+
-SourceCred $sourceCred `
208+
-TargetConnection $targetConnInfo `
209+
-TargetCred $targetCred `
210+
-SelectedDatabase $selectedDbs `
211+
-SchemaValidation `
212+
-DataIntegrityValidation `
213+
-QueryAnalysisValidation `
214+
```
215+
198216
## Monitor the migration
199217
You can monitor the migration task running by querying the state property of the task as shown in the following example:
200218

0 commit comments

Comments
 (0)