Remove-Azureaccount (Can't get Azure credentials to stick in Powershel)
时间:2014-12-30 18:52:57
收藏:0
阅读:262
https://social.technet.microsoft.com/forums/azure/en-US/260df055-7c4e-4ce2-8f8d-190ad20a4b76/cant-get-azure-credentials-to-stick-in-powershell?forum=windowsazuresecurity
Answers
I‘d try this:
- Run REMOVE-AZUREACCOUNT first, before you start running your scripts, make sure you get rid of that azure account from your PS Session
Then run your script using the publish settings file and cert mgmt. This should work. If you use Add-azureaccount it overwrites certificate authorization. If you remove-azureaccount it will fall back to certficiate authorization.
Let me know how it goes - Matt Sampson
R. Matt Sampson
原文:http://www.cnblogs.com/flysun0311/p/4194170.html
评论(0)