Skip to content

Files

Latest commit

 

History

History
32 lines (22 loc) · 1.97 KB

iot-hub-include-find-custom-connection-string.md

File metadata and controls

32 lines (22 loc) · 1.97 KB
title description author ms.service services ms.topic ms.date ms.author ms.custom
include file
include file
kgremban
iot-hub
iot-hub
include
11/02/2018
kgremban
include file

To create a shared access policy that grants service connect and registry read permissions and get a connection string for this policy, follow these steps:

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

  2. On the left-side pane of your hub, select Shared access policies.

  3. From the top menu above the list of policies, select Add shared policy access policy.

  4. In the Add shared access policy pane on the right, enter a descriptive name for your policy, such as serviceAndRegistryRead. Under Permissions, select Registry Read and Service Connect, and then select Add.

    :::image type="content" source="./media/iot-hub-include-find-custom-connection-string/iot-hub-add-custom-policy.png" alt-text="Screen capture that shows how to add a new shared access policy." border="true" lightbox="./media/iot-hub-include-find-custom-connection-string/iot-hub-add-custom-policy.png":::

  5. Select your new policy from the list of policies.

  6. Select the copy icon for the Primary connection string and save the value.

    :::image type="content" source="./media/iot-hub-include-find-custom-connection-string/iot-hub-get-connection-string.png" alt-text="Screen capture that shows how to retrieve the connection string." border="true" lightbox="./media/iot-hub-include-find-custom-connection-string/iot-hub-get-connection-string.png":::

For more information about IoT Hub shared access policies and permissions, see Access control and permissions.