-
Notifications
You must be signed in to change notification settings - Fork 190
Description
π Problem
When initializing the FinOps Hub the step that populates the PricingUnits table fails.
The KQL command uses externaldata to read PricingUnits.csv from a GitHub releases URL and returns
HTTP client error: redirects are not allowed
so the PricingUnits table is not created or updated.
The failing command:
.set-or-replace PricingUnits <|
externaldata(x_PricingUnitDescription: string, AccountTypes: string, x_PricingBlockSize: real, PricingUnit: string)
[@"https://github.com/microsoft/finops-toolkit/releases/download/v12/PricingUnits.csv"]
with (format = "csv", ignoreFirstRecord = true)
| project-away AccountTypesThis looks like the GitHub releases download URL now returns a redirect and Azure Data Explorer does not follow redirects for externaldata().
π£ Repro steps
- Deploy the FinOps Hub (v12) with Azure Data Explorer as the hub database.
- In Data Factory run pipeline
config_InitializeHub. - Inside the pipeline the Azure Data Explorer command activity Upserts PricingUnits runs the command above.
- The activity fails with a partial query failure and the error message
HTTP client error: redirects are not allowed.
Optional confirmation:
5. Run the same .set-or-replace PricingUnits command directly in the Kusto Web UI against the hub database.
6. Observe the same error.
π€ Expected
The pipeline config_InitializeHub should complete successfully and the PricingUnits table should be created or updated from PricingUnits.csv without errors.
π· Screenshots
- Kusto Web UI showing the failing query and error message.
- Data Factory pipeline
config_InitializeHubwith the Azure Data Explorer command activity that runs the same statement.
βΉοΈ Additional context
-
Environment: FinOps Hub v12, Azure Data Explorer as hub, Data Factory based deployment.
-
The error text in Kusto is:
Partial query failure: Unspecified error (message:
HTTP client error: redirects are not allowed, details:StgError { kind: Generic("HTTP client error: redirects are not allowed"), source: None }) -
This started to happen when using the GitHub releases URL
https://github.com/microsoft/finops-toolkit/releases/download/v12/PricingUnits.csv
which appears to return a redirect to another host. -
As a workaround the CSV can be copied to a storage account and referenced from there with a direct URL that does not redirect.
-
Same issue with fabric based deployments
-
Same issue with Region.csv, ResourceTypes.csv, Services.csv
Suggested fix ideas:
- Host
PricingUnits.csvat a non redirecting URL (for example underraw.githubusercontent.comor in the repo itself) and update the KQL script. - Or include the pricing units as an inline
datatableduring initialization.
πββοΈ Ask for the community
We could use your help:
- Please vote this issue up (π) if you are also seeing the same failure in your FinOps Hub deployment.
- Add comments if you have confirmation on which URLs work correctly with
externaldataor if you have a better suggestion for hostingPricingUnits.csv.