|
| 1 | +--- |
| 2 | +title: Upgrade or rollback |
| 3 | +description: Upgrade an Azure IoT Operations instance or rollback to a previous version. |
| 4 | +author: kgremban |
| 5 | +ms.author: kgremban |
| 6 | +ms.topic: how-to |
| 7 | +ms.custom: devx-track-azurecli |
| 8 | +ms.date: 11/11/2024 |
| 9 | + |
| 10 | +#CustomerIntent: As an OT professional, I want to manage Azure IoT Operations instances. |
| 11 | +--- |
| 12 | + |
| 13 | +# Upgrade or rollback between versions |
| 14 | + |
| 15 | +Upgrade an Azure IoT Operations instance to a newer version or rollback to a previous version. Azure IoT Operations supports upgrade and rollback from version 1.0.x onwards. There is no support for upgrading from any preview version of Azure IoT Operations to any generally available version. |
| 16 | + |
| 17 | +>[!NOTE] |
| 18 | +>Currently, Azure IoT Operations has only one generally available version. Upgrade and rollback will be available once there are additional versions to upgrade or rollback between. |
| 19 | +
|
| 20 | +## Understand upgrade support |
| 21 | + |
| 22 | +Upgrade and rollback are supported between N+2 or N-2 minor versions of Azure IoT Operations. The following table provides examples: |
| 23 | + |
| 24 | +| Current version | Upgrade range | Rollback range | |
| 25 | +| --------------- | ------------- | -------------- | |
| 26 | +| 1.0.0 | 1.0.1 through 1.2.x | None | |
| 27 | +| 1.1.0 | 1.1.1 through 1.3.x | 1.0.x | |
| 28 | + |
| 29 | +Upgrade and rollback are supported between minor versions and patches only. |
| 30 | + |
| 31 | +## Upgrade |
| 32 | + |
| 33 | +Azure IoT Operations supports upgrading instances to new versions as they're released. |
| 34 | + |
| 35 | +You can't upgrade from a preview installation to a GA version. To move to version 1.0.x, [uninstall Azure IoT Operations](howto-manage-update-uninstall.md#uninstall) and reinstall the new version. |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> There's a known issue with upgrading Azure IoT Operations if the MQTT broker only has one backend replica. Only upgrade Azure IoT Operations if the Broker has more than one backend replica. |
| 39 | +
|
| 40 | +## Upgrade between preview versions |
| 41 | + |
| 42 | +Upgrade is supported between version 0.7.x and 0.8.x. If you have a 0.7.x cluster and want to test the upgrade feature, you can do so using the 0.8.x version of the CLI extension. |
| 43 | + |
| 44 | +1. Set your CLI extension to use the **0.8.0b1** version. |
| 45 | + |
| 46 | + ```azurecli |
| 47 | + az extension add --upgrade azure-iot-ops --version 0.8.0b1 |
| 48 | + ``` |
| 49 | + |
| 50 | +1. Use the `az iot ops upgrade` command to upgrade an Azure IoT Operations deployment. This command: |
| 51 | + |
| 52 | + * Upgrades Azure Arc extensions on your cluster. |
| 53 | + * Upgrades the Azure IoT Operations instance. |
| 54 | + |
| 55 | + ```azurecli |
| 56 | + az iot ops upgrade --resource-group <RESOURCE_GROUP> --name <INSTANCE_NAME> |
| 57 | + ``` |
0 commit comments