Share via


DevBoxDefinitionCollection.CreateOrUpdate Method

Definition

Creates or updates a Dev Box definition.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}
  • Operation Id: DevBoxDefinitions_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string devBoxDefinitionName, Azure.ResourceManager.DevCenter.DevBoxDefinitionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DevCenter.DevBoxDefinitionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DevCenter.DevBoxDefinitionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevCenter.DevBoxDefinitionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, devBoxDefinitionName As String, data As DevBoxDefinitionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DevBoxDefinitionResource)

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.

devBoxDefinitionName
String

The name of the Dev Box definition.

data
DevBoxDefinitionData

Represents a Dev Box definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

devBoxDefinitionName or data is null.

Applies to