From 44f0e55bfee623413a7ad7e5aa4761e293955a0a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Dec 2025 09:35:55 +0000 Subject: [PATCH 1/2] Initial plan From 995cb31008bd631a1bdbcffbe5ab112490e9a0c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Dec 2025 09:40:37 +0000 Subject: [PATCH 2/2] Fix datatype mismatch in InitializeHub pipeline - change x_PricingBlockSize from decimal to real Co-authored-by: RolandKrummenacher <1803486+RolandKrummenacher@users.noreply.github.com> --- docs-mslearn/toolkit/changelog.md | 1 + .../finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs-mslearn/toolkit/changelog.md b/docs-mslearn/toolkit/changelog.md index db543056d..4b02ca5cc 100644 --- a/docs-mslearn/toolkit/changelog.md +++ b/docs-mslearn/toolkit/changelog.md @@ -49,6 +49,7 @@ _Released August 2025_ - Fixed all Bicep compilation errors and warnings with inline suppressions and descriptive comments. - Fixed Build-Toolkit.ps1 bicep generate-params command bug. - Fixed Azure Data Explorer dashboard queries by converting `todecimal(0)` to `toreal(0)` to ensure compatibility with KQL type system ([#1893](https://github.com/microsoft/finops-toolkit/issues/1893)). + - Fixed datatype mismatch in InitializeHub pipeline by changing `x_PricingBlockSize` from `decimal` to `real` to match PricingUnits table schema. ### [Optimization engine](optimization-engine/overview.md) v13 diff --git a/src/templates/finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep b/src/templates/finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep index 6e290e2da..b689fc184 100644 --- a/src/templates/finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep +++ b/src/templates/finops-hub/modules/Microsoft.FinOpsHubs/Analytics/app.bicep @@ -976,7 +976,7 @@ resource pipeline_InitializeHub 'Microsoft.DataFactory/factories/pipelines@2018- userProperties: [] typeProperties: { // cSpell:ignore externaldata - command: '.set-or-replace PricingUnits <| externaldata(x_PricingUnitDescription: string, AccountTypes: string, x_PricingBlockSize: decimal, PricingUnit: string)[@"${ftkReleaseUri}/PricingUnits.csv"] with (format="csv", ignoreFirstRecord=true) | project-away AccountTypes' + command: '.set-or-replace PricingUnits <| externaldata(x_PricingUnitDescription: string, AccountTypes: string, x_PricingBlockSize: real, PricingUnit: string)[@"${ftkReleaseUri}/PricingUnits.csv"] with (format="csv", ignoreFirstRecord=true) | project-away AccountTypes' commandTimeout: '00:20:00' } linkedServiceName: {