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-deploy-iot-operations.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: kgremban
6
6
ms.subservice: orchestrator
7
7
ms.topic: how-to
8
8
ms.custom: ignite-2023, devx-track-azurecli
9
-
ms.date: 05/15/2024
9
+
ms.date: 06/06/2024
10
10
11
11
#CustomerIntent: As an OT professional, I want to deploy Azure IoT Operations to a Kubernetes cluster.
12
12
---
@@ -131,22 +131,38 @@ To view your cluster on the Azure portal, use the following steps:
131
131
> [!TIP]
132
132
> You can run `az iot ops check` to assess health and configurations of deployed AIO workloads. By default, MQ including cloud connectors are assessed and you can [specifiy the service](/cli/azure/iot/ops#az-iot-ops-check-examples) with `--ops-service --svc`.
133
133
134
+
## Uninstall Azure IoT Operations
135
+
136
+
Use the [az iot ops delete](/cli/azure/iot/ops#az-iot-ops-delete) command to delete or uninstall Azure IoT Operations from a cluster. The `delete` command evaluates the Azure IoT Operations related resources on the cluster and presents a tree view of the resources to be deleted. The cluster should be online prior to running.
137
+
138
+
The `delete` command removes:
139
+
140
+
* Azure IoT Operations extensions
141
+
* Azure IoT Operations resource sync rules
142
+
* Azure IoT Operations resources
143
+
* Associated custom location
144
+
145
+
```azurecli
146
+
az iot ops delete --cluster <CLUSTER_NAME> --resource-group <RESOURCE_GROUP>
147
+
```
148
+
134
149
## Update Azure IoT Operations
135
150
136
-
Currently, there's no support for updating an existing Azure IoT Operations deployment. Instead, use the following steps to uninstall and redeploy a new version of Azure IoT Operations.
151
+
Currently, there's no support for updating an existing Azure IoT Operations deployment. Instead, uninstall and redeploy a new version of Azure IoT Operations.
137
152
138
-
1.Delete the Azure IoT Operations deployment on your cluster so that you can redeploy to it.
153
+
1.Use the [az iot ops delete](/cli/azure/iot/ops#az-iot-ops-delete) command to delete the Azure IoT Operations deployment on your cluster.
139
154
140
-
1. In the Azure portal, navigate to your cluster.
141
-
1. Select all of the extensions of the type **microsoft.iotoperations.x** and **microsoft.deviceregistry.assets**, then select **Uninstall**. Keep the secrets provider on your cluster, as that's a prerequisite for deployment and not included in a fresh deployment.
155
+
```azurecli
156
+
az iot ops delete --cluster <CLUSTER_NAME> --resource-group <RESOURCE_GROUP>
157
+
```
142
158
143
159
1. Update the CLI extension to get the latest Azure IoT Operations version.
144
160
145
-
```azurecli
146
-
az extension add --upgrade --name azure-iot-ops
147
-
```
161
+
```azurecli
162
+
az extension update --name azure-iot-ops
163
+
```
148
164
149
-
1. Follow the steps in this article to deploy Azure IoT Operations to your cluster again.
165
+
1. Follow the steps in this article to deploy the newest version of Azure IoT Operations to your cluster.
150
166
151
167
>[!TIP]
152
168
>Add the `--ensure-latest` flag to the `az iot ops init` command to check that the latest Azure IoT Operations CLI version is installed and raise an error if an upgrade is available.
Copy file name to clipboardExpand all lines: articles/iot-operations/get-started/quickstart-deploy.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,15 +144,11 @@ In this quickstart, you configured your Arc-enabled Kubernetes cluster so that i
144
144
145
145
If you're continuing on to the next quickstart, keep all of your resources.
146
146
147
-
If you want to delete the Azure IoT Operations deployment but plan on reinstalling it on your cluster, be sure to keep the secrets provider on your cluster.
147
+
If you want to delete the Azure IoT Operations deployment but want to keep your cluster, use the [az iot ops delete](/cli/azure/iot/ops#az-iot-ops-delete) command.
148
148
149
-
1. In your resource group in the Azure portal, select your cluster.
150
-
1. On your cluster resource page, select **Extensions**.
151
-
1. Select all of the extensions of type **microsoft.iotoperations.x** and **microsoft.deviceregistry.assets**, then select **Uninstall**. Don't uninstall the secrets provider extension.
152
-
153
-
:::image type="content" source="media/quickstart-deploy/uninstall-extensions.png" alt-text="Screenshot that shows the extensions to uninstall.":::
154
-
155
-
1. Return to your resource group and select the custom location resource, then select **Delete**.
149
+
```azurecli
150
+
az iot ops delete --cluster $CLUSTER_NAME --resource-group $RESOURCE_GROUP
151
+
```
156
152
157
153
If you want to delete all of the resources you created for this quickstart, delete the Kubernetes cluster where you deployed Azure IoT Operations and remove the Azure resource group that contained the cluster.
0 commit comments