共用方式為


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>]

Description

Get-AzDataMigrationProject Cmdlet 會擷取 Azure 資料庫移轉項目的屬性。

範例

範例 1

Get-AzDataMigrationProject -ServiceName testService -Name testProject -ResourceGroupName testResourceGroup

上述範例會在名為 testResourceGroup 的資源群組中擷取名為 TestProject 的 Azure 資料庫移轉專案,並在名為 testService 的服務下擷取名為 TestProject 的 Azure 資料庫移轉專案

範例 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 資源標識符。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ServiceName

資料庫移轉服務名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

輸出