가상 호스트 관리자 및 Azure
가상 호스트 관리자(VHM)을 사용하여 Microsoft Azure에서 인스턴스를 수집할 수 있습니다.
VHM을 통해 SUSE Multi-Linux Manager는 가상 머신에 대한 정보를 획득하고 보고할 수 있습니다. VHM에 대한 자세한 내용은 가상 호스트 관리자을 참조하십시오.
1. 선행 조건
사용자가 생성하는 VHM은 Azure VM에 액세스하려면 올바른 권한이 할당되어 있어야 합니다.
Azure 계정에 구독 관리자로 로그인하여 Azure 사용자 계정 및 응용 프로그램이 올바른 그룹에 있는지 확인하십시오. 응용 프로그램이 속한 그룹에 따라 응용 프로그램의 역할이 결정되고, 이에 따라 권한도 결정됩니다.
2. Azure VHM 생성
가상 호스트 관리자(VHM)는 SUSE Multi-Linux Manager 서버에서 실행됩니다.
Ensure you have installed the virtual-host-gatherer-libcloud package on the SUSE Multi-Linux Manager Server.
-
SUSE Multi-Linux Manager Web UI에서 로 이동합니다.
-
Click Create and select
Azurefrom the drop-down menu. -
In the
Add an Azure Virtual Host Managersection, use these parameters:-
In the
Labelfield, type a custom name for your VHM. -
In the
Subscription IDfield, type the subscription ID found inAzure portal > Services > Subscriptionspage. -
In the
Application IDfield, type the application ID that you collected when you registered the application. -
In the
Tenant IDfield, type the tenant ID provided by Azure that you collected when you registered the application. -
In the
Secret Keyfield, type the secret key associated with the Azure instance. -
In the
Zonefield, type the zone your VM is located in. For example, for West Europe, enterwesteurope. 이 키는 작업과 일치하는 등록을 위해 필요합니다.
-
-
생성을 클릭하여 변경 사항을 저장하고 VHM을 생성합니다.
-
On the
Virtual Host Managerspage, select the new VHM. -
On the
Propertiespage, click Refresh Data to inventory the new VHM.
어떤 객체 및 리소스가 목록에 포함되었는지 확인하려면 으로 이동하십시오.
3. 권한 할당
If the permissions are not set correctly, you might receive an error like this when you run virtual-host-gatherer:
일반 오류: [AuthorizationFailed] 객체 ID가 ‘object_ID’인 'client_name' 클라이언트에 '/subscriptions/not-very-secret-subscription-id' 범위에 걸쳐 ‘Microsoft.Compute/virtualMachines/read’ 작업을 수행할 권한이 없거나 이 범위가 잘못되었습니다. 액세스가 최근에 허용되었다면 인증서를 새로 고침하시기 바랍니다.
인증서가 올바른지 확인하려면 다음과 같이 SUSE Multi-Linux Manager 서버의 프롬프트에서 다음 명령을 실행하십시오.
virtual-host-gatherer -i input_azure.json -o out_azure.json -vvv
The input_azure.json file should contain this information:
[
{
"id": "azure_vhm",
"module": "Azure",
"subscription_id": "subscription-id",
"application_id": "application-id",
"tenant_id": "tenant-id",
"secret_key": "secret-key",
"zone": "zone"
}
]
4. Azure UUID
Azure 공용 클라우드에서 실행되는 인스턴스는 다음과 같이 이 UUID를 SUSE Multi-Linux Manager 서버에 보고합니다.
13f56399-bd52-4150-9748-7190aae1ff21