Azure-docs: Clarify enable and disable rule for a device

Created on 31 Mar 2020  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

In the section https://docs.microsoft.com/en-us/azure/iot-central/core/tutorial-create-telemetry-rules#enable-or-disable-a-rule-for-a-device you mention "the Scopes section". This needs to be clarified better, what is Scopes?.
Also It does not seem to be possible to enable/disable a rule based on device Id?


Document Details

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

Pri2 assigned-to-author doc-bug iot-centrasvc triaged

All 6 comments

@bamajeed Thank you for your query, our team will further look into it and get back to you at the earliest.

Thanks for the feedback @bamajeed ! You are correct, I cannot also see "Scopes" when adding a new filter on my rule:

image

@dominicbetts could you please validate that this is a doc-bug and we need to remove that from here?

Also It does not seem to be possible to enable/disable a rule based on device Id?

Your device template needs to expose deviceId as a Capability type Property in order to filter it out on your rule. MXChip Template doesn't has that property for eg. Not sure about other device templates... which one are you using?

Thanks

Hi António,

Thanks for the reply. I am using the MXChip Template, but now I understand the issue.

Regards

Basim

Thanks for confirming @bamajeed . Assigning this issue to the author to fix the doc accordingly.

Hi @bamajeed - thanks for getting in touch. I've updated this article to clarify the section that talks about enabling and disabling rules for devices - the changes should be live shortly. You're quite correct that you can't use the device ID to enable or disable a rule - you have to use one of the properties defined for the device type. If you think this would be useful feature, consider making a suggestion on User Voice: https://feedback.azure.com/forums/911455-azure-iot-central

I'm going to close this issue now. Thanks.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varma31 picture varma31  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments