Skip to content

Add format and compressionmode support for New-FinOpsCostExport#1884

Merged
flanakin merged 5 commits into
microsoft:devfrom
gorkomikus:dev
Jan 9, 2026
Merged

Add format and compressionmode support for New-FinOpsCostExport#1884
flanakin merged 5 commits into
microsoft:devfrom
gorkomikus:dev

Conversation

@gorkomikus

@gorkomikus gorkomikus commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

🛠️ 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?

  • 👍 Manually deployed + verified
  • [ Format and compression ] 💪 Unit test

🙋‍♀️ Do any of the following that apply?

  • 🤏 The change is less than 20 lines of code.

📑 Did you update docs/changelog.md?

No

📖 Did you update documentation?

  • ✅ Internal dev docs in src (required for dev) - Added doc in powershell function New-FinOpsCostExport.ps1

@flanakin flanakin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. We just need the changelog to be updated. Thank you for the contribution!

@microsoft-github-policy-service microsoft-github-policy-service Bot added Needs: Attention 👋 Issue or PR needs to be reviewed by the author or it will be closed due to no activity and removed Needs: Review 👀 PR that is ready to be reviewed labels Jan 6, 2026
@flanakin

flanakin commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

@all-contributors Please add gorkomikus for code

@allcontributors

Copy link
Copy Markdown
Contributor

@flanakin

I've put up a pull request to add @gorkomikus! 🎉

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -Format parameter with support for "Csv" (default) and "Parquet"
  • Added -CompressionMode parameter 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

@microsoft-github-policy-service microsoft-github-policy-service Bot added Needs: Review 👀 PR that is ready to be reviewed and removed Needs: Attention 👋 Issue or PR needs to be reviewed by the author or it will be closed due to no activity labels Jan 9, 2026
@flanakin flanakin enabled auto-merge (squash) January 9, 2026 09:51
@flanakin flanakin self-requested a review January 9, 2026 09:51
@flanakin flanakin merged commit 0ec8444 into microsoft:dev Jan 9, 2026
2 checks passed
flanakin added a commit that referenced this pull request Jan 31, 2026
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Micro PR 🔬 Very small PR that should be especially easy for newcomers Needs: Review 👀 PR that is ready to be reviewed Tool: PowerShell PowerShell scripts and automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PowerShell] Add format and compression support to New-FinOpsCostExport

8 participants