Editar

Compartir a través de


Get-AzDataMigrationAssessment

Start assessment on SQL Server instance(s)

Syntax

Get-AzDataMigrationAssessment
   -ConnectionString <String[]>
   [-OutputFolder <String>]
   [-Overwrite]
   [-PassThru]
   [<CommonParameters>]
Get-AzDataMigrationAssessment
   -ConfigFilePath <String>
   [-PassThru]
   [<CommonParameters>]

Description

Start assessment on SQL Server instance(s)

Examples

Example 1: Run SQL Assessment on given SQL Server using connection string

Get-AzDataMigrationAssessment -ConnectionString "Data Source=LabServer.database.net;Initial Catalog=master;Integrated Security=False;User Id=User;Password=password" -OutputFolder "C:\AssessmentOutput" -Overwrite

Starting SQL assessment...
Progress: 100%; Issues Found: 100; Objects Assessed: 500/500; Status: Completed; Total time: 00:01:50.000.

Finishing SQL assessment...
Assessment report saved to C:\Users\user\AppData\Local\Microsoft\SqlAssessment\SqlAssessmentReport.json.
Event and Error Logs Folder Path: C:\Users\user\AppData\Local\Microsoft\SqlAssessment\Logs

This command runs SQL Assessment on given SQL Server using the connection string.

Example 2: Run SQL Assessment on given SQL Server using assessment config file

Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json"

Starting SQL assessment...
Progress: 100%; Issues Found: 100; Objects Assessed: 550/550; Status: Completed; Total time: 00:01:50.000.

Finishing SQL assessment...
Assessment report saved to C:\Users\user\AppData\Local\Microsoft\SqlAssessment\SqlAssessmentReport.json.
Event and Error Logs Folder Path: C:\Users\user\AppData\Local\Microsoft\SqlAssessment\Logs

This command runs SQL Assessment on given SQL Server using assessment config file.

Parameters

-ConfigFilePath

Path of the ConfigFile

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ConnectionString

Sql Server Connection Strings

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-OutputFolder

Output folder to store assessment report

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Overwrite

Enable this parameter to overwrite the existing assessment report

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Boolean