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

Improve support for exporting results as CSV #169

Closed
BernieWhite opened this issue Jun 7, 2019 · 0 comments · Fixed by #180
Closed

Improve support for exporting results as CSV #169

BernieWhite opened this issue Jun 7, 2019 · 0 comments · Fixed by #180
Labels
enhancement New feature or request
Milestone

Comments

@BernieWhite
Copy link
Member

BernieWhite commented Jun 7, 2019

Currently PSRule supports exporting results to CSV by piping to Export-Csv.

Since exporting to CSV is common output columns, formatting and ease of use should be improved.

Consider adding a supported output format. i.e. -OutputFormat Csv.

Currently using Export-Csv generates:

Outcome OutcomeReason Recommendation TargetName TargetType TargetObject Tag Info Time RuleId RuleName
Fail Processed Use an App Service Plan with at least two (2) instances. removed System.Management.Automation.PSCustomObject removed System.Collections.Hashtable PSRule.Rules.RuleHelpInfo 0 PSRule.Rules.Azure/Azure.AppService.Rule.ps1/Azure.AppService.PlanInstanceCount Azure.AppService.PlanInstanceCount
Pass Processed Use a Standard or high plans for production services. removed System.Management.Automation.PSCustomObject removed System.Collections.Hashtable PSRule.Rules.RuleHelpInfo 0 PSRule.Rules.Azure/Azure.AppService.Rule.ps1/Azure.AppService.MinPlan Azure.AppService.MinPlan
@BernieWhite BernieWhite added the enhancement New feature or request label Jun 7, 2019
@BernieWhite BernieWhite added this to the v0.7.0 milestone Jun 11, 2019
BernieWhite added a commit that referenced this issue Jun 15, 2019
…175 #169 (#180)

- Added support for Invoke-PSRule to return CSV formatted results. #169
- Reordered cmdlet parameters to improve usage of frequently used parameters. #175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant