EdgeMachineCollection.CreateOrUpdate Method

Definition

Create or update an edge machine.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}.
  • Operation Id. : EdgeMachines_CreateOrUpdate.
  • Default Api Version. : 2026-04-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeMachineResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string edgeMachineName, Azure.ResourceManager.Hci.EdgeMachineData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.EdgeMachineData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeMachineResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.EdgeMachineData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeMachineResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, edgeMachineName As String, data As EdgeMachineData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of EdgeMachineResource)

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.

edgeMachineName
String

Name of Device.

data
EdgeMachineData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

edgeMachineName or data is null.

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

Applies to