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)
11716정성태10/3/201814488사물인터넷: 47. Raspberry PI Zero (W)에 FTDI 장치 연결 후 C/C++로 DTR 제어파일 다운로드1
11715정성태10/3/201814045사물인터넷: 46. Raspberry PI Zero (W)에 docker 설치
11714정성태10/2/201812810사물인터넷: 45. Raspberry PI에 ping을 hostname으로 하는 방법
11713정성태10/2/201815502개발 환경 구성: 403. Synology NAS(DS216+II)에 docker 설치 후 .NET Core 2.1 응용 프로그램 실행하는 방법
11712정성태10/2/201819990.NET Framework: 795. C# - 폰트 목록을 한글이 아닌 영문으로 구하는 방법 [3]
11711정성태10/2/201815802오류 유형: 490. 윈도우 라이선스 키 입력 오류 0xc004f050, 0xc004e028
11710정성태10/2/201814235.NET Framework: 794. C# - 같은 모양, 다른 값의 한글 자음을 비교하는 호환 분해 [5]
11709정성태9/30/201812486개발 환경 구성: 402. .NET Core 콘솔 응용 프로그램을 docker로 실행/디버깅하는 방법 [1]
11708정성태9/30/201814675개발 환경 구성: 401. .NET Core 콘솔 응용 프로그램을 배포(publish) 시 docker image 자동 생성 [2]파일 다운로드1
11707정성태9/30/201816420오류 유형: 489. ASP.NET Core를 docker에서 실행 시 "Failed with a critical error." 오류 발생 [1]
11706정성태9/29/201813356개발 환경 구성: 400. Synology NAS(DS216+II)에서 실행한 gcc의 Segmentation fault [2]
11705정성태9/29/201814115개발 환경 구성: 399. Synology NAS(DS216+II)에 gcc 컴파일러 설치
11704정성태9/29/201817246기타: 73. Synology NAS 신호음(beep) 끄기 [1]파일 다운로드1
11703정성태9/27/201813218개발 환경 구성: 398. Blazor 환경 구성 후 빌드 속도가 너무 느리다면? [2]
11702정성태9/26/201810702사물인터넷: 44. 넷두이노(Netduino)의 네트워크 설정 방법
11701정성태9/26/201815331개발 환경 구성: 397. 공유기를 일반 허브로 활용하는 방법파일 다운로드1
11700정성태9/21/201813185Graphics: 25. Unity - shader의 직교 투영(Orthographic projection) 행렬(UNITY_MATRIX_P)을 수작업으로 구성
11699정성태9/21/201812145오류 유형: 488. Add-AzureAccount 실행 시 "No subscriptions are associated with the logged in account in Azure Service Management (RDFE)." 오류
11698정성태9/21/201812508오류 유형: 487. 윈도우 성능 데이터를 원격 SQL에 저장하는 경우 "Call to SQLAllocConnect failed with %1." 오류 발생
11697정성태9/20/201812362Graphics: 24. Unity - unity_CameraWorldClipPlanes 내장 변수 의미
11696정성태9/19/201812636.NET Framework: 793. C# - REST API를 이용해 NuGet 저장소 제어파일 다운로드1
11695정성태9/19/201817095Graphics: 23. Unity - shader의 원근 투영(Perspective projection) 행렬(UNITY_MATRIX_P)을 수작업으로 구성
11694정성태9/17/201812170오류 유형: 486. nuget push 호출 시 405 Method Not Allowed 오류 발생
11693정성태9/16/201815151VS.NET IDE: 128. Unity - shader 코드 디버깅 방법
11692정성태9/13/201815663Graphics: 22. Unity - shader의 Camera matrix(UNITY_MATRIX_V)를 수작업으로 구성
11691정성태9/13/201812913VS.NET IDE: 127. Visual C++ / x64 환경에서 inline-assembly를 매크로 어셈블리로 대체하는 방법 - 두 번째 이야기
... 76  [77]  78  79  80  81  82  83  84  85  86  87  88  89  90  ...