Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 3.6 KB

File metadata and controls

96 lines (65 loc) · 3.6 KB
title Get-FinOpsPricingUnit command
description Get a pricing unit, distinct unit, and block size using the Get-FinOpsPricingUnit command in the FinOpsToolkit module.
author flanakin
ms.author micflan
ms.date 02/24/2026
ms.topic reference
ms.service finops
ms.subservice finops-toolkit
ms.reviewer 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: