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-hub/iot-hub-create-using-powershell.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ manager: timlt
6
6
ms.service: iot-hub
7
7
services: iot-hub
8
8
ms.topic: conceptual
9
-
ms.date: 08/24/2018
9
+
ms.date: 08/29/2018
10
10
ms.author: robinsh
11
11
---
12
12
@@ -37,15 +37,15 @@ You need a resource group to deploy an IoT hub. You can use an existing resource
37
37
38
38
To create a resource group for your IoT hub, use the [New-AzureRmResourceGroup](https://docs.microsoft.com/powershell/module/AzureRM.Resources/New-AzureRmResourceGroup) command. This example creates a resource group called **MyIoTRG1** in the **East US** region:
To create an IoT hub in the resource group you created in the previous step, use the [New-AzureRmIotHub](https://docs.microsoft.com/powershell/module/AzureRM.IotHub/New-AzureRmIotHub) command. This example creates an **S1** hub called **MyTestIoTHub** in the **East US** region:
47
47
48
-
```powershell
48
+
```azurepowershell-interactive
49
49
New-AzureRmIotHub `
50
50
-ResourceGroupName MyIoTRG1 `
51
51
-Name MyTestIoTHub `
@@ -59,23 +59,23 @@ The name of the IoT hub must be globally unique.
59
59
60
60
You can list all the IoT hubs in your subscription using the [Get-AzureRmIotHub](https://docs.microsoft.com/powershell/module/AzureRM.IotHub/Get-AzureRmIotHub) command:
61
61
62
-
```powershell
62
+
```azurepowershell-interactive
63
63
Get-AzureRmIotHub
64
64
```
65
65
66
-
This example shows the S1 Standard IoT Hub you created in the previous step.
66
+
This example shows the S1 Standard IoT Hub you created in the previous step.
67
67
68
68
You can delete the IoT hub using the [Remove-AzureRmIotHub](https://docs.microsoft.com/powershell/module/azurerm.iothub/remove-azurermiothub) command:
69
69
70
-
```powershell
70
+
```azurepowershell-interactive
71
71
Remove-AzureRmIotHub `
72
72
-ResourceGroupName MyIoTRG1 `
73
73
-Name MyTestIoTHub
74
74
```
75
75
76
76
Alternatively, you can remove a resource group and all the resources it contains using the [Remove-AzureRmResourceGroup](https://docs.microsoft.com/powershell/module/AzureRM.Resources/Remove-AzureRmResourceGroup) command:
0 commit comments