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
+16-21Lines changed: 16 additions & 21 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: 12/06/2023
9
+
ms.date: 01/31/2024
10
10
11
11
#CustomerIntent: As an OT professional, I want to deploy Azure IoT Operations to a Kubernetes cluster.
12
12
---
@@ -19,16 +19,22 @@ Deploy Azure IoT Operations preview - enabled by Azure Arc to a Kubernetes clust
19
19
20
20
* An Azure subscription. If you don't have an Azure subscription, [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
21
21
22
+
* Azure CLI installed on your development machine. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli). This scenario requires Azure CLI version 2.42.0 or higher. Use `az --version` to check your version and `az upgrade` to update if necessary.
23
+
24
+
* The Azure IoT Operations extension for Azure CLI. Use the following command to add the extension or update it to the latest version:
25
+
26
+
```bash
27
+
az extension add --upgrade --name azure-iot-ops
28
+
```
29
+
22
30
* An Azure Arc-enabled Kubernetes cluster. If you don't have one, follow the steps in [Prepare your Azure Arc-enabled Kubernetes cluster](./howto-prepare-cluster.md?tabs=wsl-ubuntu). Using Ubuntu in Windows Subsystem for Linux (WSL) is the simplest way to get a Kubernetes cluster for testing.
23
31
24
32
Azure IoT Operations should work on any CNCF-conformant kubernetes cluster. Currently, Microsoft only supports K3s on Ubuntu Linux and WSL, or AKS Edge Essentials on Windows.
25
33
26
-
* Azure CLI installed on your development machine. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli). This scenario requires Azure CLI version 2.42.0 or higher. Use `az --version` to check your version and `az upgrade` to update if necessary.
27
-
28
-
* The Azure IoT Operations extension for Azure CLI.
34
+
Use the Azure IoT Operations extension for Azure CLI to verify that your cluster host is configured correctly for deployment by using the [verify-host](/cli/azure/iot/ops#az-iot-ops-verify-host) command on the cluster host:
29
35
30
-
```bash
31
-
az extension add --name azure-iot-ops
36
+
```azurecli
37
+
az iot ops verify-host
32
38
```
33
39
34
40
* An [Azure Key Vault](../../key-vault/general/overview.md) that has the **Permission model** set to **Vault access policy**. You can check this setting in the **Access configuration** section of an existing key vault.
@@ -41,11 +47,11 @@ Use the Azure portal to deploy Azure IoT Operations components to your Arc-enabl
41
47
42
48
1. In the Azure portal search bar, search for and select **Azure Arc**.
43
49
44
-
1. Select **Azure IoT Operations (preview)** from the **Application services** section of the Azure Arc menu.
50
+
1. Select **Azure IoT Operations (preview)** from the **Application Services** section of the Azure Arc menu.
45
51
46
52
1. Select **Create**.
47
53
48
-
1. On the **Basics** tab of the **Install Azure IoT Operations Arc Extension** page, provide the following information:
54
+
1. On the **Basic** tab of the **Install Azure IoT Operations Arc Extension** page, provide the following information:
49
55
50
56
| Field | Value |
51
57
| ----- | ----- |
@@ -71,14 +77,9 @@ Use the Azure portal to deploy Azure IoT Operations components to your Arc-enabl
71
77
|**Subscription**| Select the subscription that contains your Arc-enabled Kubernetes cluster. |
72
78
|**Azure Key vault**| Choose an existing key vault from the drop-down list or create a new one by selecting **Create new**. |
73
79
74
-
1. On the **Automation** tab, the automation commands are populated based on your chosen cluster and key vault. Select an automation option:
75
-
76
-
***Azure CLI enablement + UI deployment -- Visually guided configuration**: Generates an Azure CLI command that configures your cluster. If you choose this option, you'll return to the Azure portal to complete the Azure IoT Operations deployment.
77
-
***Azure CLI deployment -- Efficiency unleashed**: Generates an Azure CLI command that configures your cluster and also deploys Azure IoT Operations.
78
-
79
-
1. After choosing your automation option, copy the generated CLI command.
80
+
1. Once you select a key vault, the **Automation** tab uses all the information you've selected so far to populate an Azure CLI command that configures your cluster and deploys Azure IoT Operations. Copy the CLI command.
80
81
81
-
<!--:::image type="content" source="../get-started/media/quickstart-deploy/install-extension-automation.png" alt-text="Screenshot of copying the CLI command from the automation tab for installing the Azure IoT Operations Arc extension in the Azure portal.":::-->
82
+
:::image type="content" source="../get-started/media/quickstart-deploy/install-extension-automation.png" alt-text="Screenshot of copying the CLI command from the automation tab for installing the Azure IoT Operations Arc extension in the Azure portal.":::
82
83
83
84
1. Sign in to Azure CLI on your development machine. To prevent potential permission issues later, sign in interactively with a browser here even if you've already logged in before.
84
85
@@ -96,12 +97,6 @@ Use the Azure portal to deploy Azure IoT Operations components to your Arc-enabl
96
97
97
98
Wait for the command to complete.
98
99
99
-
If you copied the **Azure CLI deployment** CLI command, then you're done with the cluster configuration and deployment.
100
-
101
-
1. If you copied the **Azure CLI enablement + UI deployment** CLI command, return to the Azure portal and select **Review + Create**.
102
-
103
-
1. Wait for the validation to pass and then select **Create**.
104
-
105
100
#### [Azure CLI](#tab/cli)
106
101
107
102
Use the Azure CLI to deploy Azure IoT Operations components to your Arc-enabled Kubernetes cluster.
To verify that your cluster is ready for Azure IoT Operations deployment, you can use the [verify-host](/cli/azure/iot/ops#az-iot-ops-verify-host) helper command in the Azure IoT Operations extension for Azure CLI. When run on the cluster host, this helper command checks connectivity to Azure Resource Manager and Microsoft Container Registry endpoints. If the cluster has an Ubuntu OS, it checks if `nfs-common` is installed, and if not give you the option to install on your behalf.
180
+
181
+
```azurecli
182
+
az iot ops verify-host
183
+
```
184
+
179
185
## Next steps
180
186
181
187
Now that you have an Azure Arc-enabled Kubernetes cluster, you can [deploy Azure IoT Operations](../deploy-iot-ops/howto-deploy-iot-operations.md).
Copy file name to clipboardExpand all lines: articles/iot-operations/get-started/quickstart-deploy.md
+20-19Lines changed: 20 additions & 19 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: quickstart
8
8
ms.custom: ignite-2023, devx-track-azurecli
9
-
ms.date: 12/06/2023
9
+
ms.date: 01/31/2024
10
10
11
11
#CustomerIntent: As a < type of user >, I want < what? > so that < why? >.
12
12
---
@@ -52,10 +52,10 @@ For this quickstart, we recommend GitHub Codespaces as a quick way to get starte
52
52
53
53
This quickstart requires Azure CLI version 2.42.0 or higher. Use `az --version` to check your version and `az upgrade` to update if necessary.
54
54
55
-
* The Azure IoT Operations extension for Azure CLI.
55
+
* The Azure IoT Operations extension for Azure CLI. Use the following command to add the extension or update it to the latest version:
56
56
57
-
```powershell
58
-
az extension add --name azure-iot-ops
57
+
```bash
58
+
az extension add --upgrade --name azure-iot-ops
59
59
```
60
60
61
61
# [Linux](#tab/linux)
@@ -66,10 +66,10 @@ For this quickstart, we recommend GitHub Codespaces as a quick way to get starte
66
66
67
67
This quickstart requires Azure CLI version 2.42.0 or higher. Use `az --version` to check your version and `az upgrade` to update if necessary.
68
68
69
-
* The Azure IoT Operations extension for Azure CLI.
69
+
* The Azure IoT Operations extension for Azure CLI. Use the following command to add the extension or update it to the latest version:
70
70
71
71
```bash
72
-
az extension add --name azure-iot-ops
72
+
az extension add --upgrade --name azure-iot-ops
73
73
```
74
74
75
75
---
@@ -200,6 +200,16 @@ On Ubuntu Linux, use K3s to create a Kubernetes cluster.
200
200
201
201
---
202
202
203
+
## Verify cluster
204
+
205
+
Use the Azure IoT Operations extension for Azure CLI to verify that your cluster host is configured correctly for deployment by using the [verify-host](/cli/azure/iot/ops#az-iot-ops-verify-host) command on the cluster host:
206
+
207
+
```azurecli
208
+
az iot ops verify-host
209
+
```
210
+
211
+
This helper command checks connectivity to Azure Resource Manager and Microsoft Container Registry endpoints. If the cluster has an Ubuntu OS, it checks if `nfs-common` is installed, and if not give you the option to install on your behalf.
212
+
203
213
## Configure cluster and deploy Azure IoT Operations
204
214
205
215
Part of the deployment process is to configure your cluster so that it can communicate securely with your Azure IoT Operations components and key vault. The Azure CLI command `az iot ops init` does this for you. Once your cluster is configured, then you can deploy Azure IoT Operations.
@@ -220,13 +230,13 @@ az keyvault create --enable-rbac-authorization false --name "<your unique key va
220
230
221
231
1. In the Azure portal search bar, search for and select **Azure Arc**.
222
232
223
-
1. Select **Azure IoT Operations (preview)** from the **Application services** section of the Azure Arc menu.
233
+
1. Select **Azure IoT Operations (preview)** from the **Application Services** section of the Azure Arc menu.
224
234
225
235
:::image type="content" source="./media/quickstart-deploy/arc-iot-operations.png" alt-text="Screenshot of selecting Azure IoT Operations from Azure Arc.":::
226
236
227
237
1. Select **Create**.
228
238
229
-
1. On the **Basics** tab of the **Install Azure IoT Operations Arc Extension** page, provide the following information:
239
+
1. On the **Basic** tab of the **Install Azure IoT Operations Arc Extension** page, provide the following information:
230
240
231
241
| Field | Value |
232
242
| ----- | ----- |
@@ -256,12 +266,9 @@ az keyvault create --enable-rbac-authorization false --name "<your unique key va
256
266
|**Subscription**| Select the subscription that contains your Arc-enabled Kubernetes cluster. |
257
267
|**Azure Key Vault**| Use the **Select a key vault** drop-down menu to choose the key vault that you set up in the previous section. |
258
268
259
-
1. Once you select a key vault, the **Automation** tab populates an Azure CLI command that configures your cluster with your deployment information. Copy the CLI command.
260
-
261
-
>[!TIP]
262
-
>Select the **Azure CLI deployment -- Efficiency unleashed** automation option to generate a CLI command that performs the configuration tasks on your cluster and then also deploys Azure IoT Operations.
269
+
1. Once you select a key vault, the **Automation** tab uses all the information you've selected so far to populate an Azure CLI command that configures your cluster and deploys Azure IoT Operations. Copy the CLI command.
263
270
264
-
<!--:::image type="content" source="./media/quickstart-deploy/install-extension-automation.png" alt-text="Screenshot of copying the CLI command from the automation tab for installing the Azure IoT Operations Arc extension in the Azure portal.":::-->
271
+
:::image type="content" source="./media/quickstart-deploy/install-extension-automation.png" alt-text="Screenshot of copying the CLI command from the automation tab for installing the Azure IoT Operations Arc extension in the Azure portal.":::
265
272
266
273
1. Sign in to Azure CLI on your development machine or in your codespace terminal. To prevent potential permission issues later, sign in interactively with a browser here even if you've already logged in before.
267
274
@@ -277,15 +284,9 @@ az keyvault create --enable-rbac-authorization false --name "<your unique key va
277
284
278
285
1. Run the copied `az iot ops init` command on your development machine or in your codespace terminal.
279
286
280
-
Wait for the command to complete before continuing to the next step.
281
-
282
287
>[!TIP]
283
288
>If you get an error that says *Your device is required to be managed to access your resource*, go back to the previous step and make sure that you signed in interactively.
284
289
285
-
1. Return to the Azure portal and select **Review + Create**.
286
-
287
-
1. Wait for the validation to pass and then select **Create**.
288
-
289
290
## View resources in your cluster
290
291
291
292
While the deployment is in progress, you can watch the resources being applied to your cluster. You can use kubectl commands to observe changes on the cluster or, since the cluster is Arc-enabled, you can use the Azure portal.
0 commit comments