Skip to content
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

[Feature]: Suggest user to select default subscription using azconfig cmdlet #18590

Closed
dingmeng-xue opened this issue Jun 16, 2022 · 5 comments · Fixed by #18610 or #18768
Closed

[Feature]: Suggest user to select default subscription using azconfig cmdlet #18590

dingmeng-xue opened this issue Jun 16, 2022 · 5 comments · Fixed by #18610 or #18768
Assignees
Labels
Accounts Issues in Az.Accounts except authentication related feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@dingmeng-xue
Copy link
Member

Description of the new feature

Below message is showing when I have multiple subscriptions. Since we support AzConfig, user can select default subscription by it. We'd better to update message and increase visibility of AzConfig.

PS C:\Dev> Connect-AzAccount
WARNING: TenantId '***' contains more than one active subscription. First one will be selected for further use. To select another subscription, use Set-AzContext.

Proposed implementation details (optional)

You can use 'Set-AzContext' to select another subscription or use 'Update-AzConfig -DefaultSubscriptionForLogin <>' to select default subscription after login

@dingmeng-xue dingmeng-xue added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jun 16, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jun 16, 2022
@dingmeng-xue dingmeng-xue added needs-triage This is a new issue that needs to be triaged to the appropriate team. Accounts Issues in Az.Accounts except authentication related labels Jun 16, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jun 16, 2022
@isra-fel
Copy link
Member

Good point to advertise this new feature!

@isra-fel isra-fel linked a pull request Jun 17, 2022 that will close this issue
8 tasks
@dingmeng-xue
Copy link
Member Author

dingmeng-xue commented Jun 23, 2022

@isra-fel , below recommended wording

PS C:\Dev> Connect-AzAccount
WARNING: TenantId '***' contains more than one active subscription. First one has been selected for this session. Use 'Set-AzContext' to select another subscription or 'Update-AzConfig -DefaultSubscriptionForLogin ***' to set the current subscription as default. Go to http://go.microsoft.com/fwlink?1234 for more information

@dcaro , @mikefrobbins FYI.
Tasks:

  • Create conceptual docs about
  • Create product short link

@isra-fel
Copy link
Member

Reopen per the previous comment.

@mikefrobbins
Copy link
Contributor

Product short link: https://go.microsoft.com/fwlink/?linkid=2200610

@mikefrobbins
Copy link
Contributor

mikefrobbins commented Jun 28, 2022

Message to use:

WARNING: TenantId '00000000-0000-0000-0000-000000000000' contains more than one active subscription. First one has been selected for this session. Use 'Set-AzContext' to select another subscription or 'Update-AzConfig -DefaultSubscriptionForLogin 00000000-0000-0000-0000-000000000000' to set the current subscription as default. Go to https://go.microsoft.com/fwlink/?linkid=2200610 for more information.

@isra-fel isra-fel linked a pull request Jun 28, 2022 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accounts Issues in Az.Accounts except authentication related feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
3 participants