가상 호스트 관리자 및 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.

절차: Azure VHM 생성
  1. SUSE Multi-Linux Manager Web UI에서 시스템  가상 호스트 관리자로 이동합니다.

  2. Click Create and select Azure from the drop-down menu.

  3. In the Add an Azure Virtual Host Manager section, use these parameters:

    • In the Label field, type a custom name for your VHM.

    • In the Subscription ID field, type the subscription ID found in Azure portal > Services > Subscriptions page.

    • In the Application ID field, type the application ID that you collected when you registered the application.

    • In the Tenant ID field, type the tenant ID provided by Azure that you collected when you registered the application.

    • In the Secret Key field, type the secret key associated with the Azure instance.

    • In the Zone field, type the zone your VM is located in. For example, for West Europe, enter westeurope. 이 키는 작업과 일치하는 등록을 위해 필요합니다.

  4. 생성을 클릭하여 변경 사항을 저장하고 VHM을 생성합니다.

  5. On the Virtual Host Managers page, select the new VHM.

  6. On the Properties page, 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