Skip to content

Commit

Permalink
Merge pull request #495 from mortenlerudjordet/main
Browse files Browse the repository at this point in the history
Add name policy attribute for metric alerts both static and dynamic
  • Loading branch information
judyer28 authored Feb 14, 2025
2 parents 48b38c4 + b594cc0 commit d10a7fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"type": "Microsoft.Insights/metricAlerts",
"name": "[[concat(field('name'), '-##METRIC_NAME##')]",
"existenceCondition": {
"allOf": [
{
Expand Down
1 change: 1 addition & 0 deletions tooling/generate-templates/policy/metric-dynamic.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"type": "Microsoft.Insights/metricAlerts",
"name": "[[concat(field('name'), '-##METRIC_NAME##')]",
"existenceCondition": {
"allOf": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"type": "Microsoft.Insights/metricAlerts",
"name": "[[concat(field('name'), '-##METRIC_NAME##')]",
"existenceCondition": {
"allOf": [
{
Expand Down
1 change: 1 addition & 0 deletions tooling/generate-templates/policy/metric-static.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"type": "Microsoft.Insights/metricAlerts",
"name": "[[concat(field('name'), '-##METRIC_NAME##')]",
"existenceCondition": {
"allOf": [
{
Expand Down

0 comments on commit d10a7fa

Please sign in to comment.