감사합니다.
Azure Stack Dev Kit (Version 20171020) Part 2 - ADFS Mode : Register Azure Stack with Azure Subscription 본문
Azure Stack Dev Kit (Version 20171020) Part 2 - ADFS Mode : Register Azure Stack with Azure Subscription
springjunny 2017. 11. 21. 21:43Azure Stack Dev Kit 설치를 완료했다면 이번에는 Azure Subscription과 연동한다.
이 과정을 거쳐야만 Marketplace에서 제공하는 템플릿을 사용할 수 있다.
연동 과정은 https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register 링크에서 자세한 설명을 참고할 수 있다.
1. Azure Subscription의 ID 확인하기
2. Log in to the Azure account
Powershell |
Login-AzureRmAccount -EnvironmentName "AzureCloud" Register-AzureRmResourceProvider -ProviderNamespace Microsoft.AzureStack |
로그인 팝업창에서 Azure 계정 정보를 입력한다.
3. Azure Stack Dev Kit 호스트 서버에서 준비 작업
3.1 Azure Stack Powershell 설치하기
Powershell |
# Install the AzureRM.Bootstrapper module. Select Yes when prompted to install NuGet Install-Module ` -Name AzureRm.BootStrapper # Install and import the API Version Profile required by Azure Stack into the current PowerShell session. Use-AzureRmProfile ` -Profile 2017-03-09-profile -Force Install-Module ` -Name AzureStack ` -RequiredVersion 1.2.11 |
이 과정에서 오류가 발생하는 경우가 발생한다면 Azure Stack에서 배포된 AD서버(AzS-DC01)에서 IPv6를 Off하면 이슈가 해결된다. |
Disable-NetAdapterBinding -InterfaceAlias "Ethernet" -ComponentID ms_tcpip6 |
3.2 Azure Stack tools 다운로드
Powershell |
# Change directory to the root directory. cd \ # Download the tools archive. invoke-webrequest ` https://github.com/Azure/AzureStack-Tools/archive/master.zip ` -OutFile master.zip # Expand the downloaded files. expand-archive master.zip ` -DestinationPath . ` -Force # Change to the tools directory. cd AzureStack-Tools-master Import-Module .\Connect\AzureStack.Connect.psm1 |
3.3 Configure the operator environment and sign in to Azure Stack
$ArmEndpoint, $KeyvaultDnsSuffix 변수는 기본 값을 사용한다.
Powershell |
# Navigate to the downloaded folder and import the **Connect** PowerShell module Set-ExecutionPolicy RemoteSigned Import-Module .\Connect\AzureStack.Connect.psm1 # For Azure Stack development kit, this value is set to https://adminmanagement.local.azurestack.external. To get this value for Azure Stack integrated systems, contact your service provider. #$ArmEndpoint = "<Resource Manager endpoint for your environment>" $ArmEndpoint = "https://adminmanagement.local.azurestack.external" # For Azure Stack development kit, this value is adminvault.local.azurestack.external #$KeyvaultDnsSuffix = "<Keyvault DNS suffix for your environment>" $KeyvaultDnsSuffix = "adminvault.local.azurestack.external" # Register an AzureRM environment that targets your Azure Stack instance Add-AzureRMEnvironment ` -Name "AzureStackAdmin" ` -ArmEndpoint $ArmEndpoint # Get the Active Directory tenantId that is used to deploy Azure Stack $TenantID = Get-AzsDirectoryTenantId ` -ADFS ` -EnvironmentName "AzureStackAdmin" # Sign in to your environment Login-AzureRmAccount ` -EnvironmentName "AzureStackAdmin" ` -TenantId $TenantID |
Powershell |
Import-Module "C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1" $AzureContext = Get-AzureRmContext $CloudAdminCred = Get-Credential -UserName AZURESTACK\CloudAdmin -Message "Enter the cloud domain credentials to access the privileged endpoint" Add-AzsRegistration ` -CloudAdminCredential $CloudAdminCred ` -AzureSubscriptionId $AzureContext.Subscription.Id ` -AzureDirectoryTenantName $AzureContext.Tenant.TenantId ` -PrivilegedEndpoint AzS-ERCS01 ` -BillingModel Development |
4.2 More Services > Marketplace Management > Add from Azure
4.3 사용가능한 아이템이 확인되면 정상