@@ -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
77771 . ** 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
255255Great! 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
259259To 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
328328Here' 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
334334Well done! You now know how to use Microsoft Entra ID to authenticate requests to your Azure AI resource.
0 commit comments