ResourceGroupResource.ExportTemplate Method

Definition

Captures the specified resource group as a template.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate
  • Operation Id: ResourceGroups_ExportTemplate
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult> ExportTemplate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ExportTemplate exportTemplate, System.Threading.CancellationToken cancellationToken = default);
abstract member ExportTemplate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ExportTemplate * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult>
override this.ExportTemplate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ExportTemplate * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult>
Public Overridable Function ExportTemplate (waitUntil As WaitUntil, exportTemplate As ExportTemplate, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ResourceGroupExportResult)

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.

exportTemplate
ExportTemplate

Parameters for exporting the template.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

exportTemplate is null.

Applies to