Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

luis-gasparschroeder
Copy link

@luis-gasparschroeder luis-gasparschroeder commented Mar 7, 2024

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
Copy link
Author

luis-gasparschroeder commented Mar 7, 2024

@microsoft-github-policy-service agree

@luis-gasparschroeder
Copy link
Author

luis-gasparschroeder commented Mar 7, 2024

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

arm-ttk/Format-Json.ps1 Outdated Show resolved Hide resolved
arm-ttk/Format-Json.ps1 Outdated Show resolved Hide resolved
arm-ttk/README.md Outdated Show resolved Hide resolved
@psah434 psah434 merged commit c880736 into Azure:master Mar 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants