TemplateSpecCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string templateSpecName, Azure.ResourceManager.Resources.TemplateSpecData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, templateSpecName As String, data As TemplateSpecData, Optional cancellationToken As CancellationToken = Nothing) As 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