Skip to content

Latest commit

 

History

History
93 lines (62 loc) · 3.53 KB

File metadata and controls

93 lines (62 loc) · 3.53 KB
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

Get-FinOpsPricingUnit command

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.


Syntax

Get-FinOpsPricingUnit `
    [[-UnitOfMeasure] <string>] `
    [-DistinctUnits <string>] `
    [-BlockSize <string>]

Parameters

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

Examples

The following examples demonstrate how to use the Get-FinOpsPricingUnit command to retrieve pricing units based on different criteria.

Get based on unit of measure

Get-FinOpsPricingUnit -UnitOfMeasure "*hours*"

Returns all pricing units with "hours" in the name.

Get based on distinct units

Get-FinOpsPricingUnit -DistinctUnits "GB"

Returns all pricing units measured in gigabytes.


Give feedback

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 content

Related products:

Related solutions: