ProjectCollection.CreateOrUpdateAsync Method

Definition

The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}
  • Operation Id: Projects_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string projectName, Azure.ResourceManager.DataMigration.ProjectData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DataMigration.ProjectData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DataMigration.ProjectData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataMigration.ProjectResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, projectName As String, data As ProjectData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ProjectResource))

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.

projectName
String

Name of the project.

data
ProjectData

Information about the project.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

projectName or data is null.

Applies to