Get-AzDataMigrationProject
Retrieves the properties of an Azure Database Migration Service (classic) project.
Syntax
ComponentNameParameterSet (Default)
Get-AzDataMigrationProject
-ResourceGroupName <String>
-ServiceName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ComponentObjectParameterSet
Get-AzDataMigrationProject
[-InputObject] <PSDataMigrationService>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameterSet
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.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
PSDataMigrationService Object.
Type: PSDataMigrationService
Default value: None
Supports wildcards: False
DontShow: False
Aliases: DataMigrationService
ComponentObjectParameterSet
Position: 0
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
The name of the project.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: ProjectName
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ComponentNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceId
DataMigrationService Resource Id.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceIdParameterSet
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ServiceName
Database Migration Service Name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ComponentNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs