Share via


DataMigrationExtensions.GetSqlMigrationServices Method

Definition

Overloads

GetSqlMigrationServices(ResourceGroupResource)

Gets a collection of SqlMigrationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSqlMigrationServices() instead.

GetSqlMigrationServices(SubscriptionResource, CancellationToken)

Retrieve all SQL migration services in the subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices
  • Operation Id: SqlMigrationServices_ListBySubscription

GetSqlMigrationServices(ResourceGroupResource)

Source:
DataMigrationExtensions.cs

Gets a collection of SqlMigrationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSqlMigrationServices() instead.

public static Azure.ResourceManager.DataMigration.SqlMigrationServiceCollection GetSqlMigrationServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSqlMigrationServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataMigration.SqlMigrationServiceCollection
<Extension()>
Public Function GetSqlMigrationServices (resourceGroupResource As ResourceGroupResource) As SqlMigrationServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of SqlMigrationServiceResources and their operations over a SqlMigrationServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetSqlMigrationServices(SubscriptionResource, CancellationToken)

Source:
DataMigrationExtensions.cs

Retrieve all SQL migration services in the subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices
  • Operation Id: SqlMigrationServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource> GetSqlMigrationServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlMigrationServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataMigration.SqlMigrationServiceResource>
<Extension()>
Public Function GetSqlMigrationServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlMigrationServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SqlMigrationServiceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to