SapDiscoverySiteCollection.CreateOrUpdate 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.
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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string sapDiscoverySiteName, Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, sapDiscoverySiteName As String, data As SapDiscoverySiteData, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET