| title | description | author | ms.author | ms.date | ms.topic | ms.service | ms.subservice | ms.reviewer |
|---|---|---|---|---|---|---|---|---|
Get-FinOpsPricingUnit command |
Get a pricing unit, distinct unit, and block size using the Get-FinOpsPricingUnit command in the FinOpsToolkit module. |
flanakin |
micflan |
04/02/2025 |
reference |
finops |
finops-toolkit |
micflan |
The Get-FinOpsPricingUnit command returns a pricing unit (also known as unit of measure) with the singular, distinct unit based on applicable block pricing rules, and the pricing block size.
Note
Block pricing is when a service is measured in groups of units. For example, 100 hours.
Get-FinOpsPricingUnit `
[[-UnitOfMeasure] <string>] `
[-DistinctUnits <string>] `
[-BlockSize <string>]| Name | Description |
|---|---|
| UnitOfMeasure | Optional. Unit of measure (also known as pricing unit) value from a Cost Management cost/usage details or price sheet dataset. Accepts wildcards. Default = * (all). |
| DistinctUnits | Optional. The distinct unit for the pricing unit without block pricing. Accepts wildcards. Default = * (all). |
| BlockSize | Optional. The number of units for block pricing (for example, 100 for "100 Hours"). Default = null (all). |
The following examples demonstrate how to use the Get-FinOpsPricingUnit command to retrieve pricing units based on different criteria.
Get-FinOpsPricingUnit -UnitOfMeasure "*hours*"Returns all pricing units with "hours" in the name.
Get-FinOpsPricingUnit -DistinctUnits "GB"Returns all pricing units measured in gigabytes.
Let us know how we're doing with a quick review. We use these reviews to improve and expand FinOps tools and resources.
[!div class="nextstepaction"] Give feedback
If you're looking for something specific, vote for an existing or create a new idea. Share ideas with others to get more votes. We focus on ideas with the most votes.
[!div class="nextstepaction"] Vote on or suggest ideas
Related products:
Related solutions: