Share via


BlueprintArtifactCollection.CreateOrUpdateAsync Method

Definition

Create or update blueprint artifact.

  • Request Path: /{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}
  • Operation Id: Artifacts_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.BlueprintArtifactResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string artifactName, Azure.ResourceManager.Blueprint.ArtifactData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Blueprint.ArtifactData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.BlueprintArtifactResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Blueprint.ArtifactData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Blueprint.BlueprintArtifactResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, artifactName As String, data As ArtifactData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BlueprintArtifactResource))

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.

artifactName
String

Name of the blueprint artifact.

data
ArtifactData

Blueprint artifact to create or update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

artifactName or data is null.

Applies to