Azure/Azure Stack HCI (2025 Azure Local)
[Azure Local] Azure Arc 에 Azure Local 등록 #4
coxfactor-Tech
2024. 12. 24. 09:47
"Azure Local(Azure Stack HCI)"를 Azure Arc에 등록하기전에 해당 구독(Subscription)에 아래와 같이 "리소스 공급자"를 등록 해야합니다.
- 등록할 리소스 공급자
- Microsoft.HybridCompute
- Microsoft.GuestConfiguration
- Microsoft.HybridConnectivity
- Microsoft.AzureStackHCI
Azure Local(Azure Stack HCI) 에서 아래 내용을 진행하고 Azure Arc에 등록합니다.
1. Hyper-V 역할 설치 진행
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
2. Arc 등록을 위한 매개 변수 설정 (ProxyServer는 선택사항 입니다.)
# Arc 장치로 등록하려는 구독 작성
$Subscription = "SubscriptionID"
# Arc 장치로 등록할 리소스 그룹 작성
$RG = "ResourceGroupName"
# Arc 장치로 등록하는 데 사용할 지역 작성
$Region = "eastus"
# Arc 장치로 등록하는 데 사용할 테넌트 작성
$Tenant = "Tenant ID"
#Azure Local 배포가 프록시를 통해 인터넷에 액세스하는 경우 프록시 주소 정의
$ProxyServer = "http://proxyaddress:port"
3. Azure 계정 및 구독에 연결하여 Arc 등록을 위한 Token, ID 값을 가져와 매개 변수 설정
#Azure 계정 및 구독에 연결
Connect-AzAccount -SubscriptionId $Subscription -TenantId $Tenant -DeviceCode
#등록을 위한 액세스 토큰 가져오기
$ARMtoken = (Get-AzAccessToken).Token
#등록을 위한 계정 ID 가져오기
$id = (Get-AzContext).Account.Id
4. Arc 등록 스크립트를 통해 등록 진행
#등록 스크립트를 호출합니다.
Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup $RG -TenantID $Tenant -Region $Region -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id
Next >>??