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 yourArtifactory Enterprise license. You can get a free trial license from//m.si-fil.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 theAzureResourceManagerfolder in the GitHub repository.
  2. ClickDeploy to Azure.
    JFrog Cloud Installers
  3. Log in to theMicrosoft Azure Portal.
  4. Fill out the template parameter values in the deployment form.
    template parameter value
  5. ClickPurchaseto 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. 访问艺术ifactory using the URL displayed in the output section of the completed deployment.
    访问艺术ifactory in Azure console
    Artifactory is successfully launched.
    JFrog ArtifactoryMain page

Customizing the Dedicated-Artifactory Arm Template

  1. Git clone theJFrog-Cloud-Installers publicGitHub repository.
  2. Customize the ARM template files located in theAzureResoureManagerfolder above git checkout.
  3. Log in to theMicrosoft Azure Portal.
    Azure Portal Login
  4. Search forTemplate deployment.
    ARM - Template Deployment
  5. ClickBuild your own template in the editor.
    build your own ARM template
  6. Click theLoad filetab and select theazuredeploy.jsonfile from theAzureResoureManagerfolder in theJFrog-Cloud-InstallerGit checkout(堤防ed in step 1).
    useloader file

  7. Save the custom template.

  8. Fill out the template parameter values in the deployment form.
    useloader file
  9. ClickPurchaseto start the deployment.
    Purchasing in Microsoft Azure
  10. Wait for the deployment to complete. It should take approximately 20 minutes.
    wait for deployment
  11. 访问艺术ifactory using the URL displayed in the output section of the completed deployment.
    访问艺术ifactory 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, seeJFrog Cloud Installers.