Add format and compressionmode support for New-FinOpsCostExport#1884
Merged
Conversation
flanakin
requested changes
Jan 6, 2026
flanakin
left a comment
Collaborator
There was a problem hiding this comment.
This looks good. We just need the changelog to be updated. Thank you for the contribution!
Collaborator
|
@all-contributors Please add gorkomikus for code |
Contributor
|
I've put up a pull request to add @gorkomikus! 🎉 |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for Parquet format and compression (GZip, Snappy) to the New-FinOpsCostExport PowerShell command. The changes enable users to export Cost Management data in formats other than the default CSV and apply compression to reduce file sizes.
Key changes:
- Added
-Formatparameter with support for "Csv" (default) and "Parquet" - Added
-CompressionModeparameter with support for "None" (default), "GZip", and "Snappy" - Added comprehensive unit tests to verify default values and explicit parameter usage
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/powershell/Public/New-FinOpsCostExport.ps1 | Added Format and CompressionMode parameters with documentation, validation, and implementation |
| src/powershell/Tests/Unit/New-FinOpsCostExport.Tests.ps1 | Added test suite covering default behavior and explicit parameter values for new Format and CompressionMode parameters |
flanakin
approved these changes
Jan 9, 2026
flanakin
added a commit
that referenced
this pull request
Jan 31, 2026
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠️ Description
Support Format Type Parquet and CompressionMode gzip and snappy by adding those as parameters.
Default value for format is Csv and for -CompressionMode none
Fixes #1074
📋 Checklist
🔬 How did you test this change?
🙋♀️ Do any of the following that apply?
📑 Did you update
docs/changelog.md?No
📖 Did you update documentation?