我管理大量Azure訂閱,並經常使用Get-AzureSubscription列出我有權訪問的訂閱。Azure cmdlet - 使用雙因素身份驗證時會話無效
最近我在帳戶中添加了雙因素身份驗證。現在我對某些命令出現了一個奇怪的錯誤。我可以登錄使用Add-AzureAccount但是當我再試試TOI列表訂閱我的錯誤「GET-AzureSubscription:?AADSTS16000: Session is invalid due to expiration or recent password change
有其他人看到這一點,我會很感激的任何想法如何規避這一
這是我做的:
PS C:\ > add-azureaccount
Id Type Subscriptions Tenants
-- ---- ------------- -------
[email protected] User xxxxxx-yyyyyy xxxxxx-yyyyyy
xxxxxx-yyyyyy
xxxxxx-yyyyyy
xxxxxx-yyyyyy
xxxxxx-yyyyyy
xxxxxx-yyyyyy
xxxxxx-yyyyyy
PS C:\ > Set-AzureSubscription -SubscriptionId 'xxxxxx-yyyyyy'
PS C:\ > select-AzureSubscription -SubscriptionId 'xxxxxx-yyyyyy'
PS C:\ > Get-AzureSubscription -ExtendedDetails
Get-AzureSubscription : AADSTS16000: Session is invalid due to expiration or recent password change.
Trace ID: 6fcfa2da-7d7a-43ba-8230-a227312b535b
Correlation ID: 7206fefd-29fa-4103-ba4f-eb15350a0754
Timestamp: 2015-04-01 17:57:28Z
At line:1 char:1
+ Get-AzureSubscription -ExtendedDetails
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureSubscription], AadAuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.GetAzureSubscriptionCommand
我得到調用時附加AzureAccount在Windows 10 – 2015-04-21 12:50:29
你有沒有找到解決這個@Yooakim同樣的錯誤?自己碰到完全相同的問題。 – BMac 2015-09-11 09:57:36