Skip to content

Commit 18b119b

Browse files
Update warning message when multiple subscriptions (#18768)
* upadte message when >1 sub * Update src/Accounts/Accounts/Models/RMProfileClient.cs Co-authored-by: Mike F. Robbins <mike.robbins@microsoft.com> * update warning message Co-authored-by: Mike F. Robbins <mike.robbins@microsoft.com>
1 parent 6a0c9d9 commit 18b119b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Accounts/Accounts/Models/RMProfileClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,10 @@ private bool TryGetTenantSubscription(IAccessToken accessToken,
602602
WriteWarningMessage(string.Format(
603603
"TenantId '{0}' contains more than one active subscription. First one will be selected for further use. " +
604604
"To select another subscription, use Set-AzContext. " +
605+
Environment.NewLine +
605606
"To override which subscription Connect-AzAccount selects by default, " +
606-
"use `Update-AzConfig -DefaultSubscriptionForLogin <SubscriptionNameOrId>`.",
607+
"use `Update-AzConfig -DefaultSubscriptionForLogin 00000000-0000-0000-0000-000000000000`. " +
608+
"Go to https://go.microsoft.com/fwlink/?linkid=2200610 for more information.",
607609
accessToken.TenantId));
608610
}
609611
subscription = subscription ?? subscriptions.First();

0 commit comments

Comments
 (0)