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

비밀번호

댓글 작성자
 




... 91  92  93  94  95  96  97  98  99  100  [101]  102  103  104  105  ...
NoWriterDateCnt.TitleFile(s)
11123정성태1/3/201716122.NET Framework: 629. .NET Core의 dotnet.exe CLI 명령어 확장 방법 [1]
11122정성태1/3/201716417.NET Framework: 628. TransactionScope에 사용자 정의 트랜잭션을 참여시키는 방법 [2]파일 다운로드1
11121정성태1/1/201714697개발 환경 구성: 308. "ASP.NET Core Web Application (.NET Core)"와 "ASP.NET Core Web Application (.NET Framework)" 차이점
11120정성태12/25/201619489개발 환경 구성: 307. ASP.NET Core Web Application을 IIS에서 호스팅하는 방법
11119정성태12/23/201643024개발 환경 구성: 306. Visual Studio Code에서 Python 개발 환경 구성 [2]
11118정성태12/22/201626743오류 유형: 374. Python 64비트 설치 시 0x80070659 오류 발생 [3]
11117정성태12/21/201615490웹: 35. nopCommerce 예제 사이트 구성 방법
11116정성태12/21/201617365디버깅 기술: 84. NopCommerce의 Autofac 부하(CPU, Memory) [2]
11115정성태12/21/201620054Windows: 133. 윈도우 서버 2016에서 플래시가 동작하지 않는 경우 [2]
11114정성태12/19/201630064Windows: 132. 역슬래시(backslash) 문자가 왜 통화 표기 문자(한글인 경우 "\")로 보일까요? [2]
11113정성태12/6/201614673오류 유형: 373. ICOMAdminCatalog::GetCollection에서 CO_E_ISOLEVELMISMATCH(0x8004E02F) 오류 발생파일 다운로드1
11112정성태11/23/201620458오류 유형: 372. MySQL 서비스가 올라오지 않는 경우 - Error 1067
11111정성태11/23/201628059.NET Framework: 627. C++로 만든 DLL을 C#에서 사용하기 [2]
11110정성태11/17/201614376.NET Framework: 626. Commit 메모리가 낮은 상황에서도 메모리 부족(Out-of-memory) 예외 발생 [2]
11109정성태11/17/201614493.NET Framework: 625. ASP.NET에서 System.Web.HttpApplication 인스턴스는 다중으로 생성됩니다.
11108정성태11/13/201615011.NET Framework: 624. WPF - Line 요소를 Canvas에 위치시켰을 때 흐림(blur) 현상파일 다운로드1
11107정성태11/9/201618176오류 유형: 371. Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers.파일 다운로드1
11106정성태11/8/201618361.NET Framework: 623. C# - PeerFinder를 이용한 Wi-Fi Direct 데이터 통신 예제 [2]파일 다운로드1
11105정성태11/8/201613237.NET Framework: 622. PeerFinder Wi-Fi Direct 통신 시 Read/Write/Dispose 문제
11104정성태11/8/201613299개발 환경 구성: 305. PeerFinder로 Wi-Fi Direct 연결 시 방화벽 문제
11103정성태11/8/201612889오류 유형: 370. PeerFinder.ConnectAsync의 결과 값인 Task.Result를 호출할 때 System.AggregateException 예외 발생
11102정성태11/8/201613072오류 유형: 369. PeerFinder.FindAllPeersAsync 호출 시 System.UnauthorizedAccessException 예외 발생
11101정성태11/8/201615702.NET Framework: 621. 닷넷 프로파일러의 오류 코드 - 0x80131363
11100정성태11/7/201621468개발 환경 구성: 304. Wi-Fi Direct 지원 여부 확인 방법 [1]
11099정성태11/7/201623127.NET Framework: 620. C#에서 C/C++ 함수로 콜백 함수를 전달하는 예제 코드파일 다운로드1
11098정성태11/7/201613227오류 유형: 368. 빌드 이벤트에서 robocopy 사용 시 $(TargetDir) 매크로를 지정하는 경우 오류 발생
... 91  92  93  94  95  96  97  98  99  100  [101]  102  103  104  105  ...