TemplateSpecVersionCollection.CreateOrUpdate Method

Definition

Creates or updates a Template Spec version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}
  • Operation Id: TemplateSpecVersions_CreateOrUpdate
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecVersionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string templateSpecVersion, Azure.ResourceManager.Resources.TemplateSpecVersionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecVersionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecVersionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, templateSpecVersion As String, data As TemplateSpecVersionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TemplateSpecVersionResource)

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.

templateSpecVersion
String

The version of the Template Spec.

data
TemplateSpecVersionData

Template Spec Version supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

templateSpecVersion or data is null.

Applies to