Azure / Azure/azure-cli

Azure IoT deployment configuration

Open
#13,729 3 comments 0 reactions 0 assignees View on GitHub
act-observability-squad customer-reported IoT IotHub question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.3.1

**Describe the bug**
Azure IoT Edge Device deployment configuration has below entries:

"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.0",

acording to your [manual](https://docs.microsoft.com/en-gb/cli/azure/ext/azure-iot/iot/edge/deployment?view=azure-cli-latest#ext-azure-iot-az-iot-edge-deployment-update) dot char is a delimiter for json keys
_--set
Update an object by specifying a property path and value to set. Example: --set property1**.**property2=._
so it seems not possible to update any variable under _**properties.desired**_ key

**To Reproduce**
deploy any module to the IoT Edge Device and try to update version of docker (bash) e.g.

az iot edge deployment update -d DEPLOYMENT_NAME -n HUB_MODULE --set "content.modulesContent.\$edgeAgent.**properties.desired**.MODULE.settings.image"="DOCKER_REGISTRY_ADDRESS/DOCKER_NAME:NEW_VERSION"

**Expected behavior**
please provide one of listed solutions
* please correct my command line and shows how to escape **.** char in **properties.desired** or how to workaround this
* fix an issue
* if you think that azure portal team is responsible for this issue then please redirect it to them.

**Environment summary**

**Additional context**

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.