Dela via


ResourceGroupResource.ExportTemplateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult>> ExportTemplateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ExportTemplate exportTemplate, System.Threading.CancellationToken cancellationToken = default);
abstract member ExportTemplateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ExportTemplate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult>>
override this.ExportTemplateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ExportTemplate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ResourceGroupExportResult>>
Public Overridable Function ExportTemplateAsync (waitUntil As WaitUntil, exportTemplate As ExportTemplate, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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