Skip to content

Commit 93e9f1f

Browse files
authored
Merge pull request #50315 from HemantMahawar/fix-tryit3
Adding missing TryIt blocks
2 parents eff7a15 + 209aa35 commit 93e9f1f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/iot-hub/iot-hub-create-using-powershell.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: timlt
66
ms.service: iot-hub
77
services: iot-hub
88
ms.topic: conceptual
9-
ms.date: 08/24/2018
9+
ms.date: 08/29/2018
1010
ms.author: robinsh
1111
---
1212

@@ -37,15 +37,15 @@ You need a resource group to deploy an IoT hub. You can use an existing resource
3737

3838
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:
3939

40-
```powershell
40+
```azurepowershell-interactive
4141
New-AzureRmResourceGroup -Name MyIoTRG1 -Location "East US"
4242
```
4343

4444
## Create an IoT hub
4545

4646
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:
4747

48-
```powershell
48+
```azurepowershell-interactive
4949
New-AzureRmIotHub `
5050
-ResourceGroupName MyIoTRG1 `
5151
-Name MyTestIoTHub `
@@ -59,23 +59,23 @@ The name of the IoT hub must be globally unique.
5959

6060
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:
6161

62-
```powershell
62+
```azurepowershell-interactive
6363
Get-AzureRmIotHub
6464
```
6565

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.
6767

6868
You can delete the IoT hub using the [Remove-AzureRmIotHub](https://docs.microsoft.com/powershell/module/azurerm.iothub/remove-azurermiothub) command:
6969

70-
```powershell
70+
```azurepowershell-interactive
7171
Remove-AzureRmIotHub `
7272
-ResourceGroupName MyIoTRG1 `
7373
-Name MyTestIoTHub
7474
```
7575

7676
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:
7777

78-
```powershell
78+
```azurepowershell-interactive
7979
Remove-AzureRmResourceGroup -Name MyIoTRG1
8080
```
8181

0 commit comments

Comments
 (0)