Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

The InitializeHub pipeline uses decimal type when loading PricingUnits external data, but the table schema defines x_PricingBlockSize as real, causing ingestion failures.

Changes

  • app.bicep: Changed x_PricingBlockSize type from decimal to real in the PricingUnits external data ingestion command to match the table schema defined in IngestionSetup_HubInfra.kql
  • changelog.md: Documented fix under FinOps hubs v13
// Before
command: '.set-or-replace PricingUnits <| externaldata(..., x_PricingBlockSize: decimal, ...)'

// After  
command: '.set-or-replace PricingUnits <| externaldata(..., x_PricingBlockSize: real, ...)'

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: /usr/local/bin/bicep bicep build src/templates/finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[ADF]: InitialiseHub pipeline: Datatype missmatch</issue_title>
<issue_description>In Analytics/app.bicep:

Instead of .set-or-replace PricingUnits <| externaldata(x_PricingUnitDescription: string, AccountTypes: string, x_PricingBlockSize: decimal, PricingUnit: string)

use

Instead of .set-or-replace PricingUnits <| externaldata(x_PricingUnitDescription: string, AccountTypes: string, x_PricingBlockSize: real, PricingUnit: string)

as the PricingUnits table was migrated to real for x_PricingBlockSize (see IngestionSetup_HubInfra.kql)</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ckSize from decimal to real

Co-authored-by: RolandKrummenacher <[email protected]>
@RolandKrummenacher RolandKrummenacher marked this pull request as ready for review December 18, 2025 09:42
Copilot AI changed the title [WIP] Fix datatype mismatch in InitialiseHub pipeline Fix datatype mismatch in InitializeHub pipeline for PricingUnits ingestion Dec 18, 2025
@RolandKrummenacher RolandKrummenacher added this to the v13 milestone Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Review 👀 PR that is ready to be reviewed Skill: DevOps GitHub setup and automation Skill: Documentation Documentation updates Tool: FinOps guide Implementing FinOps guide

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ADF]: InitialiseHub pipeline: Datatype missmatch

5 participants