Jaa


Get-FinOpsService command

The Get-FinOpsService command returns service details based on the specified filters. This command is designed to help map Cost Management cost data to the FinOps Open Cost and Usage Specification (FOCUS) schema but can also be useful for general data cleansing.


Syntax

Get-FinOpsService `
    [[-ConsumedService] <string>] `
    [[-ResourceId] <string>] `
    [[-ResourceType] <string>] `
    [-ServiceName <string>] `
    [-ServiceCategory <string>] `
    [-ServiceModel <string>] `
    [-Environment <string>] `
    [-PublisherName <string>] `
    [-PublisherCategory <string>]

Parameters

Name Description
‑ConsumedService Optional. ConsumedService value from a Cost Management cost/usage details dataset. Accepts wildcards. Default = * (all).
‑ResourceId Optional. The Azure resource ID for resource you want to look up. Accepts wildcards. Default = * (all).
‑ResourceType Optional. The Azure resource type for the resource you want to find the service for. Default = null (all).
‑ServiceName Optional. The service name to find. Default = null (all).
‑ServiceCategory Optional. The service category to find services for. Default = null (all).
‑Servicemodel Optional. The service model the service aligns to. Expected values: IaaS, PaaS, SaaS. Default = null (all).
‑Environment Optional. The environment the service runs in. Expected values: Cloud, Hybrid. Default = null (all).
‑PublisherName Optional. The publisher name to find services for. Default = null (all).
‑PublisherCategory Optional. The publisher category to find services for. Default = null (all).

Examples

The following example demonstrates how to use the Get-FinOpsService command to retrieve service details.

Get a specific region

Get-FinOpsService `
    -ConsumedService "Microsoft.C*" `
    -ResourceType "Microsoft.Compute/virtualMachines"

Returns all services with a resource provider that starts with Microsoft.C.


Related products:

Related solutions: