powershell - 如何在 session 之间保留 AzureRMAccount

标签 powershell azure

Add-AzureRmAccount 或别名 Login-AzureRmAccount 似乎不像 Add-AzureAccount 那样在 session 之间持续存在。

有办法让它持续下去吗?

最佳答案

将帐户添加到 session 后(Add-AzureRmAccountLogin-AzureRmAccount),使用

Save-AzureRmProfile -Path <path-to-file>

保存当前凭据并

Select-AzureRmProfile -Path <path-to-file>

加载它们。

Thanks to Mark Cowlishaw

关于powershell - 如何在 session 之间保留 AzureRMAccount,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33603250/

相关文章:

powershell - 使用 AzureAD 身份验证部署 ServiceFabric 应用程序

azure - 我可以从 Azure 上的部署生成代码覆盖率吗?

c# - 如何在 UWP 应用中使用 Azure 通知中心标签推送消息

python - 使用 Python 连接到 Azure SQL

powershell - 对于PowerShell cmdlet,是否可以始终将脚本 block 传递给字符串参数?

regex - PowerShell 和 RegEx 格式化

powershell - 无法访问 AWS 上的 ElasticSearch

ruby - Powershell SSL 套接字客户端

php - 将 ubuntu 上的 Laravel 连接到 Azure SQL Server

node.js - Azure 函数和 Node.js