DedicatedHostsOperations.StartCreateOrUpdateAsync(String, String, String, DedicatedHost, CancellationToken) Method

Definition

Create or update a dedicated host .

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.Compute.DedicatedHostsCreateOrUpdateOperation> StartCreateOrUpdateAsync (string resourceGroupName, string hostGroupName, string hostName, Azure.ResourceManager.Compute.Models.DedicatedHost parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member StartCreateOrUpdateAsync : string * string * string * Azure.ResourceManager.Compute.Models.DedicatedHost * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.DedicatedHostsCreateOrUpdateOperation>
override this.StartCreateOrUpdateAsync : string * string * string * Azure.ResourceManager.Compute.Models.DedicatedHost * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.DedicatedHostsCreateOrUpdateOperation>
Public Overridable Function StartCreateOrUpdateAsync (resourceGroupName As String, hostGroupName As String, hostName As String, parameters As DedicatedHost, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DedicatedHostsCreateOrUpdateOperation)

Parameters

resourceGroupName
System.String

The name of the resource group.

hostGroupName
System.String

The name of the dedicated host group.

hostName
System.String

The name of the dedicated host .

parameters
DedicatedHost

Parameters supplied to the Create Dedicated Host.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<DedicatedHostsCreateOrUpdateOperation>

Exceptions

System.ArgumentNullException

resourceGroupName, hostGroupName, hostName, or parameters is null.

Applies to