We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug I was trying to set target condition for an edge deployment. In this case it contained a "IN" operator.
az iot edge deployment update -n my-hub --deployment-id my-deployment --set targetCondition="tags.my_tag in ['true', true]"
Above command failed with error {'Message': 'ErrorCode:InvalidConfigurationTargetCondition;BadRequest',...}
{'Message': 'ErrorCode:InvalidConfigurationTargetCondition;BadRequest',...}
I could apply same target condition from Azure Portal without issue.
Actually I couldn't find a definitive schema for target condition. "IN" operator was not mentioned in Microsoft documentation. I guessed it. Similar issue was reported here, Azure/azure-iot-sdk-csharp#908
To Reproduce
try this command against a valid iot hub and edge deployment:
Expected behavior The command should succeed.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
Hey @spinosae , thanks for submitting this issue.
When you say:
Are you sure it worked? I tried to repro the success in portal and while the initial indication appears it worked (via green check mark etc)
Upon a closer look (with the browser dev tools) shows the same service error is thrown:
Sorry, something went wrong.
To support your scenario now, you could try writing the target condition like: "tags.my_tag='true' OR tags.my_tag=true"
"tags.my_tag='true' OR tags.my_tag=true"
Closing due to inactivity. You can comment here and we can re-open if needed.
No branches or pull requests
Describe the bug
I was trying to set target condition for an edge deployment. In this case it contained a "IN" operator.
Above command failed with error
{'Message': 'ErrorCode:InvalidConfigurationTargetCondition;BadRequest',...}
I could apply same target condition from Azure Portal without issue.
Actually I couldn't find a definitive schema for target condition. "IN" operator was not mentioned in Microsoft documentation. I guessed it. Similar issue was reported here, Azure/azure-iot-sdk-csharp#908
To Reproduce
try this command against a valid iot hub and edge deployment:
Expected behavior
The command should succeed.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: