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)
11413정성태12/20/201714879개발 환경 구성: 344. 윈도우 10 - TTS 및 음성 인식을 위한 환경 설정
11412정성태12/20/201717041.NET Framework: 715. C# - Windows 10 운영체제의 데스크톱 앱에서 TTS(SpeechSynthesizer) 사용하는 방법 [1]파일 다운로드1
11411정성태12/20/201716408사물인터넷: 15. 라즈베리 파이용 C++ 프로젝트에 SSL Socket 적용
11410정성태12/20/201727828.NET Framework: 714. SSL Socket 예제 - C/C++ 서버, C# 클라이언트파일 다운로드1
11409정성태12/18/201733557VC++: 122. 오픈 소스 라이브러리를 쉽게 빌드해 주는 "C++ Package Manager for Windows: vcpkg" [7]
11408정성태12/18/201714294.NET Framework: 713. C# - SharpDX + DXGI를 이용한 윈도우 화면 캡처 소스 코드 + Direct2D 출력 + OpenCV (2)파일 다운로드1
11407정성태12/18/201716519.NET Framework: 712. C# - SharpDX + DXGI를 이용한 윈도우 화면 캡처 소스 코드 + Direct2D 출력 + OpenCV [1]파일 다운로드1
11406정성태12/17/201737608.NET Framework: 711. C# - OpenCvSharp의 Mat 데이터 조작 방법 [5]파일 다운로드1
11405정성태12/17/201732942.NET Framework: 710. C# - OpenCvSharp을 이용한 Webcam 영상 처리 + Direct2D [1]파일 다운로드1
11404정성태12/16/201721971.NET Framework: 709. C# - OpenCvSharp을 이용한 동영상(avi, mp4, ...) 처리 + Direct2D [7]파일 다운로드1
11403정성태12/16/201724872.NET Framework: 708. C# - OpenCvSharp을 이용한 동영상(avi, mp4, ...) 처리 [3]파일 다운로드1
11402정성태12/15/201728970.NET Framework: 707. OpenCV 응용 프로그램을 C#으로 구현 - OpenCvSharp [2]파일 다운로드1
11401정성태12/15/201719087.NET Framework: 706. C# - SharpDX + DXGI를 이용한 윈도우 화면 캡처 소스 코드 + Direct2D 출력 [2]파일 다운로드1
11400정성태12/14/201720835.NET Framework: 705. C# - SharpDX + DXGI를 이용한 윈도우 화면 캡처 소스 코드 [9]파일 다운로드1
11399정성태12/13/201710991.NET Framework: 704. Win32 API의 UnionRect를 닷넷 BCL의 Rectangle.Union으로 바꿀 때 주의 사항
11398정성태12/13/201711201오류 유형: 442. ASP.NET Core Web Application (on .NET Framework) 프로젝트에서 외부 라이브러리 동적 로드 시 런타임 버전 문제파일 다운로드1
11397정성태12/12/201713121.NET Framework: 703. 양자 컴퓨팅을 위한 마이크로소프트의 Q# 언어
11396정성태12/8/201734652개발 환경 구성: 343. Visual Studio - 리눅스 용 프로젝트의 인텔리센스를 위한 헤더 파일 처리 방법 [3]
11395정성태12/8/201711921오류 유형: 441. 이벤트 로그 - Time Provider NtpClient: No valid response has been received from domain controller
11394정성태12/8/201711522개발 환경 구성: 342. 비주얼 스튜디오에서 실행하던 ASP.NET Core (.NET Framework) 응용 프로그램을 명령행에서 실행하는 방법
11393정성태12/7/201715337Windows: 145. 윈도우 10 빌드 17046부터 WSL에서 백그라운드 작업 지원 [5]
11392정성태12/7/201711330개발 환경 구성: 341. openSUSE에 닷넷 코어 설치
11391정성태12/7/201713596개발 환경 구성: 340. WSL을 이용해 윈도우 PC 1대에서 openSUSE 응용 프로그램을 Visual Studio로 개발하는 방법 [1]
11390정성태12/7/201722006개발 환경 구성: 339. WSL을 이용해 윈도우 PC 1대에서 Linux 응용 프로그램을 Visual Studio로 개발하는 방법 [6]
11389정성태12/7/201711387오류 유형: 440. .NET Core 오류 - 0x80131620 Unable to load DLL 'libuv'
11388정성태12/6/201714520개발 환경 구성: 338. WSL 또는 Ubuntu에 닷넷 코어 설치 [3]
... 76  77  78  79  80  81  82  83  84  85  86  87  88  [89]  90  ...