Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Add-AzureAccount 실행 시 "No subscriptions are associated with the logged in account in Azure Service Management (RDFE)." 오류

PowerShell에서 다음과 같이 Add-AzureAccount 수행 시 오류가 발생합니다.

Add-AzureAccount : No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzureRmAccount?
At line:10 char:1
+ Add-AzureAccount
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureAccount], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount

이상하군요. 분명히 az account로 확인하면 Azure 구독과 연결되어 있고,

PS Azure:\> az account show
{
  "environmentName": "AzureCloud",
  "id": "...[생략]...",
  "isDefault": true,
  "name": "MyAzureSubs",
  "state": "Enabled",
  "tenantId": "...[생략]...",
  "user": {
    "cloudShellID": true,
    "name": "testuser@test.com",
    "type": "user"
  }
}

게다가 저 계정은 분명히 구독 레벨에서,

Azure의 Access control 보안과 Azure Active Directory의 계정 관리 서비스
; https://www.sysnet.pe.kr/2/0/11495

IAM 권한이 "Owner"로 설정되어 있는 것이어서 당연히 "administrator"에 속하는 급입니다. 그런데 검색해 보면 다음의 글이 나옵니다.

Login-azureRMAccount vs Add-AzureAccount
; https://social.msdn.microsoft.com/Forums/en-US/e6bdb2f3-c3b0-4a99-b75d-3493cf63e03b/loginazurermaccount-vs-addazureaccount?forum=azurescripting

아하~~~ 대충 돌아가는 분위기를 알겠습니다. 그러니까, 해당 구독을 최초로 만든 사람만이 "administrator"에 속합니다. 그 계정이 다른 계정에게 Access control(IAM) 권한으로 "Owner"를 주었다고 해서 그 다른 계정이 "administrator"까지 되는 것은 아닙니다. 대신 "co-administrator"로써 설정해 줄 수는 있는데 그 방법은 아래의 문서에 나옵니다.

Azure 구독 관리자 추가 또는 변경
; https://docs.microsoft.com/ko-kr/azure/billing/billing-add-change-azure-subscription-administrator

따라서 위의 문서에 실린 아래의 이미지처럼,

add-coadmin.png

"Owner" 계정의 사용자에 대해 마우스 우-클릭을 해 명시적으로 "Add as co-administrator" 권한을 주어야만 합니다. 이렇게 하고 다시 Add-AzureAccount 명령을 수행하면 정상적으로 수행하는 것을 확인할 수 있습니다.




참고로 Add-AzureAccount 명령 없이 Select-AzureSubscription을 수행하면 다음과 같은 식의 오류가 발생합니다.

Select-AzureSubscription $subscriptionName

Select-AzureSubscription : The subscription name MyAzureSubs doesn't exist.
Parameter name: name
At line:15 char:1
+ Select-AzureSubscription $subscriptionName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Select-AzureSubscription], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SelectAzureSubscriptionCommand




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 9/22/2018]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 76  77  78  [79]  80  81  82  83  84  85  86  87  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
11666정성태8/22/201812237사물인터넷: 37. 아두이노 - 코딩으로 대신하는 오실레이터 회로의 소리 출력파일 다운로드1
11665정성태8/22/201813828사물인터넷: 36. 오실레이터 회로 동작을 아두이노의 코딩으로 구현하는 방법파일 다운로드1
11664정성태8/22/201813591개발 환경 구성: 393. 윈도우 환경에서 elasticsearch의 한글 형태소 분석기 설치 [1]
11663정성태8/22/201815967개발 환경 구성: 392. 윈도우 환경에서 curl.exe를 이용한 elasticsearch 6.x 기본 사용법
11662정성태8/21/201811191사물인터넷: 35. 병렬 회로에서의 커패시터파일 다운로드1
11661정성태8/21/201812853사물인터넷: 34. 트랜지스터 동작 - 컬렉터-이미터 간의 저항 측정파일 다운로드1
11660정성태8/19/201811832사물인터넷: 33. 세라믹 커패시터의 동작 방식파일 다운로드1
11659정성태8/19/201811408사물인터넷: 32. 9V 전압에서 테스트하는 PN2222A 트랜지스터파일 다운로드1
11658정성태8/18/201814490사물인터넷: 31. 커패시터와 RC 회로파일 다운로드3
11657정성태8/18/201812593사물인터넷: 30. 릴레이(Relay) 제어파일 다운로드3
11656정성태8/16/20189759사물인터넷: 29. 트랜지스터와 병렬로 연결한 LED파일 다운로드1
11655정성태8/16/201811327사물인터넷: 28. 저항과 병렬로 연결한 LED파일 다운로드1
11654정성태8/15/201811836사물인터넷: 27. 병렬 회로의 저항, 전압 및 전류파일 다운로드1
11653정성태8/14/201812756사물인터넷: 26. 입력 전압에 따른 LED의 전압/저항 변화 [1]파일 다운로드1
11652정성태8/14/201810882사물인터넷: 25. 컬렉터 9V, 베이스에 5V와 3.3V 전압으로 테스트하는 C1815 트랜지스터파일 다운로드1
11651정성태8/14/201815299사물인터넷: 24. 9V 전압에서 테스트하는 C1815 트랜지스터 [1]파일 다운로드3
11650정성태8/14/201810517사물인터넷: 23. 가변저항으로 분압파일 다운로드1
11649정성태8/12/201812383사물인터넷: 22. 저항에 따른 전류 테스트파일 다운로드1
11648정성태8/12/201813765사물인터넷: 21. 퓨즈를 이용한 회로 보호파일 다운로드3
11647정성태8/8/201812698오류 유형: 476. 음수의 음수는 여전히 음수가 되는 수(절대값이 음수인 수)
11646정성태8/8/201810358오류 유형: 475. gacutil.exe 실행 시 "Failure initializing gacutil" 오류 발생
11645정성태8/8/201811904오류 유형: 474. 닷넷 COM+ - Failed to load the runtime. [1]
11644정성태8/6/201814711디버깅 기술: 118. windbg - 닷넷 개발자를 위한 MEX Debugging Extension 소개
11643정성태8/6/201814050사물인터넷: 20. 아두이노 레오나르도 R3 호환 보드의 3.3v 핀의 LED 전압/전류 테스트 [1]파일 다운로드1
11642정성태8/3/201813626Graphics: 20. Unity - LightMode의 ForwardBase에 따른 _WorldSpaceLightPos0 값 변화
11641정성태8/3/201817709Graphics: 19. Unity로 실습하는 Shader (10) - 빌보드 구현파일 다운로드1
... 76  77  78  [79]  80  81  82  83  84  85  86  87  88  89  90  ...