Skip to content

Commit

Permalink
Extended support for Premium ZRS and skipped reserved disk states
Browse files Browse the repository at this point in the history
  • Loading branch information
Helder Pinto committed Jul 18, 2024
1 parent 4cce59c commit 89c5c27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/optimization-engine/azuredeploy-nested.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ var csvParameterizedExports = [
exportJobId: monitorDiskIOPSAvgExportJobId
parameters: {
ResourceType: 'microsoft.compute/disks'
ARGFilter: 'sku.name =~ \'Premium_LRS\' and properties.diskState != \'Unattached\''
ARGFilter: 'sku.name startswith \'Premium_\' and properties.diskState =~ \'Attached\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
Expand All @@ -748,7 +748,7 @@ var csvParameterizedExports = [
exportJobId: monitorDiskMBPsAvgExportJobId
parameters: {
ResourceType: 'microsoft.compute/disks'
ARGFilter: 'sku.name =~ \'Premium_LRS\' and properties.diskState != \'Unattached\''
ARGFilter: 'sku.name startswith \'Premium_\' and properties.diskState =~ \'Attached\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
Expand Down
4 changes: 2 additions & 2 deletions src/optimization-engine/upgrade-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@
"schedule": "AzureOptimization_ExportMonitorDiskIOPSHourly",
"parameters": {
"ResourceType": "microsoft.compute/disks",
"ARGFilter": "sku.name =~ 'Premium_LRS' and properties.diskState != 'Unattached'",
"ARGFilter": "sku.name startswith 'Premium_' and properties.diskState =~ 'Attached'",
"TimeSpan": "01:00:00",
"aggregationType": "Average",
"AggregationOfType": "Maximum",
Expand All @@ -675,7 +675,7 @@
"schedule": "AzureOptimization_ExportMonitorDiskMBPsHourly",
"parameters": {
"ResourceType": "microsoft.compute/disks",
"ARGFilter": "sku.name =~ 'Premium_LRS' and properties.diskState != 'Unattached'",
"ARGFilter": "sku.name startswith 'Premium_' and properties.diskState =~ 'Attached'",
"TimeSpan": "01:00:00",
"aggregationType": "Average",
"AggregationOfType": "Maximum",
Expand Down

0 comments on commit 89c5c27

Please sign in to comment.