Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PowerShell v5中缺少Azure cmdlet_Powershell_Azure - Fatal编程技术网

PowerShell v5中缺少Azure cmdlet

PowerShell v5中缺少Azure cmdlet,powershell,azure,Powershell,Azure,好的,我正试图用Powershell控制我的第一个Azure实例。 我在windows 10上运行$PSVersionTable Name Value ---- ----- PSVersion 5.1.14393.693 PSEdition Desktop PSCompatibleVersions

好的,我正试图用Powershell控制我的第一个Azure实例。 我在windows 10上运行$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.693
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.693
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
我试图遵循以下指南:

因此,我键入“安装模块AzureRM”即可

然后我键入“安装AzureRM”

我得到:

Install-AzureRM : The term 'Install-AzureRM' 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.
At line:1 char:1
+ Install-AzureRM
+ ~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Install-AzureRM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我可以使用“登录AzurerAccount”查看我的订阅信息。但是如果我尝试使用

PS C:\WINDOWS\system32> Remove-AzureADGroup
Remove-AzureADGroup : The term 'Remove-AzureADGroup' 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.
At line:1 char:1
+ Remove-AzureADGroup
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Remove-AzureADGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\WINDOWS\system32> Get-MsolGroup
Get-MsolGroup : The term 'Get-MsolGroup' 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.
At line:1 char:1
+ Get-MsolGroup
+ ~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get-MsolGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
什么都不起作用,我遇到的每一个指南似乎都过时了两年,并且都提到了Azure PS连接的V2或更低版本


我的最终目标是通过cmdlet从广告中删除一个组,而我似乎无法实现这些目标。

我……觉得……真的很傻。 所以在我发布这篇文章后,我发现另一个technet链接埋在另一个technet博客中

事实证明,我不需要上述任何一项(我正在努力实现的目标) 简单地说:

然后使用这些:

引用的文章非常非常非常旧,如果您尝试转到新页面,您现在将被重定向到新页面:。你只需要跑就行了 安装模块AzureRM


此外,AzureAD模块不是AzureRM的一部分。AzureRM中包含一小部分AD cmdlet,允许您操作AAD用户、组和应用程序,但是它没有AzureAD mdoule的完整AD和MS图形支持

在导入模块以获取可用命令列表后,可能值得运行
get command-Module AzureRM
。我不确信
Install Module AzureRM
是否能像您想象的那样工作,可能值得运行
安装模块AzureRM-Verbose
并共享输出。很好,您解决了它,但是。。。这不属于你的问题(或标题)。我回滚了您的编辑。