Bewerken

Delen via


Get-AzDataMigrationProject

Retrieves the properties of an Azure Database Migration Service (classic) project.

Syntax

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

The Get-AzDataMigrationProject cmdlet retrieves the properties of an Azure Database Migration project.

Examples

Example 1

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

The above example retrieves Azure Database Migration project named TestProject in the resource group called testResourceGroup and under service called testService

Example 2

Get-AzDataMigrationProject -InputObject $myService

The above example retrieves the Azure Database Migration project based on PSProject object input parameter passed in.

Parameters

-DefaultProfile

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

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

-InputObject

PSDataMigrationService Object.

Type:PSDataMigrationService
Aliases:DataMigrationService
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name of the project.

Type:String
Aliases:ProjectName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

DataMigrationService Resource Id.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ServiceName

Database Migration Service Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSDataMigrationService

String

Outputs

PSProject