Deploy JFrog Artifactory High Availability Using Azure Resource Manager Templates

JFrog
JFrog
Published in
4 min readJun 7, 2018

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.

e 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.

Prerequisites

  1. Prepare the following resources used by Artifactory ARM Template:
  • 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
  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.

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.
  1. Log in to the Microsoft Azure Portal.
  2. Fill out the template parameter values in the deployment form.
  1. Click Purchase to start the deployment.
  1. Wait for the deployment to complete. It should take approximately 20 minutes.
  1. Access Artifactory using the URL displayed in the output section of the completed deployment.
  1. Artifactory is successfully launched.

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.
  1. Search for Template deployment.
  1. Click Build your own template in the editor.
  1. 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).
  1. Save the custom template.
  1. Fill out the template parameter values in the deployment form.
  1. Click Purchase to start the deployment.
  1. Wait for the deployment to complete. It should take approximately 20 minutes.
  1. Access Artifactory using the URL displayed in the output section of the completed deployment.
  1. 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.

Originally published at jfrog.com on June 7, 2018.

--

--

JFrog
JFrog
Editor for

Universal Artifact Repository & Distribution Platform. Makers of Artifactory, Bintray, Xray, & Mission Control.