-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make interaction use azureProfile.json from .azure #5442
Conversation
View a preview at https://prompt.ws/r/Azure/azure-cli/5442 |
@@ -634,7 +634,7 @@ def cli_execute(self, cmd): | |||
azure_folder = self.config.config_dir | |||
if not os.path.exists(azure_folder): | |||
os.makedirs(azure_folder) | |||
ACCOUNT.load(os.path.join(azure_folder, 'azureProfile.json')) | |||
ACCOUNT.load(os.path.join(get_config_dir(), 'azureProfile.json')) | |||
CONFIG.load(os.path.join(azure_folder, 'az.json')) | |||
SESSION.load(os.path.join(azure_folder, 'az.sess'), max_age=3600) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all of these should use get_config_dir()
?
Looks like azure_folder
should be changed instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad the fix is small.
@@ -3,6 +3,10 @@ | |||
Release History | |||
=============== | |||
|
|||
0.3.16 | |||
++++++ | |||
* Point to azureProfile.json in .azure directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend: "Fix issue where user is prompted to login when using interactive mode in Cloud Shell."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend changing the wording in release history to be more customer-facing. Also, please post the work around to the original issue and the in the ICM ticket.
* make interaction use azureProfile.json from .azure * history and version bump * azure-folder points to .azure * address feedback
Closes: #5421
az login
from the cli caches its subscription and profile inside the ".azure" directory.This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
(see Authoring Command Modules)