You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/identity/includes/active-directory/service-principal-cli.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ When using Active Directory for other Azure Resources, you should be using Manag
15
15
16
16
## Authenticate a registered application in the development environment
17
17
18
-
If your development environment does not support single sign-on or login via a web browser, then you can use a registered application to authenticate from the development environment.
18
+
If your development environment doesn't support single sign-on or login via a web browser, then you can use a registered application to authenticate from the development environment.
19
19
20
20
### Creating an Azure Active Directory Registered Application
21
21
22
-
To create a registered application from the Azure CLI, you need to be logged in to the Azure account where you want the operations to take place. To do this, you can use the `az login` command and enter your credentials in the browser. Once you are logged in to your Azure account from the CLI, we can call the `az ad sp create-for-rbac` command to create the registered application and service principal.
22
+
To create a registered application from the Azure CLI, you need to be logged in to the Azure account where you want the operations to take place. To do this, you can use the `az login` command and enter your credentials in the browser. Once you're logged in to your Azure account from the CLI, we can call the `az ad sp create-for-rbac` command to create the registered application and service principal.
23
23
24
-
The following examples uses the Azure CLI to create a new registered application
24
+
The following example uses the Azure CLI to create a new registered application:
25
25
26
26
```azurecli
27
27
az ad sp create-for-rbac --name <application-name> --role Contributor --scopes /subscriptions/<subscription-id>
@@ -52,6 +52,6 @@ The Azure Identity SDK reads values from three environment variables at runtime
52
52
|`AZURE_CLIENT_SECRET`|`password` value from the generated JSON |
53
53
54
54
> [!IMPORTANT]
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.
55
+
> After you set the environment variables, close and re-open your console window. If you're using Visual Studio or another development environment, you may need to restart it in order for it to register the new environment variables.
56
56
57
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.
0 commit comments