DataMigrationExtensions.GetSqlMigrationServices Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
|
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
Azure SDK for .NET