Skip to content

Commit 84e9b45

Browse files
authored
Merge pull request #285777 from kgremban/aug28-csincludes
IoT auth method includes
2 parents f74b48f + aac76a1 commit 84e9b45

5 files changed

+30
-0
lines changed

articles/iot-hub/tutorial-message-enrichments.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ The values for these variables should be for the same resources you used in the
102102

103103
Create a second endpoint and route for the enriched messages.
104104

105+
[!INCLUDE [iot-authentication-service-connection-string.md](../../includes/iot-authentication-service-connection-string.md)]
106+
107+
105108
# [Azure portal](#tab/portal)
106109

107110
1. In the [Azure portal](https://portal.azure.com), go to your IoT hub.

articles/iot-hub/tutorial-routing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ There are no other prerequisites for the Azure portal.
5454

5555
Register a new device in your IoT hub.
5656

57+
[!INCLUDE [iot-authentication-device-connection-string.md](../../includes/iot-authentication-device-connection-string.md)]
58+
5759
# [Azure portal](#tab/portal)
5860

5961
1. Sign in to the [Azure portal](https://portal.azure.com) and navigate to your IoT hub.
@@ -255,6 +257,9 @@ Now set up the routing for the storage account. In this section you define a new
255257

256258
[!INCLUDE [iot-hub-include-blob-storage-format](../../includes/iot-hub-include-blob-storage-format.md)]
257259

260+
[!INCLUDE [iot-authentication-service-connection-string.md](../../includes/iot-authentication-service-connection-string.md)]
261+
262+
258263
# [Azure portal](#tab/portal)
259264

260265
1. In the [Azure portal](https://portal.azure.com), go to your IoT hub.

articles/iot-hub/tutorial-use-metrics-and-diags.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ For this tutorial, we've provided a CLI script that performs the following steps
6767

6868
4. Register a device identity for the simulated device that sends messages to your IoT hub. Save the device connection string to use to configure the simulated device.
6969

70+
[!INCLUDE [iot-authentication-device-connection-string.md](../../includes/iot-authentication-device-connection-string.md)]
71+
7072
### Set up resources using Azure CLI
7173

7274
Copy and paste the following commands into Cloud Shell or a local command line instance that has the Azure CLI installed. Some of the commands may take some time to execute. The new resources are created in the resource group *ContosoResources*.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
author: kgremban
3+
ms.author: kgremban
4+
ms.service: iot
5+
ms.topic: include
6+
ms.date: 08/28/2024
7+
---
8+
9+
>[!IMPORTANT]
10+
>This article includes steps to connect a device using a shared access signature, also called symmetric key authentication. This authentication method is convenient for testing and evaluation, but authenticating a device using X.509 certificates is a more secure approach. To learn more, see [Security best practices > Connection security](../articles/iot/iot-overview-security.md#connection-security).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
author: kgremban
3+
ms.author: kgremban
4+
ms.service: iot
5+
ms.topic: include
6+
ms.date: 08/28/2024
7+
---
8+
9+
>[!IMPORTANT]
10+
>This article includes steps to connect to a service using a shared access signature. This authentication method is convenient for testing and evaluation, but authenticating to a service with Microsoft Entra ID or managed identities is a more secure approach. To learn more, see [Security best practices > Cloud security](../articles/iot/iot-overview-security.md#cloud-security).

0 commit comments

Comments
 (0)