Skip to content

Commit 7e833c1

Browse files
authored
Merge pull request #217093 from TomArcherMsft/UserStory2005892
User Story 2005892
2 parents 181efa0 + fb529f3 commit 7e833c1

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

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

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Quickstart - Use Terraform to create a DPS instance
33
description: Learn how to deploy an Azure IoT Device Provisioning Service (DPS) resource with Terraform in this quickstart.
44
keywords: azure, devops, terraform, device provisioning service, DPS, IoT, IoT Hub DPS
55
ms.topic: quickstart
6-
ms.date: 10/27/2022
6+
ms.date: 11/03/2022
77
ms.custom: devx-track-terraform
88
author: kgremban
99
ms.author: kgremban
@@ -75,25 +75,35 @@ In this article, you learn how to:
7575

7676
## Verify the results
7777

78-
**Azure CLI**
78+
#### [Bash](#tab/bash)
79+
7980
Run [az iot dps show](/cli/azure/iot/dps#az-iot-dps-show) to display the Azure DPS resource.
8081

81-
```azurecli
82-
az iot dps show \
83-
--name my_terraform_dps \
84-
--resource-group rg
85-
```
82+
```azurecli
83+
az iot dps show \
84+
--name <azurerm_iothub_dps_name> \
85+
--resource-group <resource_group_name>
86+
```
87+
88+
**Key points:**
89+
90+
- The names of the resource group and the DPS instance display in the `terraform apply` output. You can also run [terraform output](https://www.terraform.io/cli/commands/output) to view these output values.
91+
92+
#### [Azure PowerShell](#tab/azure-powershell)
8693

87-
**Azure PowerShell**
8894
Run [Get-AzIoTDeviceProvisioningService](/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningservice) to display the Azure DPS resource.
8995

90-
```powershell
91-
Get-AzIoTDeviceProvisioningService `
92-
-ResourceGroupName "rg" `
93-
-Name "my_terraform_dps"
94-
```
96+
```powershell
97+
Get-AzIoTDeviceProvisioningService `
98+
-ResourceGroupName <resource_group_name> `
99+
-Name <azurerm_iothub_dps_name>
100+
```
95101

96-
The names of the resource group and the DPS instance are displayed in the terraform apply output. You can also run the [terraform output](https://www.terraform.io/cli/commands/output) command to view these output values.
102+
**Key points:**
103+
104+
- The names of the resource group and the DPS instance display in the `terraform apply` output. You can also run [terraform output](https://www.terraform.io/cli/commands/output) to view these output values.
105+
106+
---
97107

98108
## Clean up resources
99109

0 commit comments

Comments
 (0)