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/create-connect-device.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,8 +157,12 @@ If you want to keep a device in your IoT hub's identity registry, but want to pr
157
157
158
158
* To prevent a device from connecting, set the **Enable connection to IoT Hub** parameter to **Disable**.
159
159
160
+
:::image type="content" source="./media/create-connect-device/disable-device.png" alt-text="screenshot that shows disabling a device in the Azure portal.":::
161
+
160
162
* To completely remove a device from your IoT hub's identity registry, select **Delete**.
161
163
164
+
:::image type="content" source="./media/create-connect-device/delete-device.png" alt-text="screenshot that shows deleting a device in the Azure portal.":::
165
+
162
166
### [Azure CLI](#tab/cli)
163
167
164
168
To disable a device, use the [az iot hub device-identity update](/cli/azure/iot/hub/device-identity#az-iot-hub-device-identity-update) command and change the `status` of the device. For example:
Copy file name to clipboardExpand all lines: articles/iot-hub/create-hub.md
+23-26Lines changed: 23 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: Create an IoT hub
2
+
title: Create an Azure IoT hub
3
3
titleSuffix: Azure IoT Hub
4
-
description: How to create, manage, and delete Azure IoT hubs through the Azure portal and CLI. Includes information about pricing tiers, scaling, security, and messaging configuration.
4
+
description: How to create, manage, and delete Azure IoT hubs through the Azure portal and CLI. Includes information about retrieving the service connection string.
5
5
author: kgremban
6
6
7
7
ms.author: kgremban
@@ -11,7 +11,7 @@ ms.date: 06/10/2024
11
11
ms.custom: ['Role: Cloud Development']
12
12
---
13
13
14
-
# Create an IoT hub using the Azure portal
14
+
# Create and manage Azure IoT hubs
15
15
16
16
This article describes how to create and manage an IoT hub.
17
17
@@ -42,24 +42,6 @@ The previous command creates an IoT hub in the S1 pricing tier for which you're
42
42
43
43
---
44
44
45
-
## Update an IoT hub
46
-
47
-
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:
48
-
49
-
***Pricing and scale**: Migrate to a different tier or set the number of IoT Hub units.
50
-
51
-
***IP Filter**: Specify a range of IP addresses for the IoT hub to accept or reject.
52
-
53
-
***Properties**: A list of properties that you can copy and use elsewhere, such as the resource ID, resource group, location, and so on.
54
-
55
-
### [Azure portal](#tab/portal)
56
-
57
-
### [Azure CLI](#tab/cli)
58
-
59
-
Use the [az iot hub update](/cli/azure/iot/hub#az-iot-hub-update) command to make changes to an existing IoT hub.
60
-
61
-
---
62
-
63
45
## Connect to an IoT hub
64
46
65
47
Provide access permissions to applications and services that use IoT Hub functionality.
@@ -114,11 +96,13 @@ In production scenarios, we recommend using Microsoft Entra ID and Azure role-ba
114
96
115
97
## Delete an IoT hub
116
98
99
+
When you delete an IoT hub, you lose the associated device identity registry. Any registered devices will need to be registered to a new IoT hub to continue sending data. If you want to move or upgrade an IoT hub, or delete an IoT hub but keep the devices, consider [migrating an IoT hub using the Azure CLI](./migrate-hub-state-cli.md).
100
+
117
101
### [Azure portal](#tab/portal)
118
102
119
103
To delete an IoT hub, open your IoT hub in the Azure portal, then choose **Delete**.
120
104
121
-
:::image type="content" source="./media/iot-hub-create-through-portal/delete-iot-hub.png" alt-text="Screenshot showing where to find the delete button for an IoT hub in the Azure portal." lightbox="./media/iot-hub-create-through-portal/delete-iot-hub.png":::
105
+
:::image type="content" source="./media/create-hub/delete-iot-hub.png" alt-text="Screenshot showing where to find the delete button for an IoT hub in the Azure portal." lightbox="./media/create-hub/delete-iot-hub.png":::
***PowerShell cmdlets**: Use the [Az.IoTHub](/powershell/module/az.iothub) set of commands to create and manage IoT hubs.
137
-
***IoT Hub resource provider REST API**: Use the [IoT Hub Resource](/rest/api/iothub/iot-hub-resource) set of operations to create and manage IoT hubs.
138
-
***Azure resource manager templates, Bicep, or Terraform**: Use the [Microsoft.Devices/IoTHubs](/azure/templates/microsoft.devices/iothubs) resource type to create and manage IoT hubs. For examples, see [IoT Hub sample templates](/samples/browse/?terms=iot%20hub&languages=bicep%2Cjson)
139
-
***Visual Studio Code**: Use the [Azure IoT Hub extension for Visual Studio Code](./reference-iot-hub-extension.md) to create and manage IoT hubs.
120
+
In addition to the Azure portal and CLI, the following tools are available to help you work with IoT hubs in whichever way supports your scenario:
121
+
122
+
***PowerShell cmdlets**
123
+
124
+
Use the [Az.IoTHub](/powershell/module/az.iothub) set of commands to create and manage IoT hubs.
125
+
126
+
***IoT Hub resource provider REST API**
127
+
128
+
Use the [IoT Hub Resource](/rest/api/iothub/iot-hub-resource) set of operations to create and manage IoT hubs.
129
+
130
+
***Azure resource manager templates, Bicep, or Terraform**
131
+
132
+
Use the [Microsoft.Devices/IoTHubs](/azure/templates/microsoft.devices/iothubs) resource type to create and manage IoT hubs. For examples, see [IoT Hub sample templates](/samples/browse/?terms=iot%20hub&languages=bicep%2Cjson)
133
+
134
+
***Visual Studio Code**
135
+
136
+
Use the [Azure IoT Hub extension for Visual Studio Code](./reference-iot-hub-extension.md) to create and manage IoT hubs.
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-upgrade.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: kgremban
5
5
6
6
ms.service: iot-hub
7
7
ms.topic: upgrade-and-migration-article
8
-
ms.date: 02/07/2023
8
+
ms.date: 06/21/2024
9
9
ms.author: kgremban
10
10
---
11
11
@@ -20,18 +20,26 @@ When you have more devices and need more capabilities, there are three ways to a
20
20
* Change the size of the IoT hub. For example, migrate a hub from the B1 tier to the B2 tier to increase the number of messages that each unit can support per day from 400,000 to 6 million. Both these changes can occur without interrupting existing operations.
21
21
22
22
* Upgrade to a higher tier. For example, upgrade a hub from the B1 tier to the S1 tier for access to advanced features with the same messaging capacity.
23
+
23
24
> [!Warning]
24
25
> You cannot upgrade from a Free Hub to a Paid Hub through our upgrade function. You must create a Paid hub and migrate the configurations and devices from the Free hub to the Paid hub. This process is documented at [How to migrate an IoT hub](./migrate-hub-state-cli.md).
26
+
25
27
> [!Tip]
26
28
> When you are upgrading your IoT Hub to a higher tier, some messages may be received out of order for a short period of time. If your business logic relies on the order of messages, we recommend upgrading during non-business hours.
27
29
28
30
If you want to downgrade your IoT hub, you can remove units and reduce the size of the IoT hub but you can't downgrade to a lower tier. For example, you can move from the S2 tier to the S1 tier, but not from the S2 tier to the B1 tier. Only one type of [IoT Hub edition](https://azure.microsoft.com/pricing/details/iot-hub/) within a tier can be chosen per IoT hub. For example, you can create an IoT hub with multiple units of S1. However, you can't create an IoT hub with a mix of units from different editions, such as S1 and B3 or S1 and S2.
29
31
30
32
These examples are meant to help you understand how to adjust your IoT hub as your solution changes. For specific information about each tier's capabilities, you should always refer to [Azure IoT Hub pricing](https://azure.microsoft.com/pricing/details/iot-hub/).
31
33
34
+
Get more details about [How to choose the right IoT Hub tier](iot-hub-scaling.md).
35
+
32
36
## Upgrade your existing IoT hub
33
37
34
-
If you want to upgrade an existing IoT hub, you can do so from the Azure portal.
38
+
If you want to upgrade an existing IoT hub, you can do so from the Azure portal or Azure CLI.
39
+
40
+
### [Azure portal](#tab/portal)
41
+
42
+
In the Azure portal, navigate to your IoT hub to view and update its settings.
35
43
36
44
1. Sign in to the [Azure portal](https://portal.azure.com/) and navigate to your IoT hub.
37
45
@@ -47,8 +55,28 @@ If you want to upgrade an existing IoT hub, you can do so from the Azure portal.
47
55
48
56
:::image type="content" source="./media/iot-hub-upgrade/message-pricing-advanced-options.png" alt-text="Screenshot that shows how to upgrade the size or units of your IoT hub.":::
49
57
50
-
The maximum limit of device-to-cloud partitions for basic tier and standard tier IoT hubs is 32. Most IoT hubs only need four partitions. You choose the number of partitions when you create the IoT hub. The number of partitions relates the device-to-cloud messages to the number of simultaneous readers of these messages. The number of partitions remains unchanged when you migrate from the basic tier to the standard tier.
58
+
### [Azure CLI](#tab/cli)
59
+
60
+
Use the [az iot hub show](/cli/azure/iot/hub#az-iot-hub-show) command to view the current details of an IoT hub.
61
+
62
+
```bash
63
+
az iot hub show --name <HUB_NAME>
64
+
```
51
65
52
-
## Next steps
66
+
Use the [az iot hub update](/cli/azure/iot/hub#az-iot-hub-update) command to make changes to an existing IoT hub.
53
67
54
-
Get more details about [How to choose the right IoT Hub tier](iot-hub-scaling.md).
68
+
For example, the following command updates the IoT hub tier to `S2`, or standard tier, size 2.
69
+
70
+
```bash
71
+
az iot hub update --name <HUB_NAME> --sku S2
72
+
```
73
+
74
+
For example, the following command sets the number of units for an IoT hub. The type of units in an IoT hub are determined by the size value of the tier (1, 2, or 3) but you can scale up or down by changing the number of units.
75
+
76
+
```bash
77
+
az iot hub update -n MyIotHub --unit 2
78
+
```
79
+
80
+
---
81
+
82
+
The maximum limit of device-to-cloud partitions for basic tier and standard tier IoT hubs is 32. Most IoT hubs only need four partitions. You choose the number of partitions when you create the IoT hub. The number of partitions relates the device-to-cloud messages to the number of simultaneous readers of these messages. The number of partitions remains unchanged when you migrate from the basic tier to the standard tier.
0 commit comments