Compartilhar via


DataMigrationExtensions.GetSqlMigrationService Método

Definição

Recuperar o Serviço de Migração de Banco de Dados

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}
  • Operação IdSqlMigrationServices_Get
public static Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource> GetSqlMigrationService (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string sqlMigrationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlMigrationService : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>
<Extension()>
Public Function GetSqlMigrationService (resourceGroupResource As ResourceGroupResource, sqlMigrationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SqlMigrationServiceResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

sqlMigrationServiceName
String

Nome do Serviço de Migração de SQL.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

sqlMigrationServiceName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

sqlMigrationServiceName é nulo.

Aplica-se a