Skip to content

Commit 91cf9c9

Browse files
authored
Merge pull request #107415 from JimacoMS3/python-module-twin-howto-v2
Python module twin howto v2
2 parents f38b42c + 4f3de80 commit 91cf9c9

File tree

7 files changed

+210
-91
lines changed

7 files changed

+210
-91
lines changed

articles/iot-hub/iot-hub-python-python-module-twin-getstarted.md

Lines changed: 178 additions & 91 deletions
Large diffs are not rendered by default.
8.94 KB
Loading
11.7 KB
Loading
31.6 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: include file
3+
description: include file
4+
author: robinsh
5+
ms.service: iot-hub
6+
services: iot-hub
7+
ms.topic: include
8+
ms.date: 04/03/2020
9+
ms.author: robinsh
10+
ms.custom: include file
11+
---
12+
<!-- This tells how to create a custom shared access policy that has service connect and registry RW permissions for your IoT hub and get the connection string for it-->
13+
14+
To create a shared access policy that grants **service connect** and **registry write** permissions and to get a connection string for this policy, follow these steps:
15+
16+
1. In the [Azure portal](https://portal.azure.com), select **Resource groups**. Select the resource group where your hub is located, and then select your hub from the list of resources.
17+
18+
1. On the left-side pane of your hub, select **Shared access policies**.
19+
20+
1. From the top menu above the list of policies, select **Add**.
21+
22+
1. Under **Add a shared access policy**, enter a descriptive name for your policy, such as *serviceAndRegistryReadWrite*. Under **Permissions**, select **Registry write** and **Service connect**, and then select **Create**. (The **Registry read** permission is included automatically when you select **Registry write**.)
23+
24+
![Show how to add a new shared access policy](./media/iot-hub-include-find-service-regrw-connection-string/iot-hub-add-svc-regrw-policy.png)
25+
26+
1. Select your new policy from the list of policies.
27+
28+
1. Under **Shared access keys**, select the copy icon for the **Connection string -- primary key** and save the value.
29+
30+
![Show how to retrieve the connection string](./media/iot-hub-include-find-service-regrw-connection-string/iot-hub-get-connection-string.png)
31+
32+
For more information about IoT Hub shared access policies and permissions, see [Access control and permissions](../articles/iot-hub/iot-hub-devguide-security.md#access-control-and-permissions).
56.1 KB
Loading
75.1 KB
Loading

0 commit comments

Comments
 (0)