ResourcesExtensions.BicepDecompile 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 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.