From 9f0eeaf0eaeb56efd652c9a3f43fe784acf532c5 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 4 Nov 2020 10:33:00 +0800 Subject: [PATCH] mgmt, fix docs (#17151) --- sdk/resourcemanager/docs/AUTH.md | 2 +- sdk/resourcemanager/docs/SAMPLE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/resourcemanager/docs/AUTH.md b/sdk/resourcemanager/docs/AUTH.md index 98cd5c364fbf5..9b2b97e8d0cc7 100644 --- a/sdk/resourcemanager/docs/AUTH.md +++ b/sdk/resourcemanager/docs/AUTH.md @@ -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(); ``` diff --git a/sdk/resourcemanager/docs/SAMPLE.md b/sdk/resourcemanager/docs/SAMPLE.md index df9c90313a4e7..2c3617589f505 100644 --- a/sdk/resourcemanager/docs/SAMPLE.md +++ b/sdk/resourcemanager/docs/SAMPLE.md @@ -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)