MigrationAssessmentHyperVCollectorCollection.CreateOrUpdate Method

Definition

Create a HypervCollector

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hypervCollectorName}
  • Operation Id: HypervCollectorsOperations_Create
  • Default Api Version: 2023-03-15
  • Resource: MigrationAssessmentHyperVCollectorResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string hyperVCollectorName, Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, hyperVCollectorName As String, data As MigrationAssessmentHyperVCollectorData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MigrationAssessmentHyperVCollectorResource)

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.

hyperVCollectorName
String

Hyper-V collector ARM name.

data
MigrationAssessmentHyperVCollectorData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

hyperVCollectorName or data is null.

Applies to