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
You can change the settings of an existing IoT hub after it's created from the IoT Hub pane. Here are some of the properties you can set for an IoT hub:
25
+
You can change the settings of an existing IoT hub after it's created from the IoT Hub pane. Here are some properties you can set for an IoT hub:
26
26
27
-
**Pricing and scale**: You can use this property to migrate to a different tier or set the number of IoT Hub units.
27
+
**Pricing and scale**: Migrate to a different tier or set the number of IoT Hub units.
28
28
29
29
**IP Filter**: Specify a range of IP addresses that will be accepted or rejected by the IoT hub.
30
30
31
-
**Properties**: Provides the list of properties that you can copy and use elsewhere, such as the resource ID, resource group, location, and so on.
31
+
**Properties**: A list of properties that you can copy and use elsewhere, such as the resource ID, resource group, location, and so on.
32
+
33
+
For a complete list of options to update an IoT hub, see the [**az iot hub update** commands](/cli/azure/iot/hub#az-iot-hub-update) reference page.
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-create-use-iot-toolkit.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@ This article shows you how to use the [Azure IoT Tools for Visual Studio Code](h
21
21
22
22
-[Visual Studio Code](https://code.visualstudio.com/)
23
23
24
-
-[Azure IoT Tools](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools) installed for Visual Studio Code.
24
+
-[Azure IoT Tools](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools) installed for Visual Studio Code
25
+
26
+
- An Azure resource group: [create a resource group](/azure/azure-resource-manager/management/manage-resource-groups-portal#create-resource-groups) in the Azure portal
Use the Azure CLI to create a resource group and then add an IoT hub.
23
-
24
-
1. When you create an IoT hub, you must create it in a resource group. Either use an existing resource group, or run the following [command to create a resource group](/cli/azure/resource):
20
+
When you create an IoT hub, you must create it in a resource group. Either use an existing resource group, or run the following [command to create a resource group](/cli/azure/resource):
25
21
26
22
```azurecli-interactive
27
23
az group create --name {your resource group name} --location westus
@@ -33,9 +29,12 @@ Use the Azure CLI to create a resource group and then add an IoT hub.
33
29
> ```azurecli-interactive
34
30
> az account list-locations -o table
35
31
> ```
36
-
>
37
32
38
-
2. Run the following [command to create an IoT hub](/cli/azure/iot/hub#az-iot-hub-create) in your resource group, using a globally unique name for your IoT hub:
33
+
## Create an IoT Hub
34
+
35
+
Use the Azure CLI to create a resource group and then add an IoT hub.
36
+
37
+
Run the following [command to create an IoT hub](/cli/azure/iot/hub#az-iot-hub-create) in your resource group, using a globally unique name for your IoT hub:
39
38
40
39
```azurecli-interactive
41
40
az iot hub create --name {your iot hub name} \
@@ -47,7 +46,19 @@ Use the Azure CLI to create a resource group and then add an IoT hub.
47
46
48
47
The previous command creates an IoT hub in the S1 pricing tier for which you're billed. For more information, see [Azure IoT Hub pricing](https://azure.microsoft.com/pricing/details/iot-hub/).
49
48
50
-
For more information on Azure IoT Hub commands, see the [`az iot hub`](/cli/azure/iot/hub?view=azure-cli-latest&preserve-view=true) reference article.
49
+
For more information on Azure IoT Hub commands, see the [`az iot hub`](/cli/azure/iot/hub) reference article.
50
+
51
+
## Update the IoT hub
52
+
53
+
You can change the settings of an existing IoT hub after it's created. Here are some properties you can set for an IoT hub:
54
+
55
+
**Pricing and scale**: Migrate to a different tier or set the number of IoT Hub units.
56
+
57
+
**IP Filter**: Specify a range of IP addresses that will be accepted or rejected by the IoT hub.
58
+
59
+
**Properties**: A list of properties that you can copy and use elsewhere, such as the resource ID, resource group, location, and so on.
60
+
61
+
For a complete list of options to update an IoT hub, see the [**az iot hub update** commands](/cli/azure/iot/hub#az-iot-hub-update) reference page.
Alternatively, you can use Azure Cloud Shell, if you'd rather not install additional modules onto your machine. The following section gets you started with Azure Cloud Shell.
You need a resource group to deploy an IoT hub. You can use an existing resource group or create a new one.
28
+
29
+
To create a new resource group for your IoT hub, use the [New-AzResourceGroup](/powershell/module/az.Resources/New-azResourceGroup) command. This example creates a resource group called **MyIoTRG1** in the **East US** region:
If you're using Cloud Shell, you're already logged in to your subscription, so you can skip this section. If you're running PowerShell locally instead, enter the following command to sign in to your Azure subscription:
@@ -34,19 +41,9 @@ If you're using Cloud Shell, you're already logged in to your subscription, so y
34
41
Login-AzAccount
35
42
```
36
43
37
-
## Create a resource group
38
-
39
-
You need a resource group to deploy an IoT hub. You can use an existing resource group or create a new one.
40
-
41
-
To create a resource group for your IoT hub, use the [New-AzResourceGroup](/powershell/module/az.Resources/New-azResourceGroup) 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-AzIotHub](/powershell/module/az.IotHub/New-azIotHub) command. This example creates an **S1** hub called **MyTestIoTHub** in the **East US** region:
46
+
Create an IoT hub, using your resource group,. Use the [New-AzIotHub](/powershell/module/az.IotHub/New-azIotHub) command. This example creates an **S1** hub called **MyTestIoTHub** in the **East US** region:
50
47
51
48
```azurepowershell-interactive
52
49
New-AzIotHub `
@@ -76,6 +73,18 @@ Remove-AzIotHub `
76
73
-Name MyTestIoTHub
77
74
```
78
75
76
+
## Update the IoT hub
77
+
78
+
You can change the settings of an existing IoT hub after it's created. Here are some properties you can set for an IoT hub:
79
+
80
+
**Pricing and scale**: Migrate to a different tier or set the number of IoT Hub units.
81
+
82
+
**IP Filter**: Specify a range of IP addresses that will be accepted or rejected by the IoT hub.
83
+
84
+
**Properties**: A list of properties that you can copy and use elsewhere, such as the resource ID, resource group, location, and so on.
85
+
86
+
Explore the [**Set-AzIotHub** commands](/powershell/module/az.iothub/set-aziothub) for a complete list of update options.
87
+
79
88
## Next steps
80
89
81
90
Now that you've deployed an IoT hub using a PowerShell cmdlet, explore more articles:
0 commit comments