|
| 1 | +# NOTE: This module will go out of support by March 31, 2023. For authenticating with Azure AD, use module [azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity) instead. For help migrating from `auth` to `azidentiy` please consult the [migration guide](https://aka.ms/azsdk/go/identity/migration). General information about the retirement of this and other legacy modules can be found [here](https://azure.microsoft.com/updates/support-for-azure-sdk-libraries-that-do-not-conform-to-our-current-azure-sdk-guidelines-will-be-retired-as-of-31-march-2023/). |
| 2 | + |
1 | 3 | ## Authentication
|
2 | 4 |
|
3 | 5 | Typical SDK operations must be authenticated and authorized. The `autorest.Authorizer`
|
|
52 | 54 | > for more info. Copy the new principal's ID, secret, and tenant ID for use in
|
53 | 55 | > your app, or consider the `--sdk-auth` parameter for serialized output.
|
54 | 56 |
|
55 |
| -[azure managed service identity]: https://docs.microsoft.com/en-us/azure/active-directory/msi-overview |
| 57 | +[azure managed service identity]: https://docs.microsoft.com/azure/active-directory/msi-overview |
56 | 58 |
|
57 | 59 | - The `auth.NewAuthorizerFromEnvironment()` described above creates an authorizer
|
58 | 60 | from the first available of the following configuration:
|
|
81 | 83 | 4. **Azure Managed Service Identity**: Delegate credential management to the
|
82 | 84 | platform. Requires that code is running in Azure, e.g. on a VM. All
|
83 | 85 | configuration is handled by Azure. See [Azure Managed Service
|
84 |
| - Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview) |
| 86 | + Identity](https://docs.microsoft.com/azure/active-directory/msi-overview) |
85 | 87 | for more details.
|
86 | 88 |
|
87 | 89 | - The `auth.NewAuthorizerFromFile()` method creates an authorizer using
|
@@ -114,7 +116,7 @@ below.
|
114 | 116 |
|
115 | 117 | To use `NewAuthorizerFromCLI()` or `NewAuthorizerFromCLIWithResource()`, follow these steps:
|
116 | 118 |
|
117 |
| - 1. Install [Azure CLI v2.0.12](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) or later. Upgrade earlier versions. |
| 119 | + 1. Install [Azure CLI v2.0.12](https://docs.microsoft.com/cli/azure/install-azure-cli) or later. Upgrade earlier versions. |
118 | 120 | 2. Use `az login` to sign in to Azure.
|
119 | 121 |
|
120 | 122 | If you receive an error, use `az account get-access-token` to verify access.
|
|
0 commit comments