diff --git a/operational/azure/azure_long_running_instances/CHANGELOG.md b/operational/azure/azure_long_running_instances/CHANGELOG.md index e0b9ab4191..47139c12c2 100644 --- a/operational/azure/azure_long_running_instances/CHANGELOG.md +++ b/operational/azure/azure_long_running_instances/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v4.1 + +- Added `Operating System` incident field. +- Renamed field from `osType` to `platform` + ## v4.0 - Several parameters altered to be more descriptive and human-readable diff --git a/operational/azure/azure_long_running_instances/azure_long_running_instances.pt b/operational/azure/azure_long_running_instances/azure_long_running_instances.pt index 4dc336a51d..97469ebd28 100644 --- a/operational/azure/azure_long_running_instances/azure_long_running_instances.pt +++ b/operational/azure/azure_long_running_instances/azure_long_running_instances.pt @@ -7,7 +7,7 @@ category "Operational" severity "low" default_frequency "weekly" info( - version: "4.0", + version: "4.1", provider: "Azure", service: "Compute", policy_set: "Long Running Instances" @@ -300,7 +300,7 @@ datasource "ds_azure_instances" do field "name", jmes_path(col_item, "name") field "region", jmes_path(col_item, "location") field "timeCreated", jmes_path(col_item, "properties.timeCreated") - field "osType", jmes_path(col_item, "properties.storageProfile.osDisk.osType") + field "platform", jmes_path(col_item, "properties.storageProfile.osDisk.osType") field "resourceType", jmes_path(col_item, "properties.hardwareProfile.vmSize") field "tags", jmes_path(col_item, "tags") field "subscriptionId",val(iter_item, "id") @@ -398,7 +398,7 @@ script "js_long_running_instances", type: "javascript" do name: vm['name'], region: vm['region'], statuses: vm['statuses'], - osType: vm['osType'], + platform: vm['platform'], resourceType: vm['resourceType'], subscriptionId: vm['subscriptionId'], subscriptionName: vm['subscriptionName'], @@ -564,7 +564,7 @@ script "js_long_running_instances_incident", type: "javascript" do resourceName: vm['name'], region: vm['region'], statuses: vm['statuses'], - osType: vm['osType'], + platform: vm['platform'], resourceType: vm['resourceType'], accountID: vm['subscriptionId'], accountName: vm['subscriptionName'], @@ -623,7 +623,7 @@ script "js_long_running_instances_incident", type: "javascript" do result.push({ id: "", resourceGroup: "", resourceKind: "", resourceName: "", region: "", statuses: "", - osType: "", resourceType: "", accountID: "", + platform: "", resourceType: "", accountID: "", accountName: "", tags: "", age: "", status: "", launchTime: "", lookbackPeriod: "", policy_name: "", costCurrency: "", cost: "", @@ -670,6 +670,9 @@ policy "pol_utilization" do field "resourceType" do label "Instance Size" end + field "platform" do + label "Operating System" + end field "age" do label "Resource Age (Days)" end diff --git a/operational/azure/azure_long_running_instances/azure_long_running_instances_meta_parent.pt b/operational/azure/azure_long_running_instances/azure_long_running_instances_meta_parent.pt index ecf6c7db30..fc3a979404 100644 --- a/operational/azure/azure_long_running_instances/azure_long_running_instances_meta_parent.pt +++ b/operational/azure/azure_long_running_instances/azure_long_running_instances_meta_parent.pt @@ -8,7 +8,7 @@ tenancy "single" default_frequency "15 minutes" info( provider: "Azure", - version: "4.0", # This version of the Meta Parent Policy Template should match the version of the Child Policy Template as it appears in the Catalog for best reliability + version: "4.1", # This version of the Meta Parent Policy Template should match the version of the Child Policy Template as it appears in the Catalog for best reliability publish: "false" ) @@ -778,6 +778,9 @@ policy "policy_scheduled_report" do field "resourceType" do label "Instance Size" end + field "platform" do + label "Operating System" + end field "age" do label "Resource Age (Days)" end