Ubuntu 24.04에 Azure CLI를 설치하는 과정입니다.
# 패키지 목록 업데이트 & 필수 패키지 설치
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
# Microsoft 패키지 저장소 추가
sudo mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
# Azure CLI 설치를 위해 Microsoft 패키지 저장소를 APT 소스에 추가
AZ_DIST=$(lsb_release -cs)
echo "Types: deb
URIs: https://packages.microsoft.com/repos/azure-cli/
Suites: ${AZ_DIST}
Components: main
Architectures: $(dpkg --print-architecture)
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
# 패키지 업데이트 & Azure CLI 설치 진행
sudo apt-get update
sudo apt-get install azure-cli
# Azure CLI Version 확인
az version
1. Device Code Flow 를 사용하여 Azure Login
ex)To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code 1AC8C8 to authenticate.
az login --use-device-code
URL 접속 후 code 입력하고 Login을 완료 합니다.
접속할 Subscripption 을 확인하고 선택합니다.
그 다음 Azure CLI 로 뭐든 해보세요... az logout... 끝나면
'Azure > Azure Administrator' 카테고리의 다른 글
[Azure Administrator] Visual Studio Code Install #1 (2) | 2025.02.03 |
---|---|
[Azure Administrator] MFA Token2 OTP 설정하기 #1 (4) | 2025.01.08 |
[Azure Administrator] Azure Cloud Shell 시작 #2 (35) | 2024.12.02 |
[Azure Administrator] Azure Cloud Shell 이란 ?? #1 (34) | 2024.12.02 |
[Azure Administrator] Azure PowerShell Install - Windows (2) | 2024.11.12 |