You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-operations/deploy-iot-ops/howto-upgrade.md
+34-11Lines changed: 34 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: kgremban
5
5
ms.author: kgremban
6
6
ms.topic: how-to
7
7
ms.custom: devx-track-azurecli
8
-
ms.date: 02/13/2025
8
+
ms.date: 02/14/2025
9
9
10
10
#CustomerIntent: As an OT professional, I want to manage Azure IoT Operations instances.
11
11
---
@@ -41,13 +41,26 @@ You can't upgrade from a preview installation to a GA version. To move to versio
41
41
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.
42
42
43
43
1. In the [Azure portal](https://portal.azure.com), navigate to your Azure IoT Operations instance.
44
+
44
45
1. Select **Upgrade** on the **Overview** page of your instance.
45
46
46
47
:::image type="content" source="./media/howto-upgrade/instance-upgrade.png" alt-text="Screenshot that shows the upgrade button enabled in the Azure portal.":::
47
48
49
+
1. You need to use the latest version of the Azure IoT Operations CLI extension to get the latest version of Azure IoT Operations. If you didn't update the extension as part of the prerequisites, do so now.
50
+
51
+
```azurecli
52
+
az extension add --upgrade --name azure-iot-ops
53
+
```
54
+
55
+
Or, if you want to upgrade your deployment to a newer version but not the latest, set the CLI extension version to the one associated with your desired Azure IoT Operations versions in [IoT Operations versions](https://aka.ms/aio-versions).
56
+
57
+
```azurecli
58
+
az extension add --upgrade --name azure-iot-ops --version <VERSION_NUMBER>
59
+
```
60
+
48
61
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.
49
62
50
-
1. Run the copied `az iot ops upgrade` command in any environment where you have the Azure CLI installed.
63
+
1. Run the copied `az iot ops upgrade` command.
51
64
52
65
1. After the upgrade command completes successfully, refresh your instance to see the changes.
53
66
@@ -59,19 +72,29 @@ Use the [az iot ops upgrade](/cli/azure/iot/ops#az-iot-ops-upgrade) command to u
59
72
60
73
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.
61
74
62
-
```azurecli
63
-
az iot ops upgrade --resource-group <RESOURCE_GROUP_NAME> --name <INSTANCE_NAME>
64
-
```
75
+
Use the following steps to upgrade your deployment to the latest version:
76
+
77
+
1. You need to use the latest version of the Azure IoT Operations CLI extension to get the latest version of Azure IoT Operations. If you didn't update the extension as part of the prerequisites, do so now.
78
+
79
+
```azurecli
80
+
az extension add --upgrade --name azure-iot-ops
81
+
```
82
+
83
+
1. Run `az iot ops upgrade`
84
+
85
+
```azurecli
86
+
az iot ops upgrade --resource-group <RESOURCE_GROUP_NAME> --name <INSTANCE_NAME>
87
+
```
65
88
66
-
The CLI outputs a table of the components, if any, that have available upgrades. Enter `Y` to continue with the upgrade.
89
+
1.The CLI outputs a table of the components that have available upgrades. Enter `Y` to continue with the upgrade.
67
90
68
-
To upgrade to a specific version of a component, specify the version number in the parameters. For example:
91
+
If you want to upgrade to a specific version of Azure IoT Operations that isn't the latest, use the related CLI extension version. Each version of Azure IoT Operations maps to a version of the Azure IoT Operations CLI extension.
69
92
70
-
```azurecli
71
-
az iot ops upgrade --resource-group <RESOURCE_GROUP_NAME> --name <INSTANCE_NAME> --acs-version 2.2.3
72
-
```
93
+
Refer to [IoT Operations versions](https://aka.ms/aio-versions) to find the CLI extension version associated with the Azure IoT Operations version that you want. Then, upgrade the CLI extension:
73
94
74
-
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
+
```azurecli
96
+
az extension add --upgrade --name azure-iot-ops --version <VERSION_NUMBER>
0 commit comments