Skip to content

Commit 6b323ef

Browse files
authored
Merge pull request #308376 from DENKEN02MSFT/AIReadinessJune2025-sonialopez-Pass5
AI Readiness - Pass 5
2 parents e0eba1d + 2380c3d commit 6b323ef

16 files changed

Lines changed: 180 additions & 158 deletions
-9.21 KB
Loading
11.7 KB
Loading
21.4 KB
Loading
14.4 KB
Loading
-19.5 KB
Loading
36.1 KB
Loading
6.81 KB
Loading
47.9 KB
Loading
30.3 KB
Loading

articles/iot-dps/quick-setup-auto-provision-cli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Quickstart - Set up Azure IoT Hub Device Provisioning Service using Azure
33
description: Quickstart - Set up the Azure IoT Hub Device Provisioning Service (DPS) using Azure CLI
44
author: SoniaLopezBravo
55
ms.author: sonialopez
6-
ms.date: 11/08/2019
6+
ms.date: 08/12/2025
77
ms.topic: quickstart
88
ms.service: azure-iot-hub
99
services: iot-dps
@@ -23,7 +23,7 @@ The Azure CLI is used to create and manage Azure resources from the command line
2323
[!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
2424

2525
> [!IMPORTANT]
26-
> Both the IoT hub and the provisioning service you create in this quickstart will be publicly discoverable as DNS endpoints. Make sure to avoid any sensitive information if you decide to change the names used for these resources.
26+
> Both the IoT hub and the provisioning service you create in this quickstart are publicly discoverable as DNS endpoints. Make sure to avoid any sensitive information if you decide to change the names used for these resources.
2727
>
2828
2929
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
@@ -64,13 +64,13 @@ az iot dps create --name my-sample-dps --resource-group my-sample-resource-group
6464
```
6565

6666
> [!TIP]
67-
> The example creates the provisioning service in the West US location. You can view a list of available locations by running the command `az provider show --namespace Microsoft.Devices --query "resourceTypes[?resourceType=='ProvisioningServices'].locations | [0]" --out table` or by going to the [Azure Status](https://azure.microsoft.com/status/) page and searching for "Device Provisioning Service". In commands, locations can be specified either in one word or multi-word format; for example: westus, West US, WEST US, etc. The value is not case sensitive. If you use multi-word format to specify location, enclose the value in quotes; for example, `--location "West US"`.
67+
> The example creates the provisioning service in the West US location. You can view a list of available locations by running the command `az provider show --namespace Microsoft.Devices --query "resourceTypes[?resourceType=='ProvisioningServices'].locations | [0]" --out table` or by going to the [Azure Status](https://azure.microsoft.com/status/) page and searching for "Device Provisioning Service". In commands, locations can be specified either in one word or multi-word format; for example: westus, West US, WEST US, etc. The value isn't case sensitive. If you use multi-word format to specify location, enclose the value in quotes; for example, `--location "West US"`.
6868
>
6969
> For resiliency and reliability, we recommend deploying to one of the regions that support [Availability Zones](iot-dps-ha-dr.md).
7070
7171
## Get the connection string for the IoT hub
7272

73-
You need your IoT hub's connection string to link it with the Device Provisioning Service. Use the [az iot hub connection-string show](/cli/azure/iot/hub/connection-string#az-iot-hub-connection-string-show) command to get the connection string and use its output to set a variable that's used later, when you link the two resources.
73+
You need your IoT hub's connection string to link it with the Device Provisioning Service. Use the [az iot hub connection-string show](/cli/azure/iot/hub/connection-string#az-iot-hub-connection-string-show) command to get the connection string and use its output to set a variable used later, when you link the two resources.
7474

7575
The following example sets the *hubConnectionString* variable to the value of the connection string for the primary key of the hub's *iothubowner* policy (the `--policy-name` parameter can be used to specify a different policy). Trade out *my-sample-hub* for the unique IoT hub name you chose earlier. The command uses the Azure CLI [query](/cli/azure/query-azure-cli) and [output](/cli/azure/format-output-azure-cli#tsv-output-format) options to extract the connection string from the command output.
7676

@@ -102,7 +102,7 @@ The following example links an IoT hub named *my-sample-hub* in the *westus* loc
102102
az iot dps linked-hub create --dps-name my-sample-dps --resource-group my-sample-resource-group --connection-string $hubConnectionString --location westus
103103
```
104104

105-
The command may take a few minutes to complete.
105+
The command might take a few minutes to complete.
106106

107107
## Verify the provisioning service
108108

@@ -116,11 +116,11 @@ az iot dps show --name my-sample-dps
116116

117117
The linked IoT hub is shown in the *properties.iotHubs* collection.
118118

119-
![Verify Provisioning Service](./media/quick-setup-auto-provision-cli/verify-provisioning-service.png)
119+
:::image type="content" source="./media/quick-setup-auto-provision-cli/verify-provisioning-service.png" alt-text="Screen capture of an Azure Cloud Shell window, highlighting the properties.iotHubs collection displayed in the output of the az iot dps show command.":::
120120

121121
## Clean up resources
122122

123-
Other quickstarts in this collection build upon this quickstart. If you plan to continue on to work with subsequent quickstarts or with the tutorials, don't clean up the resources created in this quickstart. If you don't plan to continue, you can use the following commands to delete the provisioning service, the IoT hub or the resource group and all of its resources. Replace the names of the resources included in the following commands with the names of your own resources.
123+
Other quickstarts in this collection build upon this quickstart. If you plan to continue on to work with subsequent quickstarts or with the tutorials, don't clean up the resources created in this quickstart. If you don't plan to continue, you can use the following commands to delete the provisioning service, the IoT hub, or the resource group and all of its resources. Replace the names of the resources included in the following commands with the names of your own resources.
124124

125125
To delete the provisioning service, run the [az iot dps delete](/cli/azure/iot/dps#az-iot-dps-delete) command:
126126

0 commit comments

Comments
 (0)