TemplateSpecCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a Template Spec.

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

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.

templateSpecName
String

Name of the Template Spec.

data
TemplateSpecData

Template Spec supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

templateSpecName or data is null.

Applies to