Get-FinOpsCostExport コマンド

Get-FinOpsCostExport コマンドは、特定のスコープの Cost Management エクスポートの一覧を取得します。

このコマンドは、次の API バージョンでテストされました。

  • 2025-03-01 (既定) – FocusCost およびその他のデータセットの GA バージョン。
  • 2023-07-01-preview
  • 2023-08-01
  • 2023-03-01

構文

Get-FinOpsCostExport `
    [-Name <string>] `
    [-Scope <string>] `
    [-DataSet <string>] `
    [-DataSetVersion <string>] `
    [-StorageAccountId <string>] `
    [-StorageContainer <string>] `
    [-RunHistory] `
    [-ApiVersion <string>]

パラメーター

件名 説明
‑Name 省略可。 エクスポートの名前。 ワイルドカードがサポートされます。
‑Scope 省略可。 エクスポートが作成されたスコープのリソース ID。 空の場合、既定では現在のサブスクリプション コンテキストになります。
‑DataSet 省略可。 エクスポートを取得するデータセット。 使用できる値 = "ActualCost"、"AmortizedCost"、"FocusCost"、"PriceSheet"、"ReservationDetails"、"ReservationTransactions"、"ReservationRecommendations"。 既定値 = null (すべてのエクスポート)。
‑DataSetVersion 省略可。 エクスポートするデータセットのスキーマ バージョン。 既定値 = null (すべてのエクスポート)。
‑StorageAccountId 省略可。 エクスポートを取得するストレージ アカウントのリソース ID。 既定値 = null (すべてのエクスポート)。
‑StorageContainer 省略可。 エクスポートを取得するコンテナーの名前。 ワイルドカードがサポートされます。 既定値 = null (すべてのエクスポート)。
‑RunHistory 省略可。 実行履歴を展開するかどうかを示します。 既定値 = false。
‑ApiVersion 省略可。 Cost Management エクスポート API を呼び出すときに使用する API バージョン。 既定値は 2025-03-01 です。

戻り値

FinOpsCostExport オブジェクト

プロパティ タイプ JSON パス
Name 糸 name
Id 糸 id
Type 糸 type
eTag 糸 eTag
Description 糸 properties.exportDescription
Dataset 糸 properties.definition.type
DatasetVersion 糸 properties.definition.configuration.dataVersion
DatasetFilters 糸 properties.definition.configuration.filter
DatasetTimeFrame 糸 properties.definition.timeframe
DatasetStartDate 日付と時間 properties.definition.timePeriod.from
DatasetEndDate 日付と時間 properties.definition.timePeriod.to
DatasetGranularity 糸 properties.definition.dataset.granularity
ScheduleStatus 糸 properties.schedule.status
ScheduleRecurrence 糸 properties.schedule.recurrence
ScheduleStartDate 日付と時間 properties.schedule.recurrencePeriod.from
ScheduleEndDate 日付と時間 properties.schedule.recurrencePeriod.to
NextRuntimeEstimate 日付と時間 properties.nextRunTimeEstimate
Format 糸 properties.format
StorageAccountId 糸 properties.deliveryInfo.destination.resourceId
StorageContainer 糸 properties.deliveryInfo.destination.container
StoragePath 糸 properties.deliveryInfo.destination.rootfolderpath
OverwriteData ブール値 properties.deliveryInfo.dataOverwriteBehavior == "OverwritePreviousReport"
PartitionData ブール値 properties.deliveryInfo.partitionData
CompressionMode 糸 properties.deliveryInfo.compressionMode
RunHistory FinOpsCostExportRunHistory[] properties.runHistory.value

FinOpsCostExportRunHistory オブジェクト

プロパティ タイプ JSON パス
Id 糸 properties.runHistory.value[].id
ExecutionType 糸 properties.runHistory.value[].properties.executionType
FileName 糸 properties.runHistory.value[].fileName
StartTime 日付と時間 properties.runHistory.value[].processingStartTime
EndTime 日付と時間 properties.runHistory.value[].processingEndTime
Status 糸 properties.runHistory.value[].status
SubmittedBy 糸 properties.runHistory.value[].submittedBy
SubmittedTime 日付と時間 properties.runHistory.value[].submittedTime

例

サブスクリプションのすべてのコスト エクスポートを取得する

Get-FinOpsCostExport `
    -Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"

サブスクリプションのすべてのエクスポートを取得します。 入れ子になったリソース グループにエクスポートは含まれません。

ワイルドカード名に一致するエクスポートを取得する

Get-FinOpsCostExport `
    -Name mtd* `
    -Scope "providers/Microsoft.Billing/billingAccounts/00000000"

指定された課金アカウントスコープ内でワイルドカード mtd* と一致する名前を持つエクスポートを取得します。 入れ子になったリソース グループにエクスポートは含まれません。

償却コストのすべてのエクスポートを取得する

Get-FinOpsCostExport `
    -DataSet "AmortizedCost"

現在のコンテキスト サブスクリプション スコープ内のすべてのエクスポートを取得し、データセットの償却コストでフィルター処理します。

特定のストレージ アカウントを使用してエクスポートを取得する

Get-FinOpsCostExport `
    -Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"`
    -StorageAccountId "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount"

特定のストレージ アカウントでフィルター処理されたサブスクリプション スコープ内のすべてのエクスポートを取得します。

特定のコンテナーを使用してエクスポートを取得する

Get-FinOpsCostExport `
    -Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" `
    -StorageContainer "MyContainer*"

特定のコンテナーのサブスクリプション スコープ内のすべてのエクスポートを取得します。 ワイルドカードをサポートします。

特定の API バージョンを使用してエクスポートを取得する

Get-FinOpsCostExport `
    -Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
    -StorageContainer "mtd*"
    -ApiVersion "2023-08-01"
    -StorageContainer "MyContainer*"

ワイルドカード パターンに一致し、特定の API バージョンを使用するコンテナーのサブスクリプション スコープ内のすべてのエクスポートを取得します。


フィードバックを送る

クイック レビューを使用して、どのように取り組んでいるかをお知らせください。 これらのレビューを使用して、FinOps のツールとリソースを改善および拡張します。

特定の情報をお探しの場合は、既存のアイデアに投票するか、新しいアイデアを作成してください。 他のユーザーとアイデアを共有して、投票を増やしましょう。 投票数が最も多いアイデアに焦点を当てています。


関連製品:

関連するソリューション: