Azure / Azure/azure-cli

JSON requires escaped double quotes

Open
#17,478 2 comments 0 reactions 2 assignees Claimed by @jiasli View on GitHub
act-observability-squad act-platform-engineering-squad Core feature-request Monitor
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

When using JSON as part of a CLI command, the double quotes must be escaped or an error will occur. The problem is described here: https://github.com/Azure/azure-cli/issues/17436

The documentation shows the following:

**--logs
JSON encoded list of logs settings. Use '@{file}' to load from a file.**

The request is that you make it clear that double quotes must be escaped.
--
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: b9ae3afa-74ff-12e8-a32c-c01240bd37da
* Version Independent ID: 522b7e55-2510-8e51-021a-2fc134fabfbe
* Content: [az monitor diagnostic-settings](https://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_create)
* Content Source: [latest/docs-ref-autogen/monitor/diagnostic-settings.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/monitor/diagnostic-settings.yml)
* Service: **monitoring-and-diagnostics**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.