SapInstanceCollection.CreateOrUpdateAsync Method

Definition

Creates the SAP Instance resource. <br><br>This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapDiscoverySites/{sapDiscoverySiteName}/sapInstances/{sapInstanceName}
  • Operation Id: SapInstances_Create
  • Default Api Version: 2023-10-01-preview
  • Resource: SapInstanceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string sapInstanceName, Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapInstanceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, sapInstanceName As String, data As SapInstanceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SapInstanceResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

sapInstanceName
String

The name of SAP Instance resource for SAP Migration.

data
SapInstanceData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sapInstanceName is an empty string, and was expected to be non-empty.

sapInstanceName or data is null.

Applies to