Skip to content

Commit ef5e73c

Browse files
Merge pull request #28721 from lcwright/docs-editor/sql-monitoring-1696904078
Updates sql-monitoring.md with correct command
2 parents afce146 + 641f69e commit ef5e73c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/sql-server/azure-arc/sql-monitoring.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ Prior to disabling or enabling monitoring data collection, you must first enable
3939

4040
After enabling the SqlManagement feature flag, run the following command in the Azure CLI to disable monitoring data collection for your Azure Arc-enabled SQL Server. Replace the placeholders for subscription ID, resource group, and resource name:
4141

42+
4243
```azurecli
43-
az resource update --ids "/subscriptions/<sub_id>/resourceGroups/<resource_group>/providers/Microsoft.AzureArcData/SqlServerInstances/<resource_name>" -p '{"monitoring": {"enabled": false}}' --api-version 2023-09-01-preview
44+
az resource update --ids "/subscriptions/<sub_id>/resourceGroups/<resource_group>/providers/Microsoft.AzureArcData/SqlServerInstances/<resource_name>" --set 'properties.monitoring.enabled=false' --api-version 2023-09-01-preview
4445
```
4546

4647
### Enable monitoring data collection
4748

4849
To enable the monitoring data collection for an Azure Arc-enabled SQL Server, run the following command in the Azure CLI. Replace the placeholders for subscription ID, resource group, and resource name:
4950

51+
5052
```azurecli
51-
az resource update --ids "/subscriptions/<sub_id>/resourceGroups/<resource_group>/providers/Microsoft.AzureArcData/SqlServerInstances/<resource_name>" -p '{"monitoring": {"enabled": true}}' --api-version 2023-09-01-preview
53+
az resource update --ids "/subscriptions/<sub_id>/resourceGroups/<resource_group>/providers/Microsoft.AzureArcData/SqlServerInstances/<resource_name>" --set 'properties.monitoring.enabled=true' --api-version 2023-09-01-preview
5254
```
5355

5456
## Collected data
@@ -79,3 +81,4 @@ Initially, the monitoring data is:
7981
- [Azure Arc-enabled SQL Server and Databases activity logs](activity-logs.md)
8082
- [Azure Arc-enabled SQL Server data collection and reporting](data-collection.md)
8183

84+

0 commit comments

Comments
 (0)