Share via


SapVirtualInstanceCollection.CreateOrUpdateAsync Method

Definition

Creates a Virtual Instance for SAP solutions (VIS) resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}
  • Operation Id: SAPVirtualInstances_Create
  • Default Api Version: 2023-04-01
  • Resource: SapVirtualInstanceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapVirtualInstanceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string sapVirtualInstanceName, Azure.ResourceManager.Workloads.SapVirtualInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapVirtualInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapVirtualInstanceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Workloads.SapVirtualInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Workloads.SapVirtualInstanceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, sapVirtualInstanceName As String, data As SapVirtualInstanceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SapVirtualInstanceResource))

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.

sapVirtualInstanceName
String

The name of the Virtual Instances for SAP solutions resource.

data
SapVirtualInstanceData

Virtual Instance for SAP solutions resource request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

sapVirtualInstanceName or data is null.

Applies to