Remove-FinOpsHubScope Stops monitoring a scope within a FinOps hub instance.

Syntax Examples

On this page

The Remove-FinOpsHubScope command removes a scope from being monitored by a FinOps hub instance. Data related to that scope is kept by default. To remove the data, use the -RemoveData option.


🧮 Syntax

Remove-FinOpsHubScope `
    [-Id] <string> `
    -HubName <string>
    [-HubResourceGroupName <string>]
    [-RemoveData]


📥 Parameters

Name Description
‑Id Required resource ID of the scope to remove.
‑HubName Required. Name of the FinOps hub instance.
‑HubResourceGroupName Optional. Name of the resource group the FinOps hub was deployed to.
‑RemoveData Optional. Indicates whether to remove data for this scope from storage. Default = false


🌟 Examples

Remove billing account and keep data

Remove-FinOpsHubScope -Id "/providers/Microsoft.Billing/billingAccounts/123" -HubName "FooHub"

Removes the exports configured to use the FooHub hub instance. Existing data is retained in the storage account.

Remove subscription and historical data

Remove-FinOpsHubScope -Id "/subscriptions/##-#-#-#-###" -HubName "FooHub" -RemoveData

Removes the exports configured to use the FooHub hub instance and removes data for that scope.



  • 🏦 FinOps hubs – Open, extensible, and scalable cost reporting.
  • 📊 Power BI reports – Accelerate your reporting with Power BI starter kits.



This site uses Just the Docs, a documentation theme for Jekyll.