Get-AzureRmDataMigrationService
Hämtar de egenskaper som är associerade med en instans av Azure Database Migration Service.
Varning
AzureRM PowerShell-modulen är officiellt inaktuell från och med den 29 februari 2024. Användare rekommenderas att migrera från AzureRM till Az PowerShell-modulen för att säkerställa fortsatt support och uppdateringar.
Även om AzureRM-modulen fortfarande kan fungera, underhålls den inte längre eller stöds, vilket gör att användaren kan välja och riskera fortsatt användning. Se våra migreringsresurser för vägledning om övergången till Az-modulen.
Syntax
Get-AzureRmDataMigrationService
[[-ResourceGroupName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmDataMigrationService
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmDataMigrationService
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzureRmDataMigrationService hämtar de egenskaper som är associerade med en instans av Azure Database Migration Service baserat på tjänstnamn och Azure Resource Group-namn som indataparametrar.
Exempel
Exempel 1
PS C:\> Get-AzureRmDataMigrationService -ResourceGroupName testResourceGroup -Name testService
Exemplet ovan hämtar egenskaperna för Azure Database Migration Service-instansen med namnet testService.
Exempel 2
PS C:\> Get-AzureRmDataMigrationService -ResourceGroupName testResourceGroup
Exemplet ovan hämtar Azure Database Migration Services i resursgruppen testResourceGroup.
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Namnet på Database Migration Service.
Type: | String |
Aliases: | ServiceName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Namnet på resursgruppen.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
DataMigrationService-resurs-ID.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |