Skip to content

Commit 385207e

Browse files
authored
Merge pull request #206742 from w-azure/winona-device-twins
Updated Device Twins
2 parents 55665a9 + d834b43 commit 385207e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

articles/iot-hub/iot-hub-csharp-csharp-twin-getstarted.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ In this article, you create these .NET console apps:
4848

4949
In this section, you create a .NET console app, using C#, that adds location metadata to the device twin associated with **myDeviceId**. It then queries the device twins stored in the IoT hub selecting the devices located in the US, and then the ones that reported a cellular connection.
5050

51-
1. In Visual Studio, select **Create a new project**. In **Create new project**, select **Console App (.NET Framework)**, and then select **Next**.
51+
1. In Visual Studio, select **File > New > Project**. In **Create a new project**, select **Console App (.NET Framework)**, and then select **Next**.
5252

53-
1. In **Configure your new project**, name the project **AddTagsAndQuery**.
53+
1. In **Configure your new project**, name the project **AddTagsAndQuery**, the select **Next**.
5454

55-
![Configure your AddTagsAndQuery project](./media/iot-hub-csharp-csharp-twin-getstarted/config-addtagsandquery-app.png)
55+
:::image type="content" source="./media/iot-hub-csharp-csharp-twin-getstarted/config-addtagsandquery-app.png" alt-text="Screenshot of how to create a new Visual Studio project." lightbox="./media/iot-hub-csharp-csharp-twin-getstarted/config-addtagsandquery-app.png":::
56+
57+
1. Accept the default version of the .NET Framework, then select **Create** to create the project.
5658

5759
1. In Solution Explorer, right-click the **AddTagsAndQuery** project, and then select **Manage NuGet Packages**.
5860

553 Bytes
Loading

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ To create a shared access policy that grants **service connect** and **registry
1717

1818
1. On the left-side pane of your hub, select **Shared access policies**.
1919

20-
1. From the top menu above the list of policies, select **Add**.
20+
1. From the top menu above the list of policies, select **Add shared policy access policy**.
2121

22-
1. Under **Add shared access policy**, enter a descriptive name for your policy, such as *serviceAndRegistryRead*. Under **Permissions**, select **Registry read** and **Service connect**, and then select **Add**.
22+
1. 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**.
2323

24-
:::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":::
24+
:::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":::
2525

2626
1. Select your new policy from the list of policies.
2727

2828
1. Select the copy icon for the **Primary connection string** and save the value.
2929

30-
:::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":::
30+
:::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":::
3131

3232
For more information about IoT Hub shared access policies and permissions, see [Access control and permissions](../articles/iot-hub/iot-hub-dev-guide-sas.md#access-control-and-permissions).

includes/iot-hub-selector-twin-get-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ Tags and properties cannot contain arrays, but objects can be nested.
3939

4040
The following illustration shows device twin organization:
4141

42-
![Device twin image showing functionality](./media/iot-hub-selector-twin-get-started/twin.png)
42+
:::image type="content" source="./media/iot-hub-selector-twin-get-started/twin.png" alt-text="Screenshot of a device twin concept diagram.":::
4343

4444
Additionally, the solution back end can query device twins based on all the above data.
4545
For more information about device twins, see [Understand device twins](../articles/iot-hub/iot-hub-devguide-device-twins.md). For more information about querying, see [IoT Hub query language](../articles/iot-hub/iot-hub-devguide-query-language.md).
4646

47-
4847
This article shows you how to:
4948

5049
* Create a back-end app that adds tags to a device twin, and a simulated device app that reports its connectivity channel as a reported property on the device twin.

0 commit comments

Comments
 (0)