SapDiscoverySiteCollection.CreateOrUpdateAsync Method

Definition

Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and assessment with Azure Migrate.

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

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.

sapDiscoverySiteName
String

The name of the discovery site resource for SAP Migration.

data
SapDiscoverySiteData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

sapDiscoverySiteName or data is null.

Applies to