Get-AzDataMigrationService

Retrieves the properties associated with an instance of the Azure Database Migration Service (classic).

Syntax

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

Description

The Get-AzDataMigrationService cmdlet retrieves the properties associated with an instance of the Azure Database Migration Service (classic) based on Service name and Azure Resource Group name as input parameters.

Examples

Example 1

Get-AzDataMigrationService -ResourceGroupName testResourceGroup -Name testService

The above example retrieves the properties of the Azure Database Migration Service (classic) instance called testService.

Example 2

Get-AzDataMigrationService -ResourceGroupName testResourceGroup

The above example retrieves Azure Database Migration Services (classic) in the resource group called testResourceGroup.

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

-Name

Name of Azure Database Migration Service (classic).

Type:String
Aliases:ServiceName
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group.

Type:String
Position:0
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

Inputs

String

Outputs

PSDataMigrationService