2017-01-11 8 views
2

내가 PowerShell에서 내 푸른 가입에서 자원 그룹 이름을 검색하기 위해 노력하고있어 :은 Get-AzureRmResourceGroup을 : 용어 '은 Get-AzureRmResourceGroup'는 cmdlet의 이름으로 인식되지 않는

Get-AzureRmResourceGroup | select resourcegroupname 

을하지만 도착 다음 오류 :

Get-AzureRmResourceGroup : The term 'Get-AzureRmResourceGroup' 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-AzureRmResourceGroup | select resourcegroupname 
+ ~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (Get-AzureRmResourceGroup:String) [], CommandNotFoundException 
    + FullyQualifiedErrorId : CommandNotFoundException 

나는 최신 Azure 모듈을 가져 왔으며 가져 왔습니다. 왜 이것이 포함되지 않습니까?

+0

푸른 PowerShell을의 버전은 무엇입니까 Cmdlet을 설치 했습니까? 최신 버전이 있고이 Cmdlet을 실행할 수 있습니다. –

+0

''Get-Module -ListAvailable -Name Azure -Refresh'를 실행 한 후에는 3.3.0입니다. – santafebound

+0

저도 요. 'Get-Module -ListAvailable -Name AzureRM.Resources'를 실행할 때 무엇을 볼 수 있습니까? –

답변

3

AzureRM 종속성이 누락되어 다음 명령을 실행해야했습니다. Install-AzureRM. 그 후에는 Get-AzureRmResourceGroup | select resourcegroupname이 성공적으로 실행되었습니다.

Install-Module AzureRM 

는 다음 사용을 위해 모듈을 가져와야 :

+0

가능한 경우 답을 표시하십시오. 더 많은 도움이됩니다. –

+0

11 시간 더 기다려야합니다. 나는 내일 갈거야. – santafebound

1

는 다음과 같은 명령을 사용하여 처음 설치된 푸른 RM 모듈을 얻을 필요가

Import-Module AzureRM