You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paymaun edited this page Jan 7, 2023
·
2 revisions
When you work with Azure IoT CLI commands, be aware of how your shell uses quotation marks and escapes characters.
The following examples intend to be a starting point across supported shells
For bash inline json format use '{"key" : "value"}' and \ (backslash) for command continuation:
For powershell inline json format use '{\"key\":\"value\"}' and ` (backtick) for command continuation:
For cmd inline json format use "{\"key\":\"value\"}" and ^ (caret) for command continuation:
Many IoT commands support file paths directly. File based input is useful because it avoids shell complexity. For commands that don't have file based input support, Azure CLI supports a global "@/path/to/file" syntax which reads content from file and injects it as the respective parameter argument.