BuildCollection.CreateOrUpdate Method

Definition

Create a BuildResource

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}.
  • Operation Id. : Builds_CreateOrUpdate.
  • Default Api Version. : 2025-10-02-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.BuildResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string buildName, Azure.ResourceManager.AppContainers.BuildData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.BuildData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.BuildResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.BuildData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.BuildResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, buildName As String, data As BuildData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of BuildResource)

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.

buildName
String

The name of a build.

data
BuildData

Resource create or update parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

buildName or data is null.

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

Applies to