你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzDataMigrationProject
检索 Azure 数据库迁移服务(经典)项目的属性。
语法
Get-AzDataMigrationProject
-ResourceGroupName <String>
-ServiceName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDataMigrationProject
[-InputObject] <PSDataMigrationService>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDataMigrationProject
[-ResourceId] <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzDataMigrationProject cmdlet 检索 Azure 数据库迁移项目的属性。
示例
示例 1
Get-AzDataMigrationProject -ServiceName testService -Name testProject -ResourceGroupName testResourceGroup
上面的示例在名为 testResourceGroup 的资源组中检索名为 TestProject 的 Azure 数据库迁移项目,并在名为 testService 的服务下检索
示例 2
Get-AzDataMigrationProject -InputObject $myService
上面的示例基于传入的 PSProject 对象输入参数检索 Azure 数据库迁移项目。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
PSDataMigrationService 对象。
类型: | PSDataMigrationService |
别名: | DataMigrationService |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
项目的名称。
类型: | String |
别名: | ProjectName |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
DataMigrationService 资源 ID。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ServiceName
数据库迁移服务名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |