external help file | Module Name | online version | schema |
---|---|---|---|
Bicep-help.xml |
Bicep |
2.0.0 |
Decompile ARM templates to .bicep files
ConvertTo-Bicep [[-Path] <String>] [[-OutputDirectory] <String>] [-AsString] [-Force]
[<CommonParameters>]
ConvertTo-Bicep is equivalent to 'bicep decompile' but with some additional features.
-Decompile all ARM templates in a directory -Specify output directory
ConvertTo-Bicep -Path vnet.json
ConvertTo-Bicep -Path 'c:\armtemplates\'
ConvertTo-Bicep -Path vnet.json -OutputDirectory 'c:\bicep\modules\'
ConvertTo-Bicep -Path vnet.json -AsString
-AsString prints all output as a string instead of corresponding files.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Force overwriting of output files. If the output.bicep file already exists and -Force is not set we will not overwrite the resulting file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path to the directory where the compiled files should be outputted
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specfies the path to the directory or file that should be decompiled
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: $pwd.path
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Go to module repository https://github.com/PSBicep/PSBicep for detailed info, reporting issues and to submit contributions.