From 86c9d61a21a89437b9a7f014e638b3ccd9dc76a7 Mon Sep 17 00:00:00 2001 From: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> Date: Wed, 5 Jul 2023 10:56:54 +0200 Subject: [PATCH] Fix name collision for VM heart beat alerts --- .../policyDefinitions/deploy-vm-HeartBeatAlertRG.bicep | 4 ++-- .../policyDefinitions/deploy-vm-HeartBeat_alert.bicep | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeatAlertRG.bicep b/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeatAlertRG.bicep index 47d13894..4a34a313 100644 --- a/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeatAlertRG.bicep +++ b/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeatAlertRG.bicep @@ -78,9 +78,9 @@ param parMonitorDisable string = 'MonitorDisable' module AvailableMemoryAlert '../../arm/Microsoft.Authorization/policyDefinitions/managementGroup/deploy.bicep' = { name: '${uniqueString(deployment().name)}-vmama-policyDefinitions' params: { - name: 'Deploy_VM_HeartBeat_Alert' + name: 'Deploy_VM_HeartBeat_Alert_RG' displayName: 'Deploy VM HeartBeat Alert' - description: 'Policy to audit/deploy VM HeartBeat Alert' + description: 'Policy to audit/deploy VM HeartBeat Alert for VMs in the resource group' location: policyLocation metadata: { version: '1.0.0' diff --git a/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeat_alert.bicep b/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeat_alert.bicep index cccee75f..65653495 100644 --- a/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeat_alert.bicep +++ b/src/resources/Microsoft.Authorization/policyDefinitions/deploy-vm-HeartBeat_alert.bicep @@ -89,7 +89,7 @@ module HeartBeatAlert '../../arm/Microsoft.Authorization/policyDefinitions/manag params: { name: 'Deploy_VM_HeartBeat_Alert' displayName: 'Deploy VM HeartBeat Alert' - description: 'Policy to audit/deploy VM HeartBeat Alert' + description: 'Policy to audit/deploy VM HeartBeat Alert for all VMs in the subscription' location: policyLocation metadata: { version: '1.0.0'