共用方式為


Get-AzDataMigrationService

擷取與 Azure 資料庫移轉服務實例相關聯的屬性(傳統)。

語法

Get-AzDataMigrationService
   [[-ResourceGroupName] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDataMigrationService
   [-ResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDataMigrationService
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzDataMigrationService Cmdlet 會根據服務名稱和 Azure 資源組名作為輸入參數,擷取與 Azure 資料庫移轉服務實例相關聯的屬性。

範例

範例 1

Get-AzDataMigrationService -ResourceGroupName testResourceGroup -Name testService

上述範例會擷取名為 testService 的 Azure 資料庫移轉服務 (傳統) 實例的屬性。

範例 2

Get-AzDataMigrationService -ResourceGroupName testResourceGroup

上述範例會擷取名為 testResourceGroup 的資源群組中的 Azure 資料庫移轉服務(傳統)。

參數

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

Azure 資料庫移轉服務的名稱(傳統)。

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

-ResourceGroupName

資源群組的名稱。

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

-ResourceId

DataMigrationService 資源標識符。

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

輸入

輸出