Skip to content

Commit c3bb4a3

Browse files
authored
Merge pull request #290387 from kgremban/ga-upgrade
New: upgrade/rollback
2 parents a09a6c5 + c02d0d9 commit c3bb4a3

File tree

6 files changed

+44
-41
lines changed

6 files changed

+44
-41
lines changed

articles/iot-operations/deploy-iot-ops/concept-production-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create an Arc-enabled K3s cluster that meets the system requirements.
3131
* [Configure the cluster](./howto-prepare-cluster.md) according to documentation.
3232
* If you expect intermittent connectivity for your cluster, ensure that you've allocated enough disk space to the cluster cache data and messages while the [cluster is offline](../overview-iot-operations.md#offline-support).
3333
* If possible, have a second cluster as a staging area for testing new changes before deploying to the primary production cluster.
34-
* [Turn off auto-upgrade for Azure Arc](/azure/azure-arc/kubernetes/agent-upgrade#toggle-automatic-upgrade-on-or-off-when-connecting-a-cluster-to-azure-arc) to have complete control over when new updates are applied to your cluster.
34+
* [Turn off auto-upgrade for Azure Arc](/azure/azure-arc/kubernetes/agent-upgrade#toggle-automatic-upgrade-on-or-off-when-connecting-a-cluster-to-azure-arc) to have complete control over when new updates are applied to your cluster. Instead, [manually upgrade agents](/azure/azure-arc/kubernetes/agent-upgrade#manually-upgrade-agents) as needed.
3535
* *For multi-node clusters*: [Configure clusters with Edge Volumes](./howto-prepare-cluster.md#configure-multi-node-clusters-for-azure-container-storage) to prepare for enabling fault tolerance during deployment.
3636

3737
### Security
@@ -64,7 +64,7 @@ In the Azure portal deployment wizard, the broker resource is set up in the **Co
6464

6565
| Setting | Single node | Multi node |
6666
| ------- | ----------- | ---------- |
67-
| **frontendReplicas** | 2 | 5 |
67+
| **frontendReplicas** | 1 | 5 |
6868
| **frontendWorkers** | 4 | 8 |
6969
| **backendRedundancyFactor** | 2 | 2 |
7070
| **backendWorkers** | 1 | 4 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ A cluster host:
4848

4949
* Have an Azure Arc-enabled Kubernetes cluster with the custom location and workload identity features enabled. If you don't have one, follow the steps in [Prepare your Azure Arc-enabled Kubernetes cluster](./howto-prepare-cluster.md).
5050

51-
If you deployed Azure IoT Operations to your cluster previously, uninstall those resources before continuing. For more information, see [Update Azure IoT Operations](./howto-manage-update-uninstall.md#upgrade).
51+
If you deployed Azure IoT Operations to your cluster previously, uninstall those resources before continuing. For more information, see [Update Azure IoT Operations](./howto-manage-update-uninstall.md#uninstall).
5252

5353
* (Optional) Prepare your cluster for observability before deploying Azure IoT Operations: [Configure observability](../configure-observability-monitoring/howto-configure-observability.md).
5454

articles/iot-operations/deploy-iot-ops/howto-manage-update-uninstall.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -186,39 +186,3 @@ az iot ops delete --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --inc
186186
```
187187

188188
---
189-
190-
## Upgrade
191-
192-
Azure IoT Operations supports upgrading instances to new versions as they're released.
193-
194-
You can't upgrade from a preview installation to a GA version.
195-
196-
> [!NOTE]
197-
> 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.
198-
199-
### [Azure portal](#tab/portal)
200-
201-
1. In the [Azure portal](https://portal.azure.com), go to the resource group that contains your Azure IoT Operations instance, or search for and select **Azure IoT Operations**.
202-
203-
1. Select the name of your Azure IoT Operations instance.
204-
205-
1. On the **Overview** page of your instance, select **Upgrade**.
206-
207-
1. The **Upgrade Azure IoT Operations** wizard prompts you to make sure you have the latest version for the Azure IoT Operations CLI extension. Copy and run the provided `az extension add` command.
208-
209-
1. Update to the latest version of Azure IoT Operations instance. Copy and run the provided `az iot ops upgrade` command.
210-
211-
1. Once the upgrade command completes successfully, you can exit the wizard and refresh your instance page.
212-
213-
### [Azure CLI](#tab/cli)
214-
215-
Use the `az iot ops upgrade` command to upgrade an Azure IoT Operations deployment. This command:
216-
217-
* Upgrades Azure Arc extensions on your cluster.
218-
* Upgrades the Azure IoT Operations instance.
219-
220-
```azurecli
221-
az iot ops upgrade --resource-group <RESOURCE_GROUP> --name <INSTANCE_NAME>
222-
```
223-
224-
---

articles/iot-operations/deploy-iot-ops/howto-prepare-cluster.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,11 @@ Connect your cluster to Azure Arc so that it can be managed remotely.
161161
1. Use the [az connectedk8s connect](/cli/azure/connectedk8s#az-connectedk8s-connect) command to Arc-enable your Kubernetes cluster and manage it as part of your Azure resource group.
162162

163163
```azurecli
164-
az connectedk8s connect --name <CLUSTER_NAME> -l <REGION> --resource-group <RESOURCE_GROUP> --subscription <SUBSCRIPTION_ID> --enable-oidc-issuer --enable-workload-identity
164+
az connectedk8s connect --name <CLUSTER_NAME> -l <REGION> --resource-group <RESOURCE_GROUP> --subscription <SUBSCRIPTION_ID> --enable-oidc-issuer --enable-workload-identity --disable-auto-upgrade
165165
```
166166

167+
To prevent unplanned updates to Azure Arc and the system Arc extensions that Azure IoT Operations uses as dependencies, this command disables auto-upgrade. Instead, [manually upgrade agents](/azure/azure-arc/kubernetes/agent-upgrade#manually-upgrade-agents) as needed.
168+
167169
1. Get the cluster's issuer URL.
168170

169171
```azurecli
@@ -216,7 +218,9 @@ For instructions on running the script, see [Configure an AKS Edge Essentials cl
216218

217219
### [AKS on Azure Local](#tab/azure-local)
218220

219-
For instructions on creating and Arc-enabling a cluster on Azure Local, see [Create Kubernetes clusters using Azure CLI](/azure/aks/hybrid/aks-create-clusters-cli).
221+
For instructions on creating and Arc-enabling an AKS cluster on Azure Local, see [Create Kubernetes clusters using Azure CLI](/azure/aks/hybrid/aks-create-clusters-cli).
222+
223+
Then, once you have an Azure Arc-enabled Kubernetes cluster, you can [deploy Azure IoT Operations](howto-deploy-iot-operations.md).
220224

221225
---
222226

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 (GA) 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, or between any patch versions of the same minor version. 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
30+
31+
Azure IoT Operations supports upgrading instances to new GA versions as they're released.
32+
33+
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.

articles/iot-operations/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ 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
27+
href: deploy-iot-ops/howto-upgrade.md
2628
- name: Enable secure settings
2729
href: deploy-iot-ops/howto-enable-secure-settings.md
2830
- name: Production deployment guidelines

0 commit comments

Comments
 (0)