Share via


ResourcesExtensions.BicepDecompile Method

Definition

Decompiles an ARM json template into a Bicep template

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/decompileBicep
  • Operation Id: Decompile_Bicep
  • Default Api Version: 2023-11-01
public static Azure.Response<Azure.ResourceManager.Resources.Models.DecompileOperationSuccessResult> BicepDecompile (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Resources.Models.DecompileOperationContent content, System.Threading.CancellationToken cancellationToken = default);
static member BicepDecompile : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Resources.Models.DecompileOperationContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Models.DecompileOperationSuccessResult>
<Extension()>
Public Function BicepDecompile (subscriptionResource As SubscriptionResource, content As DecompileOperationContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DecompileOperationSuccessResult)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
DecompileOperationContent

Decompile operation request supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or content is null.

Applies to