Skip to content

Commit 4de079a

Browse files
Merge pull request #212147 from yanivlavi/patch-32
Corrected escaping of alerts API switch
2 parents 7d8dcc2 + 8f61b7d commit 4de079a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-monitor/alerts/alerts-log-api-switch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ armclient PUT /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>
6262
You can also use [Azure CLI](/cli/azure/reference-index#az-rest) tool:
6363

6464
```bash
65-
az rest --method put --url /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.OperationalInsights/workspaces/<workspaceName>/alertsversion?api-version=2017-04-26-preview --body '{"scheduledQueryRulesEnabled": true}'
65+
az rest --method put --url /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.OperationalInsights/workspaces/<workspaceName>/alertsversion?api-version=2017-04-26-preview --body "{\"scheduledQueryRulesEnabled\" : true}"
6666
```
6767

6868
If the switch is successful, the response is:

0 commit comments

Comments
 (0)