TerraformExtensions.ExportTerraform Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exports the Terraform configuration of the specified resource(s).
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureTerraform/exportTerraform
- Operation Id: Terraform_ExportTerraform
- Default Api Version: 2023-07-01-preview
public static Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Terraform.Models.TerraformOperationStatus> ExportTerraform (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.ResourceManager.Terraform.Models.CommonExportProperties body, System.Threading.CancellationToken cancellationToken = default);
static member ExportTerraform : Azure.ResourceManager.Resources.SubscriptionResource * Azure.WaitUntil * Azure.ResourceManager.Terraform.Models.CommonExportProperties * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Terraform.Models.TerraformOperationStatus>
<Extension()>
Public Function ExportTerraform (subscriptionResource As SubscriptionResource, waitUntil As WaitUntil, body As CommonExportProperties, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TerraformOperationStatus)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- 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.
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource
or body
is null.
Applies to
Azure SDK for .NET