Deploy JFrog Artifactory High Availability Using Azure Resource Manager Templates

Deploying Artifactory HA using Azure ARM Templates
Why Use Microsoft Azure Services?

Microsoft Azure services is used by many companies and government agencies for their software development and hosting infrastructure needs. Development teams can quickly set up and dismantle development environments and IT operation teams can quickly host their production software. It helps to avoid complexity and expenses in procuring and managing physical servers and data center infrastructure.

What is an Azure Resource Manager (ARM) Template?

The Azure Resource Manager (ARM) enables you to easily provision and control resources on Azure. Software infrastructure environments can be deployed to Azure using Azure Resource Manager (ARM) templates. An ARM template defines the environment for the software application to be deployed. ARM templates help organizations treat infrastructure as code. This “Infrastructure as Code” process greatly alleviates the pain in maintaining consistency across development, test and production environments.

To simplify setting up your JFrog Artifactory HA cluster environment, we have created a dedicated ARM Template The ARM Template enables you to deploy and manage the Artifactory HA solution using a JSON description file. The JSON file describes the list of resources needed and their dependencies. The ARM Template deploys and provisions all of the resources in a single, coordinated operation. It also provides ease in scaling up and down the Artifactory HA cluster nodes based your organization’s usage and needs.
This blog post shows how to easily create and manage your JFrog Artifactory HA cluster environment on Azure using our customized ARM Template.

Deploying Artifactory Using the ARM Template

These are the infrastructure components described in our Artifactory ARM template.

Artifactory HA Components in Azure Arm Template

Prerequisites

  1. Subscribe to Azure.
  2. Ensure you have sufficient quota and available resources including VM instances, public IPs, load balancers and virtual networks allocated for the region on which the ARM template will run.

    • A Network Security group
    • A Virtual Network
    • Two Network Interfaces
    • Two Public IP Addresses
    • A Load Balancer
    • A single storage Account
    • Two virtual machine scale sets
    • A Microsoft SQL Server
  3. Get your Artifactory Enterprise license. You can get a free trial license from https://jfrog.com/artifactory/free-trial.

Let’s Get Started!

The following step-by-step workflow demonstrates how to deploy the Artifactory HA using our customized ARM template.

  1. Go to the AzureResourceManager folder in the GitHub repository.
  2. Click Deploy to Azure.
    JFrog Cloud Installers
  3. Log in to the Microsoft Azure Portal.
  4. Fill out the template parameter values in the deployment form.
    template parameter value
  5. Click Purchase to start the deployment.
    Purchase an Azure subscription

  6. Wait for the deployment to complete. It should take approximately 20 minutes.
    Deploying Artifactory with ARM
  7. Access Artifactory using the URL displayed in the output section of the completed deployment.
    Access Artifactory in Azure console
    Artifactory is successfully launched.
    JFrog Artifactory Main page

Customizing the Dedicated-Artifactory Arm Template

  1. Git clone the JFrog-Cloud-Installers public GitHub repository.
  2. Customize the ARM template files located in the AzureResoureManager folder above git checkout.
  3. Log in to the Microsoft Azure Portal.
    Azure Portal Login
  4. Search for Template deployment.
    ARM - Template Deployment
  5. Click Build your own template in the editor.
    build your own ARM template
  6. Click the Load file tab and select the azuredeploy.json file from the AzureResoureManager folder in the  JFrog-Cloud-Installer Git checkout (described in step 1).
    useloader file

  7. Save the custom template.

  8. Fill out the template parameter values in the deployment form.
    useloader file
  9. Click Purchase to start the deployment.
    Purchasing in Microsoft Azure
  10. Wait for the deployment to complete. It should take approximately 20 minutes.
    wait for deployment
  11. Access Artifactory using the URL displayed in the output section of the completed deployment.
    Access Artifactory from Azure Portal
    accessing Artifactory
    Great! You have successfully deployed Artifactory using the customized ARM charts. To learn more about how to fine tune your Artifactory deployment, see JFrog Cloud Installers.