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/how-to-routing-powershell.md
+10-17Lines changed: 10 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,15 @@ ms.author: kgremban
12
12
13
13
# Create and delete routes and endpoints by using Azure PowerShell
14
14
15
-
This article shows you how to create a route and endpoint in your hub in Azure IoT Hub and then delete your route and endpoint. Learn how to use Azure PowerShell to create routes and endpoints for Azure Event Hubs, Azure Service Bus queues and topics, Azure Storage, and Cosmos DB.
15
+
This article shows you how to create a route and endpoint in your hub in Azure IoT Hub and then delete your route and endpoint. Learn how to use Azure PowerShell to create routes and endpoints for Azure Event Hubs, Azure Service Bus queues and topics, and Azure Storage.
16
16
17
17
To learn more about how routing works in IoT Hub, see [Use IoT Hub message routing to send device-to-cloud messages to different endpoints](./iot-hub-devguide-messages-d2c.md). To walk through setting up a route that sends messages to storage and then testing on a simulated device, see [Tutorial: Send device data to Azure Storage by using IoT Hub message routing](./tutorial-routing.md?tabs=portal).
18
18
19
+
> [!NOTE]
20
+
> Currently, PowerShell doesn't support managed identity authentication types for creating endpoints. If you can't use SAS authentication in your scenario, use one of the other management tools to create endpoints.
21
+
>
22
+
> Also, PowerShell currently doesn't support creating Cosmos DB endpoints.
23
+
19
24
## Prerequisites
20
25
21
26
Review the prerequisites for this article based on the type of endpoint you want to route the messages to.
@@ -68,18 +73,6 @@ Review the prerequisites for this article based on the type of endpoint you want
68
73
69
74
* (Recommended) A managed identity with role-based access control permissions for the Storage account. For more information, see [Assign an Azure role for access to blob data](../storage/blobs/assign-azure-role-data-access.md).
70
75
71
-
### [Cosmos DB](#tab/cosmosdb)
72
-
73
-
* An Azure subscription. If you don't have an Azure subscription, create a [free Azure account](https://azure.microsoft.com/free/) before you begin.
74
-
75
-
* An IoT hub. If you don't have a hub, you can follow the steps to [create an IoT hub](create-hub.md).
76
-
77
-
* Azure PowerShell. To use Azure PowerShell locally, install the [Azure PowerShell module](/powershell/azure/install-azure-powershell) on your computer. Alternatively, to use Azure PowerShell in a web browser, enable [Azure Cloud Shell](../cloud-shell/overview.md).
78
-
79
-
* An Azure Cosmos DB resource. If you need to create a new Cosmos DB database and container, see [Quickstart: Create an Azure Cosmos DB and a container](/azure/cosmos-db/nosql/quickstart-portal).
80
-
81
-
* (Recommended) A managed identity with role-based access control permissions for the Cosmos DB account. For more information, see [Use data plane role-based access control with Azure Cosmos DB for NoSQL](/azure/cosmos-db/nosql/security/how-to-grant-data-plane-role-based-access).
82
-
83
76
---
84
77
85
78
## Create endpoints
@@ -92,7 +85,7 @@ The service that you use to create your endpoint must first exist in your Azure
92
85
> If you use a local version of Azure PowerShell, [sign in to Azure PowerShell](/powershell/azure/authenticate-azureps) before you begin.
93
86
>
94
87
95
-
# [Event Hubs](#tab/eventhubs)
88
+
###[Event Hubs](#tab/eventhubs)
96
89
97
90
The commands in the following procedures use these references:
98
91
@@ -113,7 +106,7 @@ The commands in the following procedures use these references:
113
106
114
107
To see all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
115
108
116
-
# [Service Bus queue](#tab/servicebusqueue)
109
+
###[Service Bus queue](#tab/servicebusqueue)
117
110
118
111
The commands in the following procedures use these references:
119
112
@@ -136,7 +129,7 @@ To create a new Service Bus queue endpoint:
136
129
137
130
For a list of all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
138
131
139
-
# [Service Bus topic](#tab/servicebustopic)
132
+
###[Service Bus topic](#tab/servicebustopic)
140
133
141
134
The commands in the following procedures use these references:
142
135
@@ -157,7 +150,7 @@ The commands in the following procedures use these references:
157
150
158
151
For a list of all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
159
152
160
-
# [Azure Storage](#tab/azurestorage)
153
+
###[Azure Storage](#tab/azurestorage)
161
154
162
155
The commands in the following procedures use these references:
0 commit comments