Skip to content

Commit 7d9ceb3

Browse files
authored
Merge pull request #293872 from kgremban/jan30-opsupgrade
Add upgrade/downgrade steps for IoT Ops
2 parents 945562c + 401ef50 commit 7d9ceb3

File tree

5 files changed

+79
-14
lines changed

5 files changed

+79
-14
lines changed

articles/iot-operations/deploy-iot-ops/howto-upgrade.md

Lines changed: 73 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,92 @@ author: kgremban
55
ms.author: kgremban
66
ms.topic: how-to
77
ms.custom: devx-track-azurecli
8-
ms.date: 11/11/2024
8+
ms.date: 01/31/2025
99

1010
#CustomerIntent: As an OT professional, I want to manage Azure IoT Operations instances.
1111
---
1212

13-
# Upgrade or rollback between versions
13+
# Upgrade or downgrade between versions
1414

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 (GA) version.
15+
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.
1616

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.
17+
## Prerequisites
18+
19+
* Azure CLI. This scenario requires Azure CLI version 2.64.0 or higher. Use `az --version` to check your version and `az upgrade` to update if necessary. For more information, see [Get started with Azure CLI](/cli/azure/get-started-with-azure-cli).
20+
21+
* The Azure IoT Operations extension for Azure CLI. Use the following command to add the extension or update it to the latest version:
22+
23+
```azurecli
24+
az extension add --upgrade --name azure-iot-ops
25+
```
1926

2027
## Understand upgrade support
2128

22-
Upgrade and rollback are supported between N+2 or N-2 minor versions of Azure IoT Operations, or between any patch versions of the same minor version. The following table provides examples:
29+
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:
2330

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 |
31+
| Version | Upgrade range | Downgrade range |
32+
| ------- | ------------- | --------------- |
33+
| 1.0.0 | 1.0.1 through 1.3.x | None |
34+
| 1.1.0 | 1.1.1 through 1.4.x | 1.0.x |
35+
| 1.4.4 | 1.4.5 through 1.7.x | 1.1.x through 1.4.3 |
2836

2937
## Upgrade
3038

3139
Azure IoT Operations supports upgrading instances to new GA versions as they're released.
3240

3341
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.
42+
43+
### [Azure portal](#tab/portal)
44+
45+
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.
46+
47+
1. In the [Azure portal](https://portal.azure.com), navigate to your Azure IoT Operations instance.
48+
1. Select **Upgrade** on the **Overview** page of your instance.
49+
50+
:::image type="content" source="./media/howto-upgrade/instance-upgrade.png" alt-text="Screenshot that shows the upgrade button enabled in the Azure portal.":::
51+
52+
1. 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.
53+
54+
1. Run the copied `az iot ops upgrade` command in any environment where you have the Azure CLI installed.
55+
56+
1. After the upgrade command completes successfully, refresh your instance to see the changes.
57+
58+
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.
59+
60+
### [Azure CLI](#tab/cli)
61+
62+
Use the [az iot ops upgrade](/cli/azure/iot/ops#az-iot-ops-upgrade) command to upgrade an existing Azure IoT Operations deployment to a newer version.
63+
64+
The upgrade command evaluates the entire Azure IoT Operations deployment for available updates, including the arc extensions that are installed in the `az iot ops init` command as well as the Azure IoT Operations instance.
65+
66+
```azurecli
67+
az iot ops upgrade --resource-group <RESOURCE_GROUP_NAME> --name <INSTANCE_NAME>
68+
```
69+
70+
The CLI outputs a table of the components, if any, that have available upgrades. Enter `Y` to continue with the upgrade.
71+
72+
To upgrade to a specific version of a component, specify the version number in the parameters. For example:
73+
74+
```azurecli
75+
az iot ops upgrade --resource-group <RESOURCE_GROUP_NAME> --name <INSTANCE_NAME> --acs-version 2.2.3
76+
```
77+
78+
You can find the supported component versions and release train information in the **azure-iot-operations-enablement.json** file included in any given [Azure IoT Operations release](https://github.com/Azure/azure-iot-operations/releases).
79+
80+
---
81+
82+
## Downgrade
83+
84+
### [Azure portal](#tab/portal)
85+
86+
The Azure portal doesn't offer a version downgrade option. Instead, use the Azure CLI.
87+
88+
### [Azure CLI](#tab/cli)
89+
90+
Use the [az iot ops upgrade](/cli/azure/iot/ops#az-iot-ops-upgrade) command to roll back an existing Azure IoT Operations instance to a previous version.
91+
92+
In the upgrade command, you can specify a component version up to three minor versions older that the latest.
93+
94+
You can find the supported component versions and release train information in the **azure-iot-operations-enablement.json** file included in any given [Azure IoT Operations release](https://github.com/Azure/azure-iot-operations/releases).
95+
96+
---
57.4 KB
Loading

articles/iot-operations/get-started-end-to-end-sample/quickstart-deploy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: kgremban
55
ms.author: kgremban
66
ms.topic: quickstart
77
ms.custom: ignite-2023, devx-track-azurecli
8-
ms.date: 10/22/2024
8+
ms.date: 01/30/2025
99

1010
#CustomerIntent: As a < type of user >, I want < what? > so that < why? >.
1111
---
@@ -166,8 +166,8 @@ Run the following CLI commands in your Codespaces terminal.
166166
| Placeholder | Value |
167167
| ----------- | ----- |
168168
| <STORAGE_ACCOUNT_NAME> | A name for your storage account. Storage account names must be between 3 and 24 characters in length and only contain numbers and lowercase letters. |
169-
| <SCHEMA_REGISTRY_NAME> | A name for your schema registry. |
170-
| <SCHEMA_REGISTRY_NAMESPACE> | A name for your schema registry namespace. The namespace uniquely identifies a schema registry within a tenant. |
169+
| <SCHEMA_REGISTRY_NAME> | A name for your schema registry. Schema registry names can only contain numbers, lowercase letters, and hyphens. |
170+
| <SCHEMA_REGISTRY_NAMESPACE> | A name for your schema registry namespace. The namespace uniquely identifies a schema registry within a tenant. Schema registry namespace names can only contain numbers, lowercase letters, and hyphens. |
171171

172172
```azurecli
173173
STORAGE_ACCOUNT=<STORAGE_ACCOUNT_NAME>

articles/iot-operations/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ items:
2323
href: deploy-iot-ops/howto-deploy-iot-operations.md
2424
- name: Manage, update, or uninstall
2525
href: deploy-iot-ops/howto-manage-update-uninstall.md
26-
- name: Upgrade or rollback versions
26+
- name: Upgrade versions
2727
href: deploy-iot-ops/howto-upgrade.md
2828
- name: Enable secure settings
2929
href: deploy-iot-ops/howto-enable-secure-settings.md

articles/iot-operations/troubleshoot/known-issues.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ This article lists the known issues for Azure IoT Operations.
2727

2828
- If you deploy Azure IoT Operations in GitHub Codespaces, shutting down and restarting the Codespace causes a `This codespace is currently running in recovery mode due to a configuration error.` issue. Currently, there's no workaround for the issue. If you need a cluster that supports shutting down and restarting, choose one of the options in [Prepare your Azure Arc-enabled Kubernetes cluster](../deploy-iot-ops/howto-prepare-cluster.md).
2929

30+
- Downgrading the Azure Container Storage extension from 2.2.3 to 2.2.2 causes a logging loop that leads to high CPU usage warnings. To resolve, upgrade the extension back to 2.2.3. For more information, see [Upgrade or downgrade between versions](../deploy-iot-ops/howto-upgrade.md).
31+
3032
## MQTT broker
3133

3234
- MQTT broker resources created in your cluster using Kubernetes aren't visible Azure portal. This is expected because [managing Azure IoT Operations components using Kubernetes is in preview](../deploy-iot-ops/howto-manage-update-uninstall.md#preview-manage-components-using-kubernetes-deployment-manifests), and synchronizing resources from the edge to the cloud isn't currently supported.

0 commit comments

Comments
 (0)