Skip to content

Commit 2d198d4

Browse files
helderpintoHélder Pintoflanakin
authored
[AOE] Reservations Usage workbook uses the most recent reservation display name (#1520)
Co-authored-by: Hélder Pinto <[email protected]> Co-authored-by: Michael Flanakin <[email protected]>
1 parent f5b259e commit 2d198d4

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs-mslearn/toolkit/changelog.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ The following section lists features and enhancements that are currently in deve
2828

2929
- Cost Management export modules for subscriptions and resource groups.
3030

31+
<br><a name="latest"></a>
32+
33+
## v0.10
34+
35+
_Released April 2025_
36+
3137
### [FinOps hubs](hubs/finops-hubs-overview.md) pending updates
3238

3339
- **Added**
@@ -38,25 +44,20 @@ The following section lists features and enhancements that are currently in deve
3844
- The **hub-event-trigger** module creates a trigger in the hub Data Factory instance.
3945
- The **hub-vault** module adds secrets to the hub vault.
4046

41-
**Fixed**
47+
- **Fixed**
4248
- Workaround subnets reordering and bicep limitation
4349

44-
<br><a name="latest"></a>
45-
46-
## v0.10
47-
48-
_Released April 2025_
49-
50-
### [FinOps alerts](alerts/finops-alerts-overview.md) pending updates
50+
### [FinOps alerts](alerts/finops-alerts-overview.md) v0.10
5151

5252
- **Fixed**
5353
- Update the 'id' property for the managedApi to a valid scope
5454
- This caused a deployment error because the path could not be deserialized.
5555

56-
### [Optimization engine](optimization-engine/overview.md)
56+
### [Optimization engine](optimization-engine/overview.md) v0.10
5757

5858
- **Fixed**
5959
- Fixed issue with `Remediate-LongDeallocatedVMsFiltered` runbook that was skipping the remediation of eligible VMs due to `Az.Compute` module breaking changes ([#1456](https://github.com/microsoft/finops-toolkit/issues/1456)).
60+
- Fixed issue with the Reservations Usage workbook that was listing multiple display names for the same reservation in case its name changed over the course of the lookback period ([#1455](https://github.com/microsoft/finops-toolkit/issues/1455)).
6061

6162
> [!div class="nextstepaction"]
6263
> [Download](https://github.com/microsoft/finops-toolkit/releases/tag/v0.10)

src/optimization-engine/views/workbooks/reservations-usage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"multiSelect": true,
5151
"quote": "'",
5252
"delimiter": ",",
53-
"query": "AzureOptimizationReservationsUsageV1_CL\r\n| where TimeGenerated > todatetime('{LookbackPeriod:startISO}') and TimeGenerated < todatetime('{LookbackPeriod:endISO}') and ProvisioningState_s in ('Succeeded','Expiring')\r\n| distinct ResourceType\r\n| order by ResourceType asc",
53+
"query": "AzureOptimizationReservationsUsageV1_CL\r\n| where TimeGenerated > todatetime('{LookbackPeriod:startISO}') and TimeGenerated < todatetime('{LookbackPeriod:endISO}') and ProvisioningState_s in ('Succeeded','Expiring') and todatetime(ExpiryDate_s) > now()\r\n| distinct ResourceType\r\n| order by ResourceType asc",
5454
"typeSettings": {
5555
"additionalResourceOptions": [
5656
"value::all"
@@ -76,7 +76,7 @@
7676
"multiSelect": true,
7777
"quote": "'",
7878
"delimiter": ",",
79-
"query": "AzureOptimizationReservationsUsageV1_CL\r\n| where TimeGenerated > todatetime('{LookbackPeriod:startISO}') and TimeGenerated < todatetime('{LookbackPeriod:endISO}') and ProvisioningState_s in ('Succeeded','Expiring') and ResourceType in ({ResourceType:value})\r\n| distinct ReservationId_g, DisplayName_s\r\n| order by DisplayName_s asc",
79+
"query": "AzureOptimizationReservationsUsageV1_CL\r\n| where TimeGenerated > todatetime('{LookbackPeriod:startISO}') and TimeGenerated < todatetime('{LookbackPeriod:endISO}') and ProvisioningState_s in ('Succeeded','Expiring') and ResourceType in ({ResourceType:value}) and todatetime(ExpiryDate_s) > now()\r\n| summarize arg_max(TimeGenerated, DisplayName_s) by ReservationId_g\r\n| project-away TimeGenerated\r\n| order by DisplayName_s asc",
8080
"typeSettings": {
8181
"additionalResourceOptions": [
8282
"value::all"

0 commit comments

Comments
 (0)