Skip to content

Commit d7e5f1b

Browse files
committed
yay!
1 parent 15710de commit d7e5f1b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/ai-services/translator/how-to/microsoft-entra-id-auth.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ This article guides you on how to create and utilize a Microsoft Entra ID identi
1919

2020
* [Set up prerequisites](#prerequisites).
2121
* [Disable key-based (local) authentication](#disable-key-authentication)
22-
* [Register an identity application with Microsoft Entra ID](#register-an-identity-application-with-microsoft-entra-id).
23-
* [Add a client secret](#add-a-client-secret-credential).
24-
* [Assign an `RBAC` (role-based access control) role to grant access permissions to your application.](#add-api-permissions).
22+
* [Register an identity application with Microsoft Entra ID](#register-an-identity-application-with-microsoft-entra-id)
23+
* [Add a client secret](#add-a-client-secret-credential)
24+
* [Assign an `RBAC` (role-based access control) role to grant access permissions to your application.](#add-api-permissions)
2525
* [Obtain an access token](#obtain-an-access-token-with-oauth-client-credentials-flow)
26-
* [Make a request to the Azure AI Translator API](#).
26+
* [Make a request to the Azure AI Translator API](#use-access-token-authentication-for-a-rest-api-request)
2727

2828
## Prerequisites
2929

@@ -77,7 +77,7 @@ To use Microsoft Entra authentication, key-based (local) authentication must be
7777
1. **Disable local authentication**
7878

7979
```powershell
80-
Set-AzCognitiveServicesAccount -ResourceGroupName "my-resource-group" -Name "my-resource-name" -DisableLocalAuth $true
80+
Set-AzCognitiveServicesAccount -ResourceGroupName "my-resource-group" -Name "my-resource-name" -DisableLocalAuth $true
8181
8282
```
8383

@@ -254,7 +254,7 @@ Access tokens are a type of security token designed for authorization, granting
254254

255255
Great! Now let's make an REST API call to the Azure Translator AI API.
256256

257-
## Use the obtained access token to authenticate your requests to the Translator Text API
257+
## Use access token authentication for a REST API request
258258

259259
To make a valid REST API request, the following values are required:
260260

@@ -327,8 +327,8 @@ Replace {your-custom-domain} with the value form the Azure portal and {access-to
327327

328328
Here's an example of the JSON response:
329329
330-
```json
331-
[{"detectedLanguage":{"language":"es","score":1.0},"translations":[{"text":"Hello","to":"en"}]}]
332-
```
330+
```json
331+
[{"detectedLanguage":{"language":"es","score":1.0},"translations":[{"text":"Hello","to":"en"}]}]
332+
```
333333
334334
Well done! You now know how to use Microsoft Entra ID to authenticate requests to your Azure AI resource.

0 commit comments

Comments
 (0)