brunch

You can make anything
by writing

C.S.Lewis

by 가필드의 인사이트 Apr 15. 2019

MS-Azure 203(애저 개발자 과정)

Azure IaaS development

1. Visual Studio 2017 설치 - Azure 개발을 위한 설치

- Community 버전도 OK, Pro나 Enterprise버전은 라이센스 필요

- .NET, ASP.NET, Azure개발


2. Azure Pass 등록(구글링)

 - MS Azure Pass: Home (https://www.microsoftazurepass.com/)


3. AZ-203 exam: Developing Solutions for Microsoft Azure

https://www.microsoft.com/en-us/learning/exam-AZ-203.aspx 


2019년 5월1일이면 AZ-103과정이 신설된다고 함

(덤프) KillTest

https://www.killtest.kr/Microsoft-Azure-certification/AZ-203.asp?gclid=CjwKCAjwycfkBRAFEiwAnLX5IQA0-pgCjezFbj03HJGqDyhLna3-NiQvUWNYgUozmMgn2kQWrurR2hoCjG8QAvD_BwE

(유튜브 덤프) 2019 Real Azure Developer Associate AZ-203 Practice Test | Killtest

 https://www.youtube.com/watch?v=WRhpuWfsdak


4. Powershell 설치 및 실행

- 설치: https://azure.microsoft.com/en-us/tools/ 

- Powershell ISE실행(또는 Powershell CMD에서 ise+엔터)

- ISE는 통합스크립트환경(integrated scripting environment)

- Powershell 버전 확인: $PSVersionTable.PSVersion


5. SMB(서비스 메시지 블록)

- SMB3.0은 Windows7에서 지원 안됨

https://docs.microsoft.com/ko-kr/azure/storage/files/storage-how-to-use-files-windows


6. 애저 개발자 행사

https://korea.azurebootcamp.net/


7. Powershell 사용

- 보기 > 명령 추가 기능 표시

- Az 명령어를 사용하려면 Az모듈을 설치해야 함(중간 다이얼로그에서 '예", "모두 예" 선택)

"Install-Module -Name Az -AllowClobber"

"Install-Module -Name Az -AllowClobber -Scope CurrentUser" (현 사용자 권한시)

- 권한문제 발생시

https://go.microsoft.com/fwlink/?LinkID=135170 또는

https://docs.microsoft.com/ko-kr/previous-versions/windows/powershell-scripting/hh847748(v=wps.640)

PS C:\Users\osstem> Get-ExecutionPolicy   

Restricted

PS C:\Users\osstem> Get-ExecutionPolicy -Scope CurrentUser

Undefined

PS C:\Users\osstem> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned



8. HoL

구글링 팁: C# azure windows vm

https://docs.microsoft.com/ko-kr/azure/virtual-machines/windows/csharp-template


- VS2017 실행 > .NET 콘솔 프로젝트 생성

- VS2017 도구 > NuGet 패키지 관리자 > Nuget 콘솔 선택

NuGet에서

Install-Package Microsoft.Azure.Management.Fluent

Install-Package WindowsAzure.Storage



Self-signed certificate generator (PowerShell)

압축파일을 다운 풀고 PS에서 다음 명령어로 모듈 임포트



Import-Module -Name C:\MSAzure\AzurePaaS\New-SelfSignedCertificateEx\New-SelfSignedCertificateEx.ps1


자체 서명된 인증서를 사용하여 서비스 주체 만들기

https://docs.microsoft.com/ko-kr/azure/active-directory/develop/howto-authenticate-service-principal-powershell

New-SelfSignedCertificateEx -StoreLocation CurrentUser `

  -Subject "CN=exampleapp" `

  -KeySpec "Exchange" `

  -FriendlyName "exampleapp"

$cert = Get-ChildItem -path Cert:\CurrentUser\my | where {$PSitem.Subject -eq 'CN=exampleapp' }


이 파일의 실제 경로를 탐색기에서 (숨김폴더) 검색

C:\Users\osstem\AppData\Roaming\Microsoft\SystemCertificates\My\Certificates


(tip) PS에서 경로로 직접 찾아갈 수 있음


다음을 VS2017의 해당 프로젝트 솔루션에 TEXT파일로 추가한다(azureauth.properties)

subscription=<subscription-id>

client=<application-id>

key=<authentication-key>

tenant=<tenant-id>

managementURI=https://management.core.windows.net/

baseURL=https://management.azure.com/

authURL=https://login.windows.net/

graphURL=https://graph.windows.net/


<tenant-id>

connect-AzAccount 에서 나오는 ID


<subscription-id> 얻는 법

PS에서 $subid = (Get-AzSubscription -SubscriptionName "Azure Pass - 스폰서쉽").SubscriptionId


<application-id> 얻는 법

<authentication-key>



AD 어플리케이션에 역할(Contributor) 부여해야만 RG/VM생성 권한 가능


https://docs.microsoft.com/ko-kr/azure/active-directory/develop/howto-create-service-principal-portal


VS2017 컴파일 실행하면 코드로 클라우드 환경 생셩된 것 확인 가능함






Katacoda.com 클라우드 교육



[2일차]

예전 사항으로 코딩하면 낭패

- (참고) 이전 세대의 가상 머신 크기

   https://docs.microsoft.com/ko-kr/azure/virtual-machines/windows/sizes-previous-gen 



깃헙: https://github.com/MicrosoftLearning


따끈따끈한 AZ-203

https://github.com/MicrosoftLearning/AZ-203-DevelopingSolutionsforMicrosoftAzure/blob/master/Instructions/AZ-203_01_lab.md





EXAM AZ-103과정 신규 발표(5월부터)

https://www.microsoft.com/en-us/learning/exam-az-103.aspx 




작가의 이전글 오라클 JDK vs. OpenJDK
작품 선택
키워드 선택 0 / 3 0
댓글여부
afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari