你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServicesOperationsExtensions.CreateOrUpdateAsync Method

Definition

The services resource is the top-level resource that represents the Database Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.DataMigrationService> CreateOrUpdateAsync (this Microsoft.Azure.Management.DataMigration.IServicesOperations operations, string groupName, string serviceName, Microsoft.Azure.Management.DataMigration.Models.DataMigrationService parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataMigration.IServicesOperations * string * string * Microsoft.Azure.Management.DataMigration.Models.DataMigrationService * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.DataMigrationService>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IServicesOperations, groupName As String, serviceName As String, parameters As DataMigrationService, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataMigrationService)

Parameters

operations
IServicesOperations

The operations group for this extension method.

groupName
String

Name of the resource group

serviceName
String

Name of the service

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to