microsoft / microsoft/finops-toolkit

Extract New-FinOpsExportManifest as a reusable PowerShell command

Open
#2,016 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Tool: PowerShell Type: Feature 💎
Dominant language
PowerShell
Stars
603
Forks
248
Avg merge
7d 11h
Merged PRs (30d)
11

Description

Summary

Extract the manifest generation logic from New-FinOpsTestData into a standalone New-FinOpsExportManifest command that can be used independently.

Motivation

New-FinOpsTestData currently generates Cost Management-compatible manifest files inline. This logic is useful beyond test data — anyone creating custom data pipelines or tooling that writes to FinOps hubs storage could benefit from a dedicated manifest command.

Proposed changes

  • Create a new New-FinOpsExportManifest command in the PowerShell module
  • Support all manifest fields (blobCount, blobs, byteCount, dataFormat, exportConfig, runInfo, etc.)
  • Support the _ftkTestData watermark fields as optional parameters
  • Refactor New-FinOpsTestData to call New-FinOpsExportManifest internally
  • Add Pester tests and MS Learn documentation

Context

Deferred from PR #2006 (New-FinOpsTestData and Remove-FinOpsTestData).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the manifest generation logic in New-FinOpsTestData and identify every manifest field, including the optional _ftkTestData watermark fields. Extract it into the New-FinOpsExportManifest command, update New-FinOpsTestData to use it, then add Pester coverage and the corresponding MS Learn documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cloud, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.