Skip to content

Commit de4ad2e

Browse files
authored
powershell limitations for endpoints
1 parent 1a7f270 commit de4ad2e

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

articles/iot-hub/how-to-routing-powershell.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ ms.author: kgremban
1212

1313
# Create and delete routes and endpoints by using Azure PowerShell
1414

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

1717
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).
1818

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+
1924
## Prerequisites
2025

2126
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
6873

6974
* (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).
7075

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-
8376
---
8477

8578
## Create endpoints
@@ -92,7 +85,7 @@ The service that you use to create your endpoint must first exist in your Azure
9285
> If you use a local version of Azure PowerShell, [sign in to Azure PowerShell](/powershell/azure/authenticate-azureps) before you begin.
9386
>
9487
95-
# [Event Hubs](#tab/eventhubs)
88+
### [Event Hubs](#tab/eventhubs)
9689

9790
The commands in the following procedures use these references:
9891

@@ -113,7 +106,7 @@ The commands in the following procedures use these references:
113106

114107
To see all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
115108

116-
# [Service Bus queue](#tab/servicebusqueue)
109+
### [Service Bus queue](#tab/servicebusqueue)
117110

118111
The commands in the following procedures use these references:
119112

@@ -136,7 +129,7 @@ To create a new Service Bus queue endpoint:
136129

137130
For a list of all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
138131

139-
# [Service Bus topic](#tab/servicebustopic)
132+
### [Service Bus topic](#tab/servicebustopic)
140133

141134
The commands in the following procedures use these references:
142135

@@ -157,7 +150,7 @@ The commands in the following procedures use these references:
157150

158151
For a list of all routing endpoint options, see [Add-AzIotHubRoutingEndpoint](/powershell/module/az.iothub/add-aziothubroutingendpoint).
159152

160-
# [Azure Storage](#tab/azurestorage)
153+
### [Azure Storage](#tab/azurestorage)
161154

162155
The commands in the following procedures use these references:
163156

0 commit comments

Comments
 (0)