microsoft / microsoft/finops-toolkit

Add -HubName parameter to New-FinOpsTestData and Remove-FinOpsTestData via Get-FinOpsHub

Open
#2,015 0 comments 1 reaction 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

Add a -HubName parameter to both New-FinOpsTestData and Remove-FinOpsTestData that uses Get-FinOpsHub to automatically resolve hub infrastructure details (storage account, ADX cluster URI, container name, etc.).

Motivation

Currently users must manually specify -StorageAccountName, -AdxClusterUri, and -ContainerName separately. A single -HubName parameter would simplify the experience by looking up all hub resources automatically.

Proposed changes

  • Add -HubName parameter to both commands
  • Use Get-FinOpsHub internally to resolve storage account name, container name, ADX cluster URI, and database name
  • Keep the individual parameters available for non-hub scenarios or overrides
  • Add -HubName to the same parameter set or a dedicated parameter set

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 with the New-FinOpsTestData and Remove-FinOpsTestData commands, then inspect Get-FinOpsHub and deferred PR #2006 for existing patterns. Done means both commands accept -HubName, resolve the listed hub resources automatically, and still support individual parameters for non-hub scenarios or overrides.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.