title | description | author | ms.service | services | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
include file |
include file |
robinsh |
iot-hub |
iot-hub |
include |
07/16/2019 |
robinsh |
include file |
To get the IoT Hub connection string for the service policy, follow these steps:
-
In the Azure portal, select Resource groups. Select the resource group where your hub is located, and then select your hub from the list of resources.
-
On the left-side pane of your IoT hub, select Shared access policies.
-
From the list of policies, select the service policy.
-
Under Shared access keys, select the copy icon for the Connection string -- primary key and save the value.
For more information about IoT Hub shared access policies and permissions, see Access control and permissions.