Azure / arm-ttk

Azure Resource Manager Template Toolkit
https://aka.ms/arm-ttk
MIT License
431 stars 186 forks source link

Implemented functionality to convert the test result format into JSON #773

Closed luis-gasparschroeder closed 3 months ago

luis-gasparschroeder commented 4 months ago

This PR enables the functionality of outputting the test results generated by Test-AzTemplate and Test-AzMarketplacePackage in JSON format.

The MCISV team has requested this feature.

You can try it out with the following command(s): Test-AzTemplate -TemplatePath <path> | Format-JSON or Test-AzMarketplacePackage -TemplatePath <path> | Format-JSON

luis-gasparschroeder commented 4 months ago

@microsoft-github-policy-service agree

luis-gasparschroeder commented 4 months ago

This image shows to output format:

Format Option (json-format-piping)

This image shows a second output format option (implemented in this branch):

Format Option (json-format-piping-extended)

Please let me know if you prefer the second option.

@psah434 @raosuhas