Add commitment discount eligibility open data set#2056
Open
RolandKrummenacher wants to merge 1 commit intodevfrom
Open
Add commitment discount eligibility open data set#2056RolandKrummenacher wants to merge 1 commit intodevfrom
RolandKrummenacher wants to merge 1 commit intodevfrom
Conversation
Add a new open data CSV listing Azure meters eligible for Reserved Instances and/or Savings Plans, sourced from the Azure Retail Prices API. - PowerShell script to fetch RI/SP eligibility from the public API - GitHub Action to refresh the data monthly and create a PR - Initial CSV with ~84K meters This data can replace the per-query cross-row eligibility lookups in FinOps Hub Prices functions, addressing the performance concern in #1625. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new open data CSV (
CommitmentDiscountEligibility.csv) listing Azure meters eligible for Reserved Instances and/or Savings Plans, sourced from the Azure Retail Prices API.src/scripts/Update-CommitmentDiscountEligibility.ps1— PowerShell script that pages through the Retail Prices API to collect RI-eligible meters (priceType eq 'Reservation') and SP-eligible meters (Consumption items withsavingsPlanarrays), then merges them into a single CSV..github/workflows/opendata-commitment-eligibility.yml— GitHub Action that runs monthly (1st of each month) or on manual dispatch, executes the script, and creates a PR if data changed.src/open-data/CommitmentDiscountEligibility.csv— Initial dataset with ~84K meters.Motivation
FinOps Hub
Prices_v1_2()/Prices_v1_0()functions currently compute commitment discount eligibility via cross-row lookups at query time, scanning the full prices table on every call. This open data set provides a pre-computed lookup that can replace those per-query scans, and also solves the per-batch ingestion issue described in #1625.Schema
MeterIdServiceNameServiceFamilyReservationEligibleSavingsPlanEligibleScope
Reservationin the API and are includedNext steps
Build-OpenData.ps1to generate PowerShell functions and KQL lookup tablesTest plan
🤖 Generated with Claude Code