Get-FinOpsService 命令

Get-FinOpsService 命令根据指定的筛选器返回服务详细信息。 此命令旨在帮助将成本管理成本数据映射到 FinOps 开放式成本和使用情况规范(FOCUS)架构,但也可用于常规数据清理。


语法

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

参数设置

名称 说明
‑ConsumedService 可选。 成本管理成本/使用情况详细信息数据集中的 ConsumedService 值。 接受通配符。 默认值 = * (全部)。
‑ResourceId 可选。 要查找的资源的 Azure 资源 ID。 接受通配符。 默认值 = * (全部)。
‑ResourceType 可选。 要为其查找服务的资源的 Azure 资源类型。 默认值 = null (全部)。
‑ServiceName 可选。 要查找的服务名称。 默认值 = null (全部)。
‑ServiceCategory 可选。 要查找其服务的服务类别。 默认值 = null (全部)。
‑Servicemodel 可选。 服务与服务一致的服务模型。 预期值:IaaS、PaaS、SaaS。 默认值 = null (全部)。
‑Environment 可选。 服务在其中运行的环境。 预期值:云、混合。 默认值 = null (全部)。
‑PublisherName 可选。 要查找其服务的发布者名称。 默认值 = null (全部)。
‑PublisherCategory 可选。 要查找其服务的发布者类别。 默认值 = null (全部)。

示例

以下示例演示如何使用 Get-FinOpsService 命令检索服务详细信息。

获取特定区域

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

返回具有以 .. 开头 Microsoft.C的资源提供程序的所有服务。


相关产品:

相关解决方案: