Skip to content

Commit a585577

Browse files
Adding note about deletion of dependencies
1 parent 14e12a9 commit a585577

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ However, you can also manage the components of Azure IoT Operations using YAML K
147147

148148
The Azure CLI and Azure portal offer different options for uninstalling Azure IoT Operations.
149149

150-
The Azure portal steps can delete an Azure IoT Operations instance, but can't affect the related resources in the deployment. If you want to delete the entire deployment, use the Azure CLI.
150+
> [!IMPORTANT]
151+
> If you want to clean up your cluster and resource group, it's recommended to first remove Azure IoT Operations from the cluster using the Azure CLI commands in the following section. Then, you can delete the resource group. Deleting the resource group directly may leave orphaned resources on the cluster.
152+
151153

152154
### [Azure portal](#tab/portal)
153155

@@ -161,6 +163,9 @@ The Azure portal steps can delete an Azure IoT Operations instance, but can't af
161163

162164
:::image type="content" source="./media/howto-deploy-iot-operations/delete-instance.png" alt-text="A screenshot that shows deleting an Azure IoT Operations instance in the Azure portal.":::
163165

166+
> [!NOTE]
167+
> Deleting the Azure IoT Operations instance in the Azure portal may not remove the dependencies that were created when you deployed Azure IoT Operations. To remove these dependencies, use the `az iot ops delete --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --include-deps` command described in the Azure CLI procedure.
168+
164169
### [Azure CLI](#tab/cli)
165170

166171
Use the [az iot ops delete](/cli/azure/iot/ops#az-iot-ops-delete) command to delete the entire Azure IoT Operations deployment 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 when you run this command.

0 commit comments

Comments
 (0)