Partager via


DataMigrationExtensions.GetSqlMigrationServiceAsync Méthode

Définition

Récupérer le Database Migration Service

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}
  • IdSqlMigrationServices_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>> GetSqlMigrationServiceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string sqlMigrationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlMigrationServiceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>>
<Extension()>
Public Function GetSqlMigrationServiceAsync (resourceGroupResource As ResourceGroupResource, sqlMigrationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlMigrationServiceResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

sqlMigrationServiceName
String

Nom du service de migration SQL.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

sqlMigrationServiceName est une chaîne vide et devait être non vide.

sqlMigrationServiceName a la valeur null.

S’applique à