microsoft / microsoft/finops-toolkit
Add -HubName parameter to New-FinOpsTestData and Remove-FinOpsTestData via Get-FinOpsHub
Nobody has claimed this yet.
- 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
-HubNameparameter to both commands - Use
Get-FinOpsHubinternally 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
-HubNameto the same parameter set or a dedicated parameter set
Context
Deferred from PR #2006 (New-FinOpsTestData and Remove-FinOpsTestData).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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