Skip to content

Commit 6f2720c

Browse files
pvaneckscottaddie
andauthored
[Identity] Add README section about Powershell credential (Azure#40729)
In the `Authenticate during local development` section, we are missing a subsection about using the AzurePowerShellCredential. Signed-off-by: Paul Van Eck <[email protected]> Co-authored-by: Scott Addie <[email protected]>
1 parent 937c4aa commit 6f2720c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdk/identity/azure-identity/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ To authenticate with the [Azure Developer CLI][azure_developer_cli], run the com
4141

4242
For systems without a default web browser, the `azd auth login --use-device-code` command uses the device code authentication flow.
4343

44+
#### Authenticate via Azure PowerShell
45+
46+
Developers coding outside of an IDE can also use [Azure PowerShell][azure_powershell] to authenticate. Applications using `DefaultAzureCredential` or `AzurePowerShellCredential` can then use this account to authenticate calls in their application when running locally.
47+
48+
To authenticate with Azure PowerShell, run the `Connect-AzAccount` cmdlet. By default, like the Azure CLI, `Connect-AzAccount` launches the default web browser to authenticate the user. For systems without a default web browser, the `Connect-AzAccount` uses the device code authentication flow. The user can also force Azure PowerShell to use the device code flow rather than launching a browser by specifying the `-UseDeviceAuthentication` argument.
49+
4450
## Key concepts
4551

4652
### Credentials
@@ -363,6 +369,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
363369
[azd_cli_cred_ref]: https://aka.ms/azsdk/python/identity/azuredeveloperclicredential
364370
[azure_cli]: https://learn.microsoft.com/cli/azure
365371
[azure_developer_cli]:https://aka.ms/azure-dev
372+
[azure_powershell]: https://learn.microsoft.com/powershell/azure
366373
[azure_core_transport_doc]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport
367374
[azure_identity_broker]: https://pypi.org/project/azure-identity-broker
368375
[azure_identity_broker_readme]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity-broker

0 commit comments

Comments
 (0)