我已在 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/