@@ -19,11 +19,11 @@ This article guides you on how to create and utilize a Microsoft Entra ID identi
19
19
20
20
* [ Set up prerequisites] ( #prerequisites ) .
21
21
* [ 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 )
25
25
* [ 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 )
27
27
28
28
## Prerequisites
29
29
@@ -77,7 +77,7 @@ To use Microsoft Entra authentication, key-based (local) authentication must be
77
77
1 . ** Disable local authentication**
78
78
79
79
``` 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
81
81
82
82
```
83
83
@@ -254,7 +254,7 @@ Access tokens are a type of security token designed for authorization, granting
254
254
255
255
Great! Now let's make an REST API call to the Azure Translator AI API.
256
256
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
258
258
259
259
To make a valid REST API request, the following values are required:
260
260
@@ -327,8 +327,8 @@ Replace {your-custom-domain} with the value form the Azure portal and {access-to
327
327
328
328
Here' s an example of the JSON response:
329
329
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
+ ```
333
333
334
334
Well done! You now know how to use Microsoft Entra ID to authenticate requests to your Azure AI resource.
0 commit comments