ResourceGroupsOperationsExtensions.ExportTemplateAsync(IResourceGroupsOperations, String, ExportTemplateRequest, CancellationToken) ResourceGroupsOperationsExtensions.ExportTemplateAsync(IResourceGroupsOperations, String, ExportTemplateRequest, CancellationToken) Method

Definition

Captures the specified resource group as a template.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupExportResult> ExportTemplateAsync (this Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations operations, string resourceGroupName, Microsoft.Azure.Management.ResourceManager.Models.ExportTemplateRequest parameters, System.Threading.CancellationToken cancellationToken = null);
static member ExportTemplateAsync : Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations * string * Microsoft.Azure.Management.ResourceManager.Models.ExportTemplateRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupExportResult>

Parameters

operations
IResourceGroupsOperations IResourceGroupsOperations

The operations group for this extension method.

resourceGroupName
String String

The name of the resource group to export as a template.

parameters
ExportTemplateRequest ExportTemplateRequest

Parameters for exporting the template.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Applies to