Skip to content

Commit fc160e7

Browse files
authored
Update alerts-log-api-switch.md
incorrect verb used for REST request.
1 parent 354cfce commit fc160e7

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
@@ -60,7 +60,7 @@ armclient PUT /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>
6060
You can also use [Azure CLI](/cli/azure/reference-index#az-rest) tool:
6161

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

6666
If the switch is successful, the response is:

0 commit comments

Comments
 (0)