FinOps toolkit PowerShell module
The FinOps toolkit PowerShell module is a collection of commands to automate and manage FinOps solutions. We're just getting started so let us know what you'd like to see next. For details about the FinOps toolkit PowerShell module, refer to the PowerShell Gallery.
Install the module
The FinOps toolkit module requires PowerShell 7, which is built into Azure Cloud Shell and supported on all major operating systems.
Azure Cloud Shell comes with PowerShell 7 and Azure PowerShell preinstalled. If you aren't using Azure Cloud Shell, you need to Install PowerShell first and then run the following commands to install Azure PowerShell:
Install-Module -Name Az.Accounts
Install-Module -Name Az.Resources
To install the FinOps toolkit module, run the following command in either Azure Cloud Shell or a PowerShell client:
Install-Module -Name FinOpsToolkit
If it's the first time using Azure PowerShell, you also need to sign into your account and select a default subscription:
Connect-AzAccount
It shows a popup window to sign in to your account. If you don't see the window, it might be on a different screen.
Commands
The FinOps toolkit PowerShell module includes commands to manage FinOps solutions. Here are the available commands:
General toolkit commands
- Get-FinOpsToolkitVersion – Get details about available FinOps toolkit releases.
Cost Management commands
- Get-FinOpsCostExport – Get details about Cost Management exports.
- New-FinOpsCostExport – Create a new Cost Management export.
- Remove-FinOpsCostExport – Delete a Cost Management export and optionally data associated with the export.
- Start-FinOpsCostExport – Initiates a Cost Management export run for the most recent period.
FinOps hubs commands
- Deploy-FinOpsHub – Deploy your first hub or update to the latest version.
- Get-FinOpsHub – Get details about your FinOps hub instance.
- Initialize-FinOpsHubDeployment – Initializes the deployment for FinOps hubs.
- Register-FinOpsHubProviders – Registers resource providers for FinOps hubs.
- Remove-FinOpsHub – Deletes a FinOps hub instance.
Open data commands
- Get-FinOpsPricingUnit – Gets an Azure region ID and name.
- Get-FinOpsRegion – Gets an Azure region ID and name.
- Get-FinOpsResourceType – Gets details about an Azure resource type.
- Get-FinOpsService – Gets the name and category for a service, publisher, and cloud provider.
Looking for more?
We'd love to hear about any commands or scripts you're looking for. To suggest a new idea in the FinOps toolkit issues list, vote up existing ideas or create a new issue. We focus on ideas with the most votes.
Related content
Related products:
Related solutions: