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