Skip to content

Commit 28eec27

Browse files
adding clone feature
1 parent bf1d0e1 commit 28eec27

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

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

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: SoniaLopezBravo
55
ms.author: sonialopez
66
ms.topic: how-to
77
ms.custom: devx-track-azurecli
8-
ms.date: 04/08/2025
8+
ms.date: 05/20/2025
99

1010
#CustomerIntent: As an OT professional, I want to manage Azure IoT Operations instances.
1111
---
@@ -107,6 +107,45 @@ You can run `az iot ops check` on your cluster to assess health and configuratio
107107

108108
---
109109

110+
### (Preview) Clone instance
111+
112+
> [!NOTE]
113+
> The clone feature is in preview and under development.
114+
115+
#### [Azure portal](#tab/portal)
116+
117+
Currently, the Azure portal doesn't support cloning an Azure IoT Operations instance. You can use the Azure CLI to clone an instance.
118+
119+
#### [Azure CLI](#tab/cli)
120+
121+
Use the [`az iot ops clone`](/cli/azure/iot/ops#az-iot-ops-clone) command to create a new Azure IoT Operations instance based on an existing one. You can apply the output of clone to another connected cluster (referred to as replication), and/or saved locally to use it later.
122+
123+
To clone an instance to another cluster, run:
124+
125+
```azurecli
126+
az iot ops clone --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --to-cluster-id <CLUSTER_ID>
127+
```
128+
129+
To customize the replication to another cluster, use `--param` and specify the parameters you want to change in the format `key=value`. For example, to change the location of the cloned instance, run:
130+
131+
```azurecli
132+
az iot ops clone --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --to-cluster-id <CLUSTER_ID> --param location=eastus
133+
```
134+
135+
To clone an instance to a local directory, run:
136+
137+
```azurecli
138+
az iot ops clone --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --to-dir
139+
```
140+
141+
To clone an instance to a cluster, but splitting and serially applying asset related sub-deployments, run:
142+
143+
```azurecli
144+
az iot ops clone --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP> --to-cluster-id <CLUSTER_ID> --mode linked
145+
```
146+
147+
---
148+
110149
### Update instances and configuration
111150

112151
#### [Azure portal](#tab/portal2)
@@ -119,7 +158,7 @@ You can run `az iot ops check` on your cluster to assess health and configuratio
119158

120159
#### [Azure CLI](#tab/cli2)
121160

122-
Use the `az iot ops update` command to edit the features of your Azure IoT Operations instance.
161+
Use the [az iot ops update](https://learn.microsoft.com/en-us/cli/azure/iot/ops?view=azure-cli-latest#az-iot-ops-update) command to edit the features of your Azure IoT Operations instance.
123162

124163
To update tags and description parameters of an instance, run:
125164

0 commit comments

Comments
 (0)