ResourcesExtensions.BicepDecompileAsync 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.
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Models.DecompileOperationSuccessResult>> BicepDecompileAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Resources.Models.DecompileOperationContent content, System.Threading.CancellationToken cancellationToken = default);
static member BicepDecompileAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Resources.Models.DecompileOperationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Models.DecompileOperationSuccessResult>>
<Extension()>
Public Function BicepDecompileAsync (subscriptionResource As SubscriptionResource, content As DecompileOperationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.