Edit

Share via


New-AzDataMigrationConnectionInfo

Creates a new Connection Info object specifying the server type and name for connection.

Syntax

Default (Default)

New-AzDataMigrationConnectionInfo
    -ServerType <ServerTypeEnum>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The New-AzDataMigrationConnectionInfo cmdlet creates new a Connection Info object specifying the server type for connection.

Examples

Example 1

New-AzDataMigrationConnectionInfo -ServerType SQL

The preceding example creates a new Connection Info object providing SQL as ServerType parameter.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServerType

Enum that describes server type to connect to. Currently supported values are SQL for SQL Server, Azure SQL Managed Instance, MongoDb, CosmosDb and Azure SQL Database.

Parameter properties

Type:ServerTypeEnum
Default value:None
Accepted values:SQL, MongoDb, SQLMI
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

ConnectionInfo