Skip to content

Commit b0144f8

Browse files
committed
Fix issue with token cache population in login
1 parent a96564f commit b0144f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ResourceManager/Profile/Commands.Profile/Models/RMProfileClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ public AzureRmProfile Login(
268268
foreach (var subscription in subscriptions)
269269
{
270270
var tempContext = new AzureContext(subscription, account, environment, newTenant);
271+
tempContext.TokenCache = _cache;
271272
string tempName = null;
272273
if (!_profile.TryGetContextName(tempContext, out tempName))
273274
{

0 commit comments

Comments
 (0)