From 3e2a9879e96092da2ff97a2fdc79a78cb4ed0f3b Mon Sep 17 00:00:00 2001 From: Avani Gupta Date: Fri, 30 Oct 2020 14:48:46 -0700 Subject: [PATCH] Remove resource from get_login_credentials call --- src/azure-cli/azure/cli/command_modules/appconfig/_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appconfig/_utils.py b/src/azure-cli/azure/cli/command_modules/appconfig/_utils.py index 6eedf65f04d..e8791f489e5 100644 --- a/src/azure-cli/azure/cli/command_modules/appconfig/_utils.py +++ b/src/azure-cli/azure/cli/command_modules/appconfig/_utils.py @@ -149,9 +149,7 @@ def get_appconfig_data_client(cmd, name, connection_string, auth_mode, endpoint) from azure.cli.core._profile import Profile profile = Profile(cli_ctx=cmd.cli_ctx) - # Due to this bug in get_login_credentials: https://github.com/Azure/azure-cli/issues/15179, - # we need to manage the AAD scope by passing appconfig endpoint as resource - cred, _, _ = profile.get_login_credentials(resource=endpoint) + cred, _, _ = profile.get_login_credentials() try: azconfig_client = AzureAppConfigurationClient(credential=cred, base_url=endpoint,