Skip to content

Commit b4df158

Browse files
authored
Merge pull request #300623 from meenag16/docs-editor/overview-iot-operations-1748623408
Update overview with Tanzu as supported environment (2506)
2 parents cb83976 + 66c1d92 commit b4df158

File tree

4 files changed

+152
-20
lines changed

4 files changed

+152
-20
lines changed

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

Lines changed: 120 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,19 @@ ms.date: 10/23/2024
1212

1313
# Prepare your Azure Arc-enabled Kubernetes cluster
1414

15-
An Azure Arc-enabled Kubernetes cluster is a prerequisite for deploying Azure IoT Operations. This article describes how to prepare a cluster before you deploy Azure IoT Operations. This article includes guidance for both Ubuntu and Windows.
15+
An Azure Arc-enabled Kubernetes cluster is a prerequisite for deploying Azure IoT Operations. This article describes how to prepare a cluster before you deploy Azure IoT Operations. This article includes guidance for Ubuntu, Windows, Azure Local, and Tanzu Kubernetes Grid (TKG).
1616

1717
The steps in this article prepare your cluster for a secure settings deployment, which is a longer but production-ready process. If you want to deploy Azure IoT Operations quickly and run a sample workload with only test settings, see the [Quickstart: Run Azure IoT Operations in GitHub Codespaces with K3s](../get-started-end-to-end-sample/quickstart-deploy.md) instead. For more information about test settings and secure settings, see [Deployment details > Choose your features](./overview-deploy.md#choose-your-features).
1818

1919
## Prerequisites
2020

21-
Microsoft supports Azure Kubernetes Service (AKS) Edge Essentials for deployments on Windows and K3s for deployments on Ubuntu. If you want to deploy Azure IoT Operations to a multi-node solution, use K3s on Ubuntu.
21+
Microsoft supports Azure Kubernetes Service (AKS) Edge Essentials for deployments on Windows, K3s for deployments on Ubuntu, AKS deployments on Azure Local, and Tanzu Kubernetes release (TKr) on TKG. If you want to deploy Azure IoT Operations to a multi-node solution, use K3s on Ubuntu.
2222

2323
### [Ubuntu](#tab/ubuntu)
2424

2525
To prepare an Azure Arc-enabled Kubernetes cluster, you need:
2626

27-
* An Azure subscription with either the Owner role or a combination of Contributor and User Access Administrator roles. You can check your access level by navigating to your subscription, selecting Access control (IAM) on the left-hand side of the Azure portal, and then selecting View my access. If you don't have an Azure subscription, [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
28-
29-
* An Azure resource group. Only one Azure IoT Operations instance is supported per resource group. To create a new resource group, use the [az group create](/cli/azure/group#az-group-create) command. For the list of currently supported Azure regions, see [Supported regions](../overview-iot-operations.md#supported-regions).
30-
31-
```azurecli
32-
az group create --location <REGION> --resource-group <RESOURCE_GROUP> --subscription <SUBSCRIPTION_ID>
33-
```
34-
35-
* Azure CLI version 2.53.0 or newer installed on your cluster machine. Use `az --version` to check your version and `az upgrade` to update if necessary. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
36-
37-
* The latest version of the **connectedk8s** extension for Azure CLI:
38-
39-
```bash
40-
az extension add --upgrade --name connectedk8s
41-
```
27+
[!INCLUDE [Cluster prerequisites for Ubuntu and Tanzu](../includes/cluster-prerequisites.md)]
4228

4329
* Hardware that meets the system requirements:
4430

@@ -73,7 +59,22 @@ To prepare an Azure Arc-enabled Kubernetes cluster, you need:
7359

7460
* [Azure IoT Operations supported environments](./overview-deploy.md#supported-environments).
7561
* [Azure Arc-enabled Kubernetes system requirements](/azure/azure-arc/kubernetes/system-requirements).
62+
63+
### [TKG with a management cluster](#tab/tkgm)
64+
65+
To prepare a TKG workload cluster, you need:
66+
67+
[!INCLUDE [Cluster prerequisites for Ubuntu and Tanzu](../includes/cluster-prerequisites.md)]
68+
69+
- [TKG with a standalone management cluster.](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-kubernetes-grid/2-5/tkg/mgmt-index.html)
7670

71+
- Hardware that meets the system requirements:
72+
73+
- [Azure IoT Operations supported environments](./overview-deploy.md#supported-environments).
74+
- [Azure Arc-enabled Kubernetes system requirements](/azure/azure-arc/kubernetes/system-requirements).
75+
76+
- [TKG standalone management cluster requirements.](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-kubernetes-grid/2-5/tkg/mgmt-reqs-index.html)
77+
7778
---
7879

7980
## Create and Arc-enable a cluster
@@ -128,13 +129,13 @@ To prepare a K3s Kubernetes cluster on Ubuntu:
128129

129130
Connect your cluster to Azure Arc so that it can be managed remotely.
130131

131-
1. On the machine where you deployed the Kubernetes cluster, sign into Azure CLI with your Microsoft Entra user account that has the required role(s) for the Azure subscription:
132+
1. From a machine that has `kubectl` access to your cluster, sign into Azure CLI with your Microsoft Entra user account that has the required role(s) for the Azure subscription:
132133

133-
```azurecli
134+
```azurecli
134135
az login
135136
```
136137

137-
If at any point you get an error that says *Your device is required to be managed to access your resource*, run `az login` again and make sure that you sign in interactively with a browser.
138+
If at any point you get an error that says *Your device is required to be managed to access your resource*, run `az login` again and make sure that you sign in interactively with a browser.
138139

139140
1. After you sign in, the Azure CLI displays all of your subscriptions and indicates your default subscription with an asterisk `*`. To continue with your default subscription, select `Enter`. Otherwise, type the number of the Azure subscription that you want to use.
140141

@@ -238,6 +239,105 @@ By default, a Kubernetes cluster is created with a node pool that can run Linux
238239

239240
Then, once you have an Azure Arc-enabled Kubernetes cluster, you can [deploy Azure IoT Operations](howto-deploy-iot-operations.md).
240241

242+
### [TKG with a management cluster](#tab/tkgm)
243+
244+
To prepare a TKG workload cluster, you need:
245+
246+
- A single-node or multi-node TKG workload cluster. For guidance, see the [Tanzu documentation](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-kubernetes-grid/2-5/tkg/workload-clusters-index.html).
247+
248+
### Update pod security admission settings
249+
250+
Before deploying Azure IoT Operations, you will need to update the Pod Security Admission settings on your TKG cluster. Applying this file will pre-create namespace labels and set pod security to `privileged`.
251+
252+
253+
254+
```azurecli
255+
kubectl apply -f https://raw.githubusercontent.com/Azure-Samples/explore-iot-operations/main/samples/tanzu-config/psa.yaml
256+
```
257+
258+
### Arc-enable your cluster
259+
260+
Connect your cluster to Azure Arc so that it can be managed remotely.
261+
262+
1. On the machine where you deployed the Kubernetes cluster, sign into Azure CLI with your Microsoft Entra user account that has the required role(s) for the Azure subscription:
263+
264+
265+
```azurecli
266+
az login
267+
```
268+
269+
1. After you sign in, the Azure CLI displays all of your subscriptions and indicates your default subscription with an asterisk `*`. To continue with your default subscription, select `Enter`. Otherwise, type the number of the Azure subscription that you want to use.
270+
271+
1. Register the required resource providers in your subscription.
272+
273+
> [!NOTE]
274+
> This step only needs to be run once per subscription. To register resource providers, you need permission to do the `/register/action` operation, which is included in subscription Contributor and Owner roles. For more information, see [Azure resource providers and types](../../azure-resource-manager/management/resource-providers-and-types.md).
275+
276+
```azurecli
277+
az provider register -n "Microsoft.ExtendedLocation"
278+
az provider register -n "Microsoft.Kubernetes"
279+
az provider register -n "Microsoft.KubernetesConfiguration"
280+
az provider register -n "Microsoft.IoTOperations"
281+
az provider register -n "Microsoft.DeviceRegistry"
282+
az provider register -n "Microsoft.SecretSyncController"
283+
```
284+
285+
1. Use the [az connectedk8s connect](/cli/azure/connectedk8s) command to Arc-enable your Kubernetes cluster and manage it as part of your Azure resource group.
286+
287+
288+
```azurecli
289+
az connectedk8s connect --name <CLUSTER_NAME> -l <REGION> --resource-group <RESOURCE_GROUP> --subscription <SUBSCRIPTION_ID> --enable-oidc-issuer --enable-workload-identity --disable-auto-upgrade
290+
```
291+
292+
To prevent unplanned updates to Azure Arc and the system Arc extensions that Azure IoT Operations uses as dependencies, this command disables autoupgrade. Instead, [manually upgrade agents](/azure/azure-arc/kubernetes/agent-upgrade) as needed.
293+
294+
> [!IMPORTANT]
295+
> If your environment uses a proxy server or Azure Arc Gateway, modify the `az connectedk8s connect` command with your proxy information:
296+
>
297+
> 1. Follow the instructions in either [Connect using an outbound proxy server](/azure/azure-arc/kubernetes/quickstart-connect-cluster#connect-using-an-outbound-proxy-server) or [Onboard Kubernetes clusters to Azure Arc with Azure Arc Gateway](/azure/azure-arc/kubernetes/arc-gateway-simplify-networking#onboard-kubernetes-clusters-to-azure-arc-with-your-arc-gateway-resource).
298+
> 1. Add `169.254.169.254` to the `--proxy-skip-range` parameter of the `az connectedk8s connect` command. [Azure Device Registry](../discover-manage-assets/overview-manage-assets.md#store-assets-as-azure-resources-in-a-centralized-registry) uses this local endpoint to get access tokens for authorization.
299+
>
300+
> Azure IoT Operations doesn't support proxy servers that require a trusted certificate.
301+
302+
1. Get the cluster's issuer URL.
303+
304+
305+
```azurecli
306+
az connectedk8s show --resource-group <RESOURCE_GROUP> --name <CLUSTER_NAME> --query oidcIssuerProfile.issuerUrl --output tsv
307+
```
308+
309+
Save the output of this command to use in the next steps.
310+
311+
1. Connect to the TKG management cluster. Edit the custom resource for the workload cluster with the issuer URL from the previous step.
312+
313+
```azurecli
314+
kubectl edit cluster <CLUSTER_NAME>
315+
```
316+
317+
1. Add the following content to the `config.yaml` file, replacing the <OIDC_ISSUER_URL> placeholder with your cluster's issuer URL.
318+
> [!NOTE]
319+
> The URL should be copied exactly as printed by the prior command, including any characters such as `/`.
320+
321+
```yaml
322+
- name: apiServerExtraArgs
323+
value: {"service-account-issuer":"<OIDC_ISSUER_URL>"}
324+
```
325+
326+
1. Prepare for enabling the Azure Arc service, custom location, on your Arc cluster by getting the custom location object ID and saving it as the environment variable, OBJECT_ID. You must be logged into Azure CLI with a Microsoft Entra user account to successfully run the command, not a service principal. Run the following command **exactly as written**, without changing the GUID value.
327+
328+
```azurecli
329+
export OBJECT_ID=$(az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv)
330+
```
331+
332+
> [!NOTE]
333+
>If you receive the error: "Unable to fetch oid of 'custom-locations' app. Proceeding without enabling the feature. Insufficient privileges to complete the operation," then your service principal might lack the necessary permissions to retrieve the object ID of the custom location. Log into Azure CLI with a Microsoft Entra user account that meets the prerequisites. For more information, see [Create and manage custom locations](https://aka.ms/enable-cl-sp).
334+
335+
1. Use the [az connectedk8s enable-features](/cli/azure/connectedk8s) command to enable the custom location feature on your Arc cluster. This command uses the OBJECT_ID environment variable saved from the previous step to set the value for the custom-locations-oid parameter. Run this command on the machine where you deployed the Kubernetes cluster:
336+
337+
338+
```azurecli
339+
az connectedk8s enable-features -n <CLUSTER_NAME> -g <RESOURCE_GROUP> --custom-locations-oid $OBJECT_ID --features cluster-connect custom-locations
340+
```
241341
---
242342

243343
## Advanced configuration

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Microsoft supports the following environments for Azure IoT Operations deploymen
2323
| K3s on Ubuntu 24.04 | K3s version 1.31.1 | General availability |
2424
| Azure Kubernetes Service (AKS) Edge Essentials on Windows 11 IoT Enterprise | AksEdge-K3s-1.29.6-1.8.202.0 | Public preview |
2525
| Azure Kubernetes Service (AKS) on Azure Local | Azure Stack HCI OS, version 23H2, build 2411 | Public preview |
26+
| Tanzu Kubernetes release (TKr) on Tanzu Kubernetes Grid with a management cluster 2.5.2| TKr version 1.28.11| General availability|
27+
28+
>[!IMPORTANT]
29+
>Support for Azure IoT Operations deployments is only available on version 1.28.11 of TKr.
2630
2731
>[!NOTE]
2832
>Billing usage records are collected on any environment where Azure IoT Operations is installed, regardless of support or availability levels.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: include file
3+
description: include file with cluster prerequisites for Ubuntu and Tanzu
4+
author: dominicbetts
5+
ms.topic: include
6+
ms.date: 06/16/2025
7+
ms.author: dobett
8+
---
9+
10+
* An Azure subscription with either the **Owner** role or a combination of **Contributor** and **User Access Administrator** roles. You can check your access level by navigating to your subscription, selecting **Access control (IAM)** on the left-hand side of the Azure portal, and then selecting **View my access**. If you don't have an Azure subscription, [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
11+
12+
* An Azure resource group. Only one Azure IoT Operations instance is supported per resource group. To create a new resource group, use the [az group create](/cli/azure/group#az-group-create) command. For the list of currently supported Azure regions, see [Supported regions](../overview-iot-operations.md#supported-regions).
13+
14+
```azurecli
15+
az group create --location <REGION> --resource-group <RESOURCE_GROUP> --subscription <SUBSCRIPTION_ID>
16+
```
17+
18+
* Azure CLI version 2.62.0 or newer installed on your cluster machine. Use `az --version` to check your version and `az upgrade` to update if necessary. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
19+
20+
* The latest version of the **connectedk8s** extension for Azure CLI:
21+
22+
```bash
23+
az extension add --upgrade --name connectedk8s
24+
```

articles/iot-operations/overview-iot-operations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ Microsoft supports the following environments for Azure IoT Operations deploymen
130130
| K3s on Ubuntu 24.04 | K3s version 1.31.1 | General availability |
131131
| Azure Kubernetes Service (AKS) Edge Essentials on Windows 11 IoT Enterprise | AksEdge-K3s-1.29.6-1.8.202.0 | Public preview |
132132
| Azure Kubernetes Service (AKS) on Azure Local | Azure Stack HCI OS, version 23H2, build 2411 | Public preview |
133+
| Tanzu Kubernetes release (TKr) on Tanzu Kubernetes Grid with a management cluster 2.5.2| TKr version 1.28.11| General availability|
134+
135+
>[!IMPORTANT]
136+
>Support for Azure IoT Operations deployments is only available on version 1.28.11 of TKr.
133137
134138
## Supported regions
135139

0 commit comments

Comments
 (0)