powershell - Save-AzureRmProfile 的问题

标签 powershell azure

我已在 Azure 中创建虚拟机并选择 Windows Server 2012 R2。

我已使用 Web 平台安装程序安装了 Windows PowerShell。当我尝试运行以下命令时:

Save-AzureRmProfile -Path C:\MyPath\myfile.json

它抛出错误:

The term 'Save-AzureRmProfile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

我尝试点击此链接 here通过添加环境变量但没有帮助。有人解决这个问题了吗?

最佳答案

Save-AzureRmProfile 适用于版本 3.7。您可以使用以下 cmdlet 检查 Azure PowerShell 版本。

Get-Module -ListAvailable -Name Azure -Refresh

您可以从此link下载3.7版本msi安装程序.

关于powershell - Save-AzureRmProfile 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44042815/

相关文章:

powershell - 为什么我会选择 Powershell 而不是 WMI 来开发管理界面?

powershell - 匹配后解析行 "something"Powershell

php - Azure 网站 SSL

powershell - 请解释一下,将字符串添加到文件第一行的函数

PowerShell - 遍历文件并重命名

web-services - 使用 Powershell 在 Web 服务上调用异步 Web 方法

.net - 技能端点不接受有效的签名请求

azure - 有 Azure Function Reminder Trigger 这样的东西吗?

azure - 应用程序见解访问 token

excel - 使用 vba 的 Azure 分类