Get-FinOpsRegion command

The Get-FinOpsRegion command returns an Azure region ID and name based on the specified resource location.


Syntax

Get-FinOpsRegion `
    [[-ResourceLocation] <string>] `
    [-RegionId <string>] `
    [-RegionName <string>]

Parameters

Name Description Notes
ResourceLocation Optional. Resource location value from a Cost Management cost/usage details dataset. Accepts wildcards. Default = * (all).
RegionId Optional. Azure region ID (lowercase English name without spaces). Accepts wildcards. Default = * (all).
RegionName Optional. Azure region name (title case English name with spaces). Accepts wildcards. Default = * (all).IncludeResourceLocation Optional. Indicates whether to include the ResourceLocation property in the output. Default = false.

Examples

The following examples demonstrate how to use the Get-FinOpsRegion command to retrieve Azure region IDs and names based on different criteria.

Get a specific region

Get-FinOpsRegion -ResourceLocation "US East"

Returns the region ID and name for the East US region.

Get many regions with the original Cost Management value

Get-FinOpsRegion -RegionId "*asia*" -IncludeResourceLocation

Returns all Asia regions with the original Cost Management ResourceLocation value.


Related products:

Related solutions: