Member-only story

How to Deploy Verdaccio in Azure using Terraform

Guillermo Musumeci
3 min read5 days ago

Verdaccio is a simple, zero-config-required local private NPM registry. There is no need for a database to get started, and we can have our own package registry to create reusable code packages that we can share across projects.

In this story, we will learn how to deploy Verdaccio in Azure using Terraform.

1. Recommended Deployment Approach

Azure App Service for Containers is generally the recommended option for a production-grade Verdaccio deployment for these reasons:

  • Managed PaaS Experience: App Service handles patching, scaling, and high availability, letting us focus on running Verdaccio rather than managing the underlying infrastructure.
  • Persistent Storage Integration: Combining with an Azure Storage Account (using a file share or Azure Files) can persist Verdaccio’s cache and configuration data across container restarts.

2. Defining the Azure Provider

First, we will define Azure authentication variables.

We will use a Service Principal with a Client Secret. Check the link below for more info about Azure authentication for Terraform

--

--

Guillermo Musumeci
Guillermo Musumeci

Written by Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌

No responses yet

Write a response