Skip to content

Commit fbf6031

Browse files
Merge pull request #7000 from billwert/fix-app-service-docs
Update troubleshooting for Azure App Service
2 parents 237c106 + 8eff1ce commit fbf6031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/java/sdk/troubleshooting-authentication-azure-hosted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ When you use `ManagedIdentityCredential`, you can optionally try/catch for `Cred
7373

7474
#### Verify that the App Service Managed Identity endpoint is available
7575

76-
If you have access to SSH into the App Service instance, you can verify that managed identity is available in the environment. First, ensure that you've set the environment variables `MSI_ENDPOINT` and `MSI_SECRET` in the environment. Then, you can verify that the managed identity endpoint is available using `curl`, as shown in the following example:
76+
If you have access to SSH into the App Service instance, you can verify that managed identity is available in the environment. Use `curl` to validate that the managed identity is available, as shown in the following example:
7777

7878
```bash
79-
curl 'http://169.254.169.254/metadata/identity/oauth2/token?resource=https://management.core.windows.net&api-version=2018-02-01' -H "Metadata: true"
79+
curl "$IDENTITY_ENDPOINT?resource=https://management.core.windows.net&api-version=2019-08-01" -H "X-IDENTITY-HEADER: $IDENTITY_HEADER"
8080
```
8181

8282
> [!WARNING]

0 commit comments

Comments
 (0)