Skip to content

Deploy an Azure VM with RHEL 8_3, IBM WebSphere Application Server ND Traditional V9.0.5 & IBM JDK 8.0 pre-installed

License

Notifications You must be signed in to change notification settings

majguo/arm-rhel-was-nd-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy an Azure VM with RHEL 8_3, IBM WebSphere Application Server ND Traditional V9.0.5 & IBM JDK 8.0 pre-installed

Prerequisites

  1. Register an Azure subscription.
  2. Register an IBM id. Contact IBM to make it entitled.
  3. Install Azure CLI.
  4. Install PowerShell Core.
  5. Install Maven.
  6. Install jq.

Steps of deployment

  1. Checkout azure-javaee-iaas

    1. Change to directory hosting the repo project & run mvn clean install
  2. Checkout arm-ttk under the specified parent directory

  3. Checkout this repo under the same parent directory and change to directory hosting the repo project

  4. Build the project by replacing all placeholder ${<place_holder>} with valid values

    mvn -Dgit.repo=<repo_user> -Dgit.tag=<repo_tag> -DibmUserId=<ibmUserId> -DibmUserPwd=<ibmUserPwd> -DvmAdminId=<vmAdminId> -DvmAdminPwd=<vmAdminPwd> -DdnsLabelPrefix=<dnsLabelPrefix> -Dtest.args="-Test All" -Ptemplate-validation-tests clean install
  5. Change to ./target/arm directory

  6. Using deploy.azcli to deploy

    ./deploy.azcli -n <deploymentName> -i <subscriptionId> -g <resourceGroupName> -l <resourceGroupLocation>

After deployment

  1. You can capture the source VM to a custom image, which consists of RHEL 8_3, IBM WebSphere Application Server ND Traditional V9.0.5 & IBM JDK 8.0, so it can be reused to create VM instances based on it using the same subscription;
  2. Similar to creating a custom private image, you can also create a Virtual Machine offer in Azure Marketplace, which is globally public and accessible. You can see more information in the following section.

Creating Virtual Machine offer in Azure Marketplace

  1. Deploy an Azure VM provisioned with RHEL, WebSphere & JDK (e.g., RHEL 8_3, IBM WebSphere Application Server ND Traditional V9.0.5 & IBM JDK 8.0). Use different combinations of OS, WebSphere and JDK per your requirements. If you want to install WebSphere and JDK in a separate data disk, only provision the VM with RHEL. Manual deployment or using the tailored ARM template works.
    1. Use un-managed disks instead of managed disks for VM provision. By doing so, the VHDs attached to the VM are stored in the storage account, which can be accessed later during the certification process of publishing VM image into Azure Marketplace
    2. This repo is an example on how to create an un-managed OS disk and data disk in the storage account using ARM template;
  2. Generate VM image:
    1. SSH into the provisioned VM
      1. Delete all sensitive files that you don't want them appear in image
      2. sudo waagent -deprovision+user -force
      3. exit
    2. De-allocate VM: az vm deallocate --resource-group <resourceGroupName> --name <vmName>
    3. Generalize VM: az vm generalize --resource-group <resourceGroupName> --name <vmName>
    4. [Optional] To test if the VHD of de-allocated and generalized VM works, you can create image and use it for creating new VM instances to verify
      1. az image create --resource-group <resourceGroupName> --name <imageName> --source <vmName>
      2. az vm create --resource-group <resourceGroupName> --name <newVMInstanceName> --image <imageId> --generate-ssh-keys
  3. Create virtual machine offer on Azure Marketplace using the VM image:
    1. How to plan a virtual machine offer
    2. How to create plans for a virtual machine offer
    3. How to create a virtual machine using your own image
    4. How to generate a SAS URI for a VM image
  4. Once the VM offer created successfully in Azure Marketplace, try to deploy a virtual machine using this VM offer and export the ARM template, where you can find how to correctly reference the VM offer in the upstream ARM template.

About

Deploy an Azure VM with RHEL 8_3, IBM WebSphere Application Server ND Traditional V9.0.5 & IBM JDK 8.0 pre-installed

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages