Freigeben über


HybridComputeLicenseProfileResource.CreateOrUpdateAsync Method

Definition

The operation to create or update a license profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}
  • Operation Id: LicenseProfiles_CreateOrUpdate
  • Default Api Version: 2024-07-31-preview
  • Resource: HybridComputeLicenseProfileResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridCompute.HybridComputeLicenseProfileResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, data As HybridComputeLicenseProfileData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HybridComputeLicenseProfileResource))

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.

data
HybridComputeLicenseProfileData

Parameters supplied to the Create or Update license profile operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to