Skip to content

Commit 893bef9

Browse files
committed
Change multitenancy topic to geolatency
1 parent 63d5a41 commit 893bef9

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

articles/iot-dps/how-to-provision-multitenant.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Tutorial - Provision devices for multitenancy in Azure IoT Hub Device Provisioning Service
3-
description: This tutorial shows how to provision devices for multitenancy with your Device Provisioning Service (DPS) instance
2+
title: Tutorial - Provision devices for geolatency in Azure IoT Hub Device Provisioning Service
3+
description: This tutorial shows how to provision devices for geolocation with your Device Provisioning Service (DPS) instance
44
author: kgremban
55
ms.author: kgremban
66
ms.topic: tutorial
@@ -9,24 +9,20 @@ ms.service: iot-dps
99
services: iot-dps
1010
---
1111

12-
# Tutorial: Provision for multitenancy
12+
# Tutorial: Provision for geolatency
1313

14-
This tutorial shows how to securely provision multiple simulated symmetric key devices to a group of IoT Hubs using an [allocation policy](concepts-service.md#allocation-policy). Allocation policies that are defined by the provisioning service support a variety of allocation scenarios. Two common scenarios are:
14+
This tutorial shows how to securely provision multiple simulated symmetric key devices to a group of IoT Hubs using an [allocation policy](concepts-service.md#allocation-policy). Allocation policies that are defined by the provisioning service support a variety of allocation scenarios.
1515

16-
* **Geolocation / GeoLatency**: As a device moves between locations, network latency is improved by having the device provisioned to the IoT hub that's closest to each location. In this scenario, a group of IoT hubs, which span across regions, are selected for enrollments. The **Lowest latency** allocation policy is selected for these enrollments. This policy causes the Device Provisioning Service to evaluate device latency and determine the closet IoT hub out of the group of IoT hubs.
16+
**Geolocation / GeoLatency**: is a common allocation scenario. As a device moves between locations, network latency is improved by having the device provisioned to the IoT hub that's closest to each location. In this scenario, a group of IoT hubs, which span across regions, are selected for enrollments. The **Lowest latency** allocation policy is selected for these enrollments. This policy causes the Device Provisioning Service to evaluate device latency and determine the closet IoT hub out of the group of IoT hubs.
1717

18-
* **Multi-tenancy**: Devices used within an IoT solution may need to be assigned to a specific IoT hub or group of IoT hubs. The solution may require all devices for a particular tenant to communicate with a specific group of IoT hubs. In some cases, a tenant may own IoT hubs and require devices to be assigned to their IoT hubs.
19-
20-
It's common to combine these two scenarios. For example, a multitenant IoT solution commonly assigns tenant devices using a group of IoT hubs that are scattered across different regions. These tenant devices can be assigned to the IoT hub in the group that has the lowest latency based on geographic location.
21-
22-
This tutorial uses a simulated device sample from the [Azure IoT C SDK](https://github.com/Azure/azure-iot-sdk-c) to demonstrate how to provision devices in a multitenant scenario across regions. You will perform the following steps in this tutorial:
18+
This tutorial uses a simulated device sample from the [Azure IoT C SDK](https://github.com/Azure/azure-iot-sdk-c) to demonstrate how to provision devices across regions. You'll perform the following steps in this tutorial:
2319

2420
> [!div class="checklist"]
2521
> * Use the Azure CLI to create two regional IoT hubs (**West US 2** and **East US**)
26-
> * Create a multitenant enrollment
22+
> * Create an enrollment that provisions devices based on geolocation (lowest latency)
2723
> * Use the Azure CLI to create two regional Linux VMs to act as devices in the same regions (**West US 2** and **East US**)
2824
> * Set up the development environment for the Azure IoT C SDK on both Linux VMs
29-
> * Simulate the devices to see that they are provisioned for the same tenant in the closest region.
25+
> * Simulate the devices and verify that they're provisioned to the IoT hub in the closest region.
3026
3127
>[!IMPORTANT]
3228
> Some regions may, from time to time, enforce restrictions on the creation of Virtual Machines. At the time of writing this guide, the *westus2* and *eastus* regions permitted the creation of VMs. If you're unable to create in either one of those regions, you can try a different region. To learn more about choosing Azure geographical regions when creating VMs, see [Regions for virtual machines in Azure](../virtual-machines/regions.md)
@@ -41,7 +37,7 @@ This tutorial uses a simulated device sample from the [Azure IoT C SDK](https://
4137

4238
## Create two regional IoT hubs
4339

44-
In this section, you'll create an Azure resource group, and two new regional IoT hub resources for a tenant. One IoT hub will be for the **West US 2** region and the other will be for the **East US** region.
40+
In this section, you'll create an Azure resource group, and two new regional IoT hub resources. One IoT hub will be for the **West US 2** region and the other will be for the **East US** region.
4541

4642
>[!IMPORTANT]
4743
>It's recommended that you use the same resource group for all resources created in this tutorial. This will make clean up easier after you are finished.
@@ -68,9 +64,9 @@ In this section, you'll create an Azure resource group, and two new regional IoT
6864
6965
This command may take a few minutes to complete.
7066
71-
## Create the multitenant enrollment
67+
## Create an enrollment for geolatency
7268
73-
In this section, you'll create a new enrollment group for the tenant devices.
69+
In this section, you'll create a new enrollment group for the your devices.
7470
7571
For simplicity, this tutorial uses [Symmetric key attestation](concepts-symmetric-key-attestation.md) with the enrollment. For a more secure solution, consider using [X.509 certificate attestation](concepts-x509-attestation.md) with a chain of trust.
7672
@@ -92,7 +88,7 @@ For simplicity, this tutorial uses [Symmetric key attestation](concepts-symmetri
9288
9389
5. Select **Link a new IoT Hub**
9490
95-
:::image type="content" source="./media/how-to-provision-multitenant/create-multitenant-enrollment.png" alt-text="Add multitenant enrollment group for symmetric key attestation.":::
91+
:::image type="content" source="./media/how-to-provision-multitenant/create-multitenant-enrollment.png" alt-text="Add enrollment group for symmetric key attestation and lowest latency.":::
9692
9793
6. On the **Add link to IoT hub** page, enter the following information:
9894
@@ -122,7 +118,7 @@ For simplicity, this tutorial uses [Symmetric key attestation](concepts-symmetri
122118
123119
## Create regional Linux VMs
124120
125-
In this section, you'll create two regional Linux virtual machines (VMs). These VMs will run a device simulation sample from each region to demonstrate device provisioning for tenant devices from both regions.
121+
In this section, you'll create two regional Linux virtual machines (VMs). These VMs will run a device simulation sample from each region to demonstrate device provisioning for devices from both regions.
126122
127123
To make clean-up easier, these VMs will be added to the same resource group that contains the IoT hubs that were created, *contoso-us-resource-group*. However, the VMs will run in separate regions (**West US 2** and **East US**).
128124
@@ -194,7 +190,7 @@ To make clean-up easier, these VMs will be added to the same resource group that
194190
195191
## Prepare the Azure IoT C SDK development environment
196192
197-
In this section, you'll clone the Azure IoT C SDK on each VM. The SDK contains a sample that simulates a tenant's device provisioning from each region.
193+
In this section, you'll clone the Azure IoT C SDK on each VM. The SDK contains a sample that simulates a device provisioning from each region.
198194
199195
For each VM:
200196
@@ -279,7 +275,7 @@ For **both** *eastus* and *westus 2* devices:
279275
p3w2DQr9WqEGBLUSlFi1jPQ7UWQL4siAGy75HFTFbf8=
280276
```
281277
282-
3. Now each tenant device has their own derived device key and unique registration ID to perform symmetric key attestation with the enrollment group during the provisioning process.
278+
3. Now each device has its own derived device key and unique registration ID to perform symmetric key attestation with the enrollment group during the provisioning process.
283279
284280
## Simulate the devices from each region
285281
@@ -344,7 +340,7 @@ The sample code simulates a device boot sequence that sends the provisioning req
344340
cmake --build . --target prov_dev_client_sample --config Debug
345341
```
346342
347-
8. Once the build succeeds, run **prov\_dev\_client\_sample.exe** on both VMs to simulate a tenant device from each region. Notice that each device is allocated to the tenant IoT hub closest to the simulated device's regions.
343+
8. Once the build succeeds, run **prov\_dev\_client\_sample.exe** on both VMs to simulate a device from each region. Notice that each device is allocated to the IoT hub closest to the simulated device's region.
348344
349345
Run the simulation:
350346
```bash

articles/iot-dps/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ items:
4040
items:
4141
- name: Link multiple hubs to DPS
4242
href: tutorial-provision-multiple-hubs.md
43-
- name: Provision for multitenancy
43+
- name: Provision for geolatency
4444
href: how-to-provision-multitenant.md
4545
- name: Concepts
4646
items:

0 commit comments

Comments
 (0)