Skip to content

Commit

Permalink
mgmt, fix docs (Azure#17151)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Nov 4, 2020
1 parent 560a085 commit 9f0eeaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/docs/AUTH.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Sample code for Azure Germany, with `EnvironmentCredential`:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE_GERMANY);
EnvironmentCredential credential = new EnvironmentCredentialBuilder()
.authorityHost(profile.environment().getActiveDirectoryEndpoint())
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/docs/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `AzureResourceManager` class is the simplest entry point for creating and in
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.environment().getActiveDirectoryEndpoint())
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
AzureResourceManager azure = AzureResourceManager
.authenticate(credential, profile)
Expand Down

0 comments on commit 9f0eeaf

Please sign in to comment.