-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #535 from kairu-ms/fix-invalid-escape
Fix invalid escape in monitor examples
- Loading branch information
Showing
8 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ Create an action group test-notifications. | |
|
||
- Create an action group test-notifications with action group | ||
```bash | ||
monitor action-group test-notifications create --action-group MyActionGroup \ --resource-group MyResourceGroup -a email alice [email protected] usecommonalertsChema --alert-type budget | ||
monitor action-group test-notifications create --action-group MyActionGroup --resource-group MyResourceGroup -a email alice [email protected] usecommonalertsChema --alert-type budget | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ For more information on autoscaling, visit: https://docs.microsoft.com/azure/mon | |
|
||
- Update autoscale settings to remove an email notification. | ||
```bash | ||
monitor autoscale update -g myrg -n autoscale-name \ --remove-action email [email protected] | ||
monitor autoscale update -g myrg -n autoscale-name --remove-action email [email protected] | ||
``` | ||
|
||
- Update autoscale settings. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56738,7 +56738,7 @@ | |
"examples": [ | ||
{ | ||
"commands": [ | ||
"monitor action-group test-notifications create --action-group MyActionGroup \\ --resource-group MyResourceGroup -a email alice [email protected] usecommonalertsChema --alert-type budget" | ||
"monitor action-group test-notifications create --action-group MyActionGroup --resource-group MyResourceGroup -a email alice [email protected] usecommonalertsChema --alert-type budget" | ||
], | ||
"name": "Create an action group test-notifications with action group" | ||
} | ||
|
@@ -57003,13 +57003,13 @@ | |
}, | ||
{ | ||
"commands": [ | ||
"monitor activity-log alert create -n AlertName -g ResourceGroup \\ --condition category=ServiceHealth and level=Error" | ||
"monitor activity-log alert create -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error" | ||
], | ||
"name": "Create an alert rule with condition about error level service health log." | ||
}, | ||
{ | ||
"commands": [ | ||
"monitor activity-log alert create -n AlertName -g ResourceGroup \\ -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/acti onGroups/{ActionGroup} \\ -w usage=test owner=jane" | ||
"monitor activity-log alert create -n AlertName -g ResourceGroup -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/actionGroups/{ActionGroup} -w usage=test owner=jane" | ||
], | ||
"name": "Create an alert rule with an action group and specify webhook properties." | ||
}, | ||
|
@@ -57191,7 +57191,7 @@ | |
"examples": [ | ||
{ | ||
"commands": [ | ||
"monitor activity-log alert update -n AlertName -g ResourceGroup \\ --condition category=ServiceHealth and level=Error" | ||
"monitor activity-log alert update -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error" | ||
], | ||
"name": "Update the condition" | ||
}, | ||
|
@@ -58626,9 +58626,9 @@ | |
"examples": [ | ||
{ | ||
"commands": [ | ||
"monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 \\ --count 3 --email-administrator", | ||
"monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 \\ --condition \"Percentage CPU > 75 avg 5m\"", | ||
"monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 \\ --condition \"Percentage CPU < 25 avg 5m\"" | ||
"monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 --count 3 --email-administrator", | ||
"monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 --condition \"Percentage CPU > 75 avg 5m\"", | ||
"monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 --condition \"Percentage CPU < 25 avg 5m\"" | ||
], | ||
"name": "Create autoscale settings to scale between 2 and 5 instances (3 as default). Email the administrator when scaling occurs." | ||
}, | ||
|
@@ -58775,7 +58775,7 @@ | |
}, | ||
{ | ||
"commands": [ | ||
"monitor autoscale update -g myrg -n autoscale-name \\ --remove-action email [email protected]" | ||
"monitor autoscale update -g myrg -n autoscale-name --remove-action email [email protected]" | ||
], | ||
"name": "Update autoscale settings to remove an email notification." | ||
}, | ||
|
2 changes: 1 addition & 1 deletion
2
...pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters