Skip to content

Commit 25fb642

Browse files
committed
added azure cli example
1 parent ee1161e commit 25fb642

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,17 @@ You can set the configuration options in one of the following ways:
138138

139139
* **Azure portal**: Under **Settings** on your IoT hub, select **Built-in endpoints** and expand **Cloud to device messaging**. (Setting the **feedback.maxDeliveryCount** property is not currently supported in Azure portal.)
140140

141-
* **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.
141+
* **Azure CLI**: Use the `c2d-ttl`, `c2d-max-delivery-count`, `feedback-ttl`, and `feedback-max-delivery-count` parameters in the [az iot hub update](https://docs.microsoft.com/cli/azure/iot/hub?view=azure-cli-latest#az-iot-hub-update) command. For example, the following command sets the **feedback.maxDeliveryCount** property:
142142

143-
* **PowerShell**: Use the `-CloudToDevice` parameter in the [Set-AzIoTHub](https://docs.microsoft.com/powershell/module/az.iothub/set-aziothub?view=azps-3.4.0) command.
143+
```azurecli
144+
az iot hub update --name <your IoT hub name> --feedback-max-delivery-count 9
145+
```
146+
147+
* **PowerShell**: Use the `-CloudToDevice` parameter in the [Set-AzIoTHub](https://docs.microsoft.com/powershell/module/az.iothub/set-aziothub) command. For example, the following command sets the **feedback.maxDeliveryCount** property:
148+
149+
```azurepowershell
150+
151+
```
144152
145153
## Next steps
146154

0 commit comments

Comments
 (0)