Skip to content

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

@FallenHoot

Description

@FallenHoot

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions