Skip to content

Commit cc2f850

Browse files
committed
Edits
1 parent 7ca782a commit cc2f850

4 files changed

+7
-9
lines changed

includes/iot-hub-howto-connect-service-iothub-entra-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.date: 11/19/2024
1313

1414
A backend app that uses Microsoft Entra must successfully authenticate and obtain a security token credential before connecting to IoT Hub. This token is passed to a IoT Hub connection method. For general information about setting up and using Microsoft Entra for IoT Hub, see [Control access to IoT Hub by using Microsoft Entra ID](/azure/iot-hub/authenticate-authorize-azure-ad).
1515

16-
For an overview of Java SDK authentication, see [Getting started with user authentication on Azure](/azure/developer/java/sdk/authentication/azure-hosted-apps).
16+
For an overview of Java SDK authentication, see [Azure authentication with Java and Azure Identity](/azure/developer/java/sdk/authentication/overview).
1717

1818
For simplicity, this section focuses on describing authentication using client secret.
1919

@@ -39,7 +39,7 @@ For more information about the pros and cons of using `DefaultAzureCredential`,
3939

4040
You can authenticate Microsoft Entra app credentials using [DefaultAzureCredentialBuilder](/java/api/com.azure.identity.defaultazurecredentialbuilder). Save connection parameters such as client secret tenantID, clientID, and client secret values as environmental variables. Once the `TokenCredential` is created, pass it to [ServiceClient](/java/api/com.azure.core.annotation.serviceclient) or other builder as the 'credential' parameter.
4141

42-
In this example, `DefaultAzureCredentialBuilder` attempts to authenticate a connection from the list described in [DefaultAzureCredential](/java/api/com.azure.identity.defaultazurecredential). The result of a successful Microsoft Entra authentication is a security token credential that is passed to a constructor.
42+
In this example, `DefaultAzureCredentialBuilder` attempts to authenticate a connection from the list described in [DefaultAzureCredential](/java/api/com.azure.identity.defaultazurecredential). The result of a successful Microsoft Entra authentication is a security token credential that is passed to a constructor such as [ServiceClient](/java/api/com.azure.core.annotation.serviceclient).
4343

4444
```java
4545
TokenCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();

includes/iot-hub-howto-module-twins-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 11/19/2024
1111
ms.custom: mqtt, devx-track-csharp, devx-track-dotnet
1212
---
1313

14-
* Requires Visual Studio.
14+
* Requires Visual Studio
1515

1616
## Overview
1717

@@ -178,7 +178,7 @@ registryManager = RegistryManager.CreateFromConnectionString(connectionString);
178178

179179
#### Connect using Microsoft Entra
180180

181-
[!INCLUDE [iot-hub-howto-connect-service-iothub-entra-java](iot-hub-howto-connect-service-iothub-entra-java.md)]
181+
[!INCLUDE [iot-hub-howto-connect-service-iothub-entra-dotnet](iot-hub-howto-connect-service-iothub-entra-dotnet.md)]
182182

183183
### Read and update module identity fields
184184

includes/iot-hub-howto-module-twins-node.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 11/19/2024
1111
ms.custom: mqtt, devx-track-js
1212
---
1313

14-
* Requires Node.js version 10.0.x or later.
14+
* Requires Node.js version 10.0.x or later
1515

1616
## Overview
1717

@@ -338,10 +338,9 @@ You can connect a backend service to IoT Hub using the following methods:
338338
339339
Use [fromConnectionString](/javascript/api/azure-iothub/registry?#azure-iothub-registry-fromconnectionstring) to connect to IoT hub.
340340
341-
The SDK methods in this section require these shared access policy permissions:
341+
The SDK methods in this section require this shared access policy permission:
342342
343343
* **Registry Write** - required to add a module (or device) to the IoT Hub registry
344-
* **Service Connect** - required to add desired properties to a module
345344
346345
As a parameter to `CreateFromConnectionString`, supply a shared access policy connection string that includes these permissions. For more information about shared access policies, see [Control access to IoT Hub with shared access signatures](/azure/iot-hub/authenticate-authorize-sas).
347346

includes/iot-hub-howto-module-twins-python.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ You can connect a backend service to IoT Hub using the following methods:
177177

178178
Connect to IoT hub using [from_connection_string](/python/api/azure-iot-hub/azure.iot.hub.iothubregistrymanager?#azure-iot-hub-iothubregistrymanager-from-connection-string).
179179

180-
The SDK methods in this section require these shared access policy permissions:
180+
The SDK methods in this section require this shared access policy permission:
181181

182-
* **Registry Write** - required to add a module (or device) to the IoT Hub registry
183182
* **Service Connect** - required to add desired properties to a module
184183

185184
As a parameter to `CreateFromConnectionString`, supply a shared access policy connection string that includes these permissions. For more information about shared access policies, see [Control access to IoT Hub with shared access signatures](/azure/iot-hub/authenticate-authorize-sas).

0 commit comments

Comments
 (0)