仮想ホストマネージャおよび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:

General error:(一般エラー:)[AuthorizationFailed] The client 'client_name' with object id 'object_ID' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/not-very-secret-subscription-id' or the scope is invalid.([AuthorizationFailed]オブジェクトID「object_ID」のクライアント「client_name」には、アクション「Microsoft.Compute/virtualMachines/read」をスコープ「/subscriptions/not-very-secret-subscription-id」を超えて実行する権限がありません。またはスコープが無効です。)If access was recently granted, please refresh your credentials.(アクセスが最近付与された場合は、資格情報を更新してください。)

正しい資格情報を判断するには、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