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/get-started/quickstart-deploy.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,17 @@ The following quickstarts in this series build on this one to define sample asse
34
34
35
35
This series of quickstarts is intended to give you an opportunity to evaluate an end-to-end scenario with Azure IoT Operations. In a true development or production environment, these tasks would be performed by multiple teams working together and some tasks might require elevated permissions.
36
36
37
-
For the best new user experience, we recommend using a free Azure subscription so that you have owner permissions over the resources in these quickstarts. We also recommend using GitHub Codespaces as a virtual environment in which you can quickly begin deploying resources and running commands without installing new tools on your own machines. For more information about these options, continue to the prerequisites.
37
+
For the best new user experience, we recommend using an [Azure free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) so that you have owner permissions over the resources in these quickstarts. We also recommend using GitHub Codespaces as a virtual environment in which you can quickly begin deploying resources and running commands without installing new tools on your own machines. For more information about these options, continue to the prerequisites.
38
38
39
39
Once you're ready to learn more about the individual roles and tasks, the how-to guides provide more specific implementation and permissions details.
40
40
41
41
## Prerequisites
42
42
43
43
Review the prerequisites based on the environment you use to host the Kubernetes cluster.
44
44
45
-
For this quickstart, we recommend using a virtual environment as a quick way to get started without installing new tools.
45
+
For this quickstart, we recommend using a virtual environment (GitHub Codespaces) as a quick way to get started without installing new tools.
46
46
47
-
As part of this quickstart, you create a cluster in either GitHub Codespaces, AKS Edge Essentials, or K3s on Ubuntu Linux. If you want to reuse a cluster that you've deployed Azure IoT Operations to before, refer to the steps in [Clean up resources](#clean-up-resources) to uninstall Azure IoT Operations before continuing.
47
+
As part of this quickstart, you create a cluster in either GitHub Codespaces, AKS Edge Essentials, or K3s on Ubuntu Linux. If you want to rerun this quickstart with a cluster that already has Azure IoT Operations deployed to it, refer to the steps in [Clean up resources](#clean-up-resources) to uninstall Azure IoT Operations before continuing.
48
48
49
49
# [Virtual](#tab/codespaces)
50
50
@@ -319,7 +319,15 @@ In this quickstart, you configured your Arc-enabled Kubernetes cluster so that i
319
319
320
320
If you're continuing on to the next quickstart, keep all of your resources.
321
321
322
-
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. In your cluster on the Azure portal, select the extensions of the type **microsoft.iotoperations.x** and **microsoft.deviceregistry.assets**, then select **Uninstall**.
322
+
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.
323
+
324
+
1. In your resource group in the Azure portal, select your cluster.
325
+
1. On your cluster resource page, select **Extensions**.
326
+
1. Select all of the extensions of type **microsoft.iotoperations.x** and **microsoft.deviceregistry.assets**, then select **Uninstall**.
327
+
328
+
Keep the secrets provider extension on your cluster.
329
+
330
+
1. Return to your resource group and select the custom location resource, then select **Delete**.
323
331
324
332
If you want to delete all of the resources you created for this quickstart, delete the Kubernetes cluster that you deployed Azure IoT Operations to and remove the Azure resource group that contained the cluster.
1. Get the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses. Run this commandin the [Azure Cloud Shell](https://portal.azure.com/#cloudshell), on your local machine, or in a codespace terminal:
79
+
1. Get the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses and save it as an environment variable.
79
80
80
81
```azurecli
81
-
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
82
+
export OBJECT_ID=$(az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv)
82
83
```
83
84
84
-
Make a note of the `objectId`. You use it in the next step.
85
-
86
85
1. Use the [az connectedk8s enable-features](/cli/azure/connectedk8s#az-connectedk8s-enable-features) command to enable custom location support on your cluster. This command uses the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses. Run this command on the machine where you deployed the Kubernetes cluster:
87
86
88
87
```azurecli
89
-
export OBJECT_ID=<objectID from the previous step>
Copy file name to clipboardExpand all lines: articles/iot-operations/includes/prepare-codespaces.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
@@ -3,7 +3,7 @@
3
3
description: include file
4
4
author: kgremban
5
5
ms.topic: include
6
-
ms.date: 03/15/2024
6
+
ms.date: 03/20/2024
7
7
ms.author: kgremban
8
8
ms.custom:
9
9
- include file
@@ -26,20 +26,16 @@ To get started with your codespace:
26
26
27
27
[](https://codespaces.new/Azure-Samples/explore-iot-operations?quickstart=1)
28
28
29
-
1. Provide the following details to configure your codespace:
30
-
31
-
| Parameter | Value |
32
-
| --------- | ----- |
33
-
| SUBSCRIPTION_ID | Your Azure subscription ID. |
34
-
| RESOURCE_GROUP | A name for a new Azure resource group where your cluster will be created. Remember the resource group name to use in the following CLI commands. |
35
-
| LOCATION | An Azure region close to you. The following regions are supported in public preview: eastus, eastus2, westus, westus2, westus3, westeurope, or northeurope. Remember the region to use in the following CLI commands. |
29
+
You don't have to provide the recommended secrets at this step. If you do, make sure that you use the same values here and in the CLI commands in the next section.
36
30
37
31
1. Select **Create new codespace**.
38
32
39
33
1. Once the codespace is ready, select the menu button at the top left, then select **Open in VS Code Desktop**.
40
34
41
35

42
36
37
+
1. If prompted, install the **GitHub Codespaces** extension for Visual Studio Code and sign in to GitHub.
38
+
43
39
1. In Visual Studio Code, select **View** > **Terminal**.
44
40
45
41
Use this terminal to run all of the command line and CLI commands for managing your cluster.
0 commit comments