Skip to content

Commit d083008

Browse files
authored
Merge pull request #263829 from kgremban/jan22-aiocli
az iot ops verify-host + UI updates
2 parents 0b87992 + 70e8d27 commit d083008

File tree

6 files changed

+42
-40
lines changed

6 files changed

+42
-40
lines changed

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

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: kgremban
66
# ms.subservice: orchestrator
77
ms.topic: how-to
88
ms.custom: ignite-2023, devx-track-azurecli
9-
ms.date: 12/06/2023
9+
ms.date: 01/31/2024
1010

1111
#CustomerIntent: As an OT professional, I want to deploy Azure IoT Operations to a Kubernetes cluster.
1212
---
@@ -19,16 +19,22 @@ Deploy Azure IoT Operations preview - enabled by Azure Arc to a Kubernetes clust
1919

2020
* 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.
2121

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+
2230
* 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.
2331

2432
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.
2533

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:
2935

30-
```bash
31-
az extension add --name azure-iot-ops
36+
```azurecli
37+
az iot ops verify-host
3238
```
3339

3440
* 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
4147

4248
1. In the Azure portal search bar, search for and select **Azure Arc**.
4349

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.
4551

4652
1. Select **Create**.
4753

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:
4955

5056
| Field | Value |
5157
| ----- | ----- |
@@ -71,14 +77,9 @@ Use the Azure portal to deploy Azure IoT Operations components to your Arc-enabl
7177
| **Subscription** | Select the subscription that contains your Arc-enabled Kubernetes cluster. |
7278
| **Azure Key vault** | Choose an existing key vault from the drop-down list or create a new one by selecting **Create new**. |
7379

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.
8081

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.":::
8283

8384
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.
8485

@@ -96,12 +97,6 @@ Use the Azure portal to deploy Azure IoT Operations components to your Arc-enabl
9697

9798
Wait for the command to complete.
9899

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-
105100
#### [Azure CLI](#tab/cli)
106101

107102
Use the Azure CLI to deploy Azure IoT Operations components to your Arc-enabled Kubernetes cluster.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ pod/resource-sync-agent-769bb66b79-z9n46 2/2 Running 0
176176
pod/metrics-agent-6588f97dc-455j8 2/2 Running 0 10m
177177
```
178178

179+
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+
179185
## Next steps
180186

181187
Now that you have an Azure Arc-enabled Kubernetes cluster, you can [deploy Azure IoT Operations](../deploy-iot-ops/howto-deploy-iot-operations.md).
67.9 KB
Loading
68.7 KB
Loading
65.5 KB
Loading

articles/iot-operations/get-started/quickstart-deploy.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: kgremban
66
# ms.subservice: orchestrator
77
ms.topic: quickstart
88
ms.custom: ignite-2023, devx-track-azurecli
9-
ms.date: 12/06/2023
9+
ms.date: 01/31/2024
1010

1111
#CustomerIntent: As a < type of user >, I want < what? > so that < why? >.
1212
---
@@ -52,10 +52,10 @@ For this quickstart, we recommend GitHub Codespaces as a quick way to get starte
5252

5353
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.
5454

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:
5656

57-
```powershell
58-
az extension add --name azure-iot-ops
57+
```bash
58+
az extension add --upgrade --name azure-iot-ops
5959
```
6060

6161
# [Linux](#tab/linux)
@@ -66,10 +66,10 @@ For this quickstart, we recommend GitHub Codespaces as a quick way to get starte
6666

6767
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.
6868

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:
7070

7171
```bash
72-
az extension add --name azure-iot-ops
72+
az extension add --upgrade --name azure-iot-ops
7373
```
7474

7575
---
@@ -200,6 +200,16 @@ On Ubuntu Linux, use K3s to create a Kubernetes cluster.
200200

201201
---
202202

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+
203213
## Configure cluster and deploy Azure IoT Operations
204214

205215
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
220230

221231
1. In the Azure portal search bar, search for and select **Azure Arc**.
222232

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.
224234

225235
:::image type="content" source="./media/quickstart-deploy/arc-iot-operations.png" alt-text="Screenshot of selecting Azure IoT Operations from Azure Arc.":::
226236

227237
1. Select **Create**.
228238

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:
230240

231241
| Field | Value |
232242
| ----- | ----- |
@@ -256,12 +266,9 @@ az keyvault create --enable-rbac-authorization false --name "<your unique key va
256266
| **Subscription** | Select the subscription that contains your Arc-enabled Kubernetes cluster. |
257267
| **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. |
258268

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.
263270

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.":::
265272

266273
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.
267274

@@ -277,15 +284,9 @@ az keyvault create --enable-rbac-authorization false --name "<your unique key va
277284
278285
1. Run the copied `az iot ops init` command on your development machine or in your codespace terminal.
279286

280-
Wait for the command to complete before continuing to the next step.
281-
282287
>[!TIP]
283288
>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.
284289
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-
289290
## View resources in your cluster
290291

291292
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

Comments
 (0)