Skip to content

Commit 6ef5d63

Browse files
authored
Merge pull request #104336 from JimacoMS3/gh-issue-44858-builtin-endpoint-settings
added info about changing c2d configuration options
2 parents d7b0b2c + 7902c31 commit 6ef5d63

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

articles/iot-hub/iot-hub-devguide-messages-c2d.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,33 @@ Each IoT hub exposes the following configuration options for cloud-to-device mes
132132
| defaultTtlAsIso8601 | Default TTL for cloud-to-device messages | ISO_8601 interval up to 2 days (minimum 1 minute); default: 1 hour |
133133
| maxDeliveryCount | Maximum delivery count for cloud-to-device per-device queues | 1 to 100; default: 10 |
134134
| feedback.ttlAsIso8601 | Retention for service-bound feedback messages | ISO_8601 interval up to 2 days (minimum 1 minute); default: 1 hour |
135-
| feedback.maxDeliveryCount | Maximum delivery count for the feedback queue | 1 to 100; default: 100 |
135+
| feedback.maxDeliveryCount | Maximum delivery count for the feedback queue | 1 to 100; default: 10 |
136+
| feedback.lockDurationAsIso8601 | Maximum delivery count for the feedback queue | ISO_8601 interval from 5 to 300 seconds (minimum 5 seconds); default: 60 seconds. |
136137

137-
For more information about how to set these configuration options, see [Create IoT hubs](iot-hub-create-through-portal.md).
138+
You can set the configuration options in one of the following ways:
139+
140+
* **Azure portal**: Under **Settings** on your IoT hub, select **Built-in endpoints** and expand **Cloud to device messaging**. (Setting the **feedback.maxDeliveryCount** and **feedback.lockDurationAsIso8601** properties is not currently supported in Azure portal.)
141+
142+
![Set configuration options for cloud-to-device messaging in the portal](./media/iot-hub-devguide-messages-c2d/c2d-configuration-portal.png)
143+
144+
* **Azure CLI**: Use the [az iot hub update](https://docs.microsoft.com/cli/azure/iot/hub?view=azure-cli-latest#az-iot-hub-update) command:
145+
146+
```azurecli
147+
az iot hub update --name {your IoT hub name} \
148+
--set properties.cloudToDevice.defaultTtlAsIso8601=PT1H0M0S
149+
150+
az iot hub update --name {your IoT hub name} \
151+
--set properties.cloudToDevice.maxDeliveryCount=10
152+
153+
az iot hub update --name {your IoT hub name} \
154+
--set properties.cloudToDevice.feedback.ttlAsIso8601=PT1H0M0S
155+
156+
az iot hub update --name {your IoT hub name} \
157+
--set properties.cloudToDevice.feedback.maxDeliveryCount=10
158+
159+
az iot hub update --name {your IoT hub name} \
160+
--set properties.cloudToDevice.feedback.lockDurationAsIso8601=PT0H1M0S
161+
```
138162
139163
## Next steps
140164
34.6 KB
Loading

0 commit comments

Comments
 (0)