Upgrade or downgrade between versions
Upgrade an Azure IoT Operations deployment 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 (GA) version.
Prerequisites
Azure CLI. This scenario requires Azure CLI version 2.64.0 or higher. Use
az --version
to check your version andaz upgrade
to update if necessary. For more information, see Get started with Azure CLI.The Azure IoT Operations extension for Azure CLI. Use the following command to add the extension or update it to the latest version:
az extension add --upgrade --name azure-iot-ops
Understand upgrade support
Upgrade and rollback are supported between N+3 or N-3 minor versions of Azure IoT Operations, or between any patch versions of the same minor version. The following table provides examples:
Version | Upgrade range | Downgrade range |
---|---|---|
1.0.0 | 1.0.1 through 1.3.x | None |
1.1.0 | 1.1.1 through 1.4.x | 1.0.x |
1.4.4 | 1.4.5 through 1.7.x | 1.1.x through 1.4.3 |
Upgrade
Azure IoT Operations supports upgrading instances to new GA versions as they're released.
You can't upgrade from a preview installation to a GA version. To move to version 1.0.x, uninstall Azure IoT Operations and reinstall the new version.
If your Azure IoT Operations deployment is eligible for an upgrade, the Azure portal displays an Upgrade option. If you don't see the option to upgrade, then your deployment is on the latest version.
In the Azure portal, navigate to your Azure IoT Operations instance.
Select Upgrade on the Overview page of your instance.
The portal presents the Azure CLI command to upgrade your instance, prepopulated with your subscription, resource group, and instance details. Select the copy icon next to the CLI command.
Run the copied
az iot ops upgrade
command in any environment where you have the Azure CLI installed.After the upgrade command completes successfully, refresh your instance to see the changes.
The Version value displayed on your instance's overview page reflects the version of the Azure IoT Operations instance. However, you may be prompted to upgrade if a required Arc extension has an available upgrade. You can tell that an upgrade was successful if the Upgrade option disappears from the instance overview page, even if it doesn't look like anything changed. You can check the versions of the Arc extensions for your Azure IoT Operation deployment on the Extensions page of your Arc-enabled cluster in the Azure portal.
Downgrade
The Azure portal doesn't offer a version downgrade option. Instead, use the Azure CLI.