Skip to content

Commit

Permalink
Fix error on missing existing group
Browse files Browse the repository at this point in the history
  • Loading branch information
savpek committed Oct 28, 2024
1 parent b2c8334 commit 3c4603f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pinja.Azure.Alerts/Set-AlertRulesLogicAppReceiver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function Set-AlertRulesLogicAppReceiver {


if ($PSCmdlet.ShouldProcess($ResourceGroup, "Update-AzActionGroug - azure-alerts")) {
if (Get-AzActionGroup -Name "azure-alerts" -ResourceGroup $ResourceGroup) {
if (Get-AzActionGroup -Name "azure-alerts" -ResourceGroup $ResourceGroup -ErrorAction SilentlyContinue) {
$alertRef = Update-AzActionGroup `
-Name "azure-alerts" `
-ResourceGroup $ResourceGroup `
Expand Down

0 comments on commit 3c4603f

Please sign in to comment.