Add-AzureRmAccount
或别名 Login-AzureRmAccount
似乎不像 Add-AzureAccount
那样在 session 之间持续存在。
有办法让它持续下去吗?
最佳答案
将帐户添加到 session 后(Add-AzureRmAccount
或 Login-AzureRmAccount
),使用
Save-AzureRmProfile -Path <path-to-file>
保存当前凭据并
Select-AzureRmProfile -Path <path-to-file>
加载它们。
关于powershell - 如何在 session 之间保留 AzureRMAccount,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33603250/