Deploy and Configure Virtual Appliance in Microsoft Azure

You can deploy Virtual Appliance in Azure using the Virtual Hard Disk (VHD) file.

Note: This document contains links to Microsoft® Azure documentation. Splunk AppDynamics makes no representation as to the accuracy of Microsoft Azure documentation because Microsoft controls its own documentation.

Before You Begin

Download the VHD image from the Virtual Appliance tab in the Downloads portal, and verify that the file has execute permissions.

Prepare the Azure Environment

To deploy virtual machines in Microsoft Azure, you require the following Azure resources. You can create or configure the Azure resources through Azure portal or Azure CLI.

Note:

To use Azure CLI, you require the reference scripts. Download these script from the Splunk AppDynamics GitHub repository. We recommend that you run the scripts in the given order. Before you run these scripts, ensure to update or verify the configuration details in config.cfg such as tags, deployment configuration, and IP addresses.

For more information about Azure CLI, see Azure CLI Documentation.

Order Azure Resources Description Reference Scripts
1 Resource Group This resource group contains the virtual machines and related resources. Create a resource group or use the existing resource group. See Manage Azure resource groups by using the Azure portal. 01-azure-create-rg.sh
2 Network Security Group Network security groups facilitates the traffic flow in the virtual network subnets and network interfaces. Create a network security group with ports 22 or 443. You can also use the existing network security groups for deploying virtual machines. See Create, change, or delete a network security group. 02-azure-create-nsg.sh
3 Virtual Network

You require a virtual network where the virtual machines share this network for their communication. Create a virtual network and associate it with the network security group that you created in the previous step. See Quickstart: Use the Azure portal to create a virtual network.

03-azure-vnet.sh
4 Storage Account

Azure storage account keeps all the Azure Storage data objects such as, blobs, files, queues, and tables. The storage account is to store the VHD file and create an image. See, Create an Azure storage account.

04-azure-storage-account.sh
5 Disk

Upload the VHD image to a storage account. Create a disk by using the URI of the VHD file.

05-azure-create-disk.sh
6 Image Gallery

An image is a copy of the disk. Image gallery is a place where you can store and share the image to create multiple virtual machines.

  1. Create an image gallery.
  2. Update the shared image definition and version.

See Store and share images in an Azure Compute Gallery.

06-azure-image-gallery.sh

07-azure-shared-image-def.sh

08-azure-shared-image-version.sh

仮想マシンの作成

Splunk AppDynamics オンプレミス仮想アプライアンスには 3 台の仮想マシンが必要です。仮想ディスクファイルから作成したイメージを使用して、Azure ポータルで 3 つの仮想マシンを作成します。

注: 仮想マシンがサポートされているサイジング要件に従っていることを確認します。「サイジング要件」を参照してください。

仮想マシンの作成の詳細については、「Quickstart: Create a Linux virtual machine in the Azure portal」を参照してください。

または、Azure CLI を使用して 09-azure-vm-create.sh ファイルを実行し、3 つの仮想マシンを作成することもできます。

仮想マシンの設定の確認

3 つの仮想マシンを作成したら、設定が正しく、サーバーで Splunk AppDynamics サービスをインストールする準備ができていることを確認します。

  1. appduser ログイン情報を使用していずれかのノードコンソールにログインします。
  2. クラスタの各ノードで appdctl show boot コマンドを実行します。

    出力例

    CODE
    NAME              | STATUS    | ERROR 
    -------------------+-----------+-------
     firewall-setup    | Succeeded | --    
     hostname          | Succeeded | --    
     netplan           | Succeeded | --    
     ssh-setup         | Succeeded | --    
     storage-setup     | Succeeded | --    
     cert-setup        | Succeeded | --    
     enable-time-sync  | Succeeded | --    
     microk8s-setup    | Succeeded | --    
     cloud-init-config | Succeeded | --
    注: appdctl show boot コマンドでエラーが表示されることがあります。このエラーを解決するには、数分後にコマンドを再度実行します。「仮想アプライアンスの問題のトラブルシュート」を参照してください。