|
1 |
| ---- |
2 |
| -title: Create an Azure Active Directory Service Principal from the Azure CLI |
3 |
| -titleSuffix: An Azure Communication Services quickstart |
4 |
| -description: In this quick start we'll create an application and service principal to authenticate with Azure Communication Services. |
5 |
| -services: azure-communication-services |
6 |
| -author: jbeauregardb |
7 |
| -ms.service: azure-communication-services |
8 |
| -ms.subservice: identity |
9 |
| -ms.topic: quickstart |
10 |
| -ms.date: 06/30/2021 |
11 |
| -ms.author: jbeauregardb |
12 |
| -ms.reviewer: mikben |
13 |
| -ms.custom: mode-api, devx-track-azurecli |
14 |
| -ms.devlang: azurecli |
15 |
| ---- |
16 |
| - |
17 |
| -# Quickstart: Authenticate using Azure Active Directory (Azure CLI) |
18 |
| - |
19 |
| -The Azure Identity SDK provides Azure Active Directory (Azure AD) token authentication support for Azure SDK packages. The latest versions of the Azure Communication Services SDKs for .NET, Java, Python, and JavaScript integrate with the Azure Identity library to provide a simple and secure means to acquire an OAuth 2.0 token for authorization of Azure Communication Services requests. |
20 |
| - |
21 |
| -An advantage of the Azure Identity SDK is that it enables you to use the same code to authenticate across multiple services whether your application is running in the development environment or in Azure. |
22 |
| - |
23 |
| -The Azure Identity SDK can authenticate with many methods. In Development we'll be using a service principal tied to a registered application, with credentials stored in Environnment Variables this is suitable for testing and development. |
24 |
| - |
25 |
| -## Prerequisites |
| 1 | +## Additional Prerequisites |
26 | 2 |
|
27 | 3 | - Azure CLI. [Installation guide](/cli/azure/install-azure-cli)
|
28 |
| - - An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free) |
29 | 4 |
|
30 | 5 | ## Setting Up
|
31 | 6 |
|
@@ -80,12 +55,3 @@ The Azure Identity SDK reads values from three environment variables at runtime
|
80 | 55 | > After you set the environment variables, close and re-open your console window. If you are using Visual Studio or another development environment, you may need to restart it in order for it to register the new environment variables.
|
81 | 56 |
|
82 | 57 | Once these variables have been set, you should be able to use the DefaultAzureCredential object in your code to authenticate to the service client of your choice.
|
83 |
| - |
84 |
| -## Next steps |
85 |
| - |
86 |
| -> [!div class="nextstepaction"] |
87 |
| -> [Learn about authentication](../../concepts/authentication.md) |
88 |
| -
|
89 |
| -You may also want to: |
90 |
| - |
91 |
| -- [Learn more about Azure Identity library](/dotnet/api/overview/azure/identity-readme) |
0 commit comments