你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzureRmDataMigrationConnectionInfo

创建一个新的 连接ion Info 对象,该对象指定用于连接的服务器类型和名称。

警告

截至 2024 年 2 月 29 日,AzureRM PowerShell 模块已正式弃用。 为了确保持续获得支持和更新,建议用户从 AzureRM 迁移到 Az PowerShell 模块。

尽管 AzureRM 模块仍可能正常运行,但它不再维护或受支持,但会根据用户的自由裁量权和风险继续使用任何继续使用模块。 有关过渡到 Az 模块的指导,请参阅我们的迁移资源

语法

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

说明

New-AzureRmDataMigration连接ionInfo cmdlet 创建新的连接ion Info 对象,该对象指定用于连接的服务器类型。

示例

示例 1

PS C:\> New-AzureRmDmsConnInfo -ServerType SQL -DataSource mySourceServer -AuthType SqlAuthentication -TrustServerCertificate:$true

前面的示例创建一个新的 连接ion Info 对象,该对象提供 SQL 作为 ServerType 参数。

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerType

描述要连接到的服务器类型的枚举。 当前支持的值为 SQL Server、Azure SQL 托管实例和Azure SQL 数据库。

Type:ServerTypeEnum
Accepted values:SQL
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

输入

None

输出

Microsoft.Azure.Management.DataMigration.Models.ConnectionInfo