From 44cfab3ac009fdef5f9497df3c76f2456c097eb6 Mon Sep 17 00:00:00 2001 From: wttat Date: Tue, 24 Mar 2026 03:17:16 +0000 Subject: [PATCH] docs: add PowerShell tab for az resource patch command in change streams The existing az resource patch command uses Bash-style JSON escaping which fails in PowerShell. Added a tabbed section with both Bash and PowerShell variants so users on either shell can copy-paste correctly. --- articles/documentdb/change-streams.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/articles/documentdb/change-streams.md b/articles/documentdb/change-streams.md index 57653e64d1..f41e663ad1 100644 --- a/articles/documentdb/change-streams.md +++ b/articles/documentdb/change-streams.md @@ -38,10 +38,20 @@ az resource show --ids "/subscriptions//resourceGroups//resourceGroups//providers/Microsoft.DocumentDB/mongoClusters/" --api-version 2024-10-01-preview --properties "{\"previewFeatures\": [ \"ChangeStreams\"]}" ``` +# [PowerShell](#tab/powershell) + +```powershell +az resource patch --ids "/subscriptions//resourceGroups//providers/Microsoft.DocumentDB/mongoClusters/" --api-version 2024-10-01-preview --properties '{\"previewFeatures\": [\"ChangeStreams\"]}' +``` + +--- + 4. Verify result: - Ensure the response payload includes `"previewFeatures": ["ChangeStreams"]`. - If you encounter the error "change streams isn't supported on this cluster," please create a support request.