| title | description | author | ms.author | ms.date | ms.topic | ms.service | ms.subservice | ms.reviewer |
|---|---|---|---|---|---|---|---|---|
Get-FinOpsService command |
Get the name and category for a service, publisher, and cloud provider using the Get-FinOpsService command in the FinOpsToolkit module. |
flanakin |
micflan |
04/02/2025 |
reference |
finops |
finops-toolkit |
micflan |
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.
Get-FinOpsService `
[[-ConsumedService] <string>] `
[[-ResourceId] <string>] `
[[-ResourceType] <string>] `
[-ServiceName <string>] `
[-ServiceCategory <string>] `
[-ServiceModel <string>] `
[-Environment <string>] `
[-PublisherName <string>] `
[-PublisherCategory <string>]| 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). |
The following example demonstrates how to use the Get-FinOpsService command to retrieve service details.
Get-FinOpsService `
-ConsumedService "Microsoft.C*" `
-ResourceType "Microsoft.Compute/virtualMachines"Returns all services with a resource provider that starts with Microsoft.C.
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: