How to install ERP Next in Azure VM

To install ERPNext on Azure Cloud using an instance, you can follow these steps:

  1. Create an Azure Virtual Machine:

    • Log in to the Azure portal (portal.azure.com).

    • Click on "Create a resource" and search for "Virtual Machine".

    • Follow the wizard to configure the virtual machine settings, including the operating system (Ubuntu 20.04 LTS is recommended), instance size, storage, networking, and authentication.

  2. Connect to the Virtual Machine:

    • Once the virtual machine is created, click on it in the Azure portal to access its details.

    • Under the "Connect" section, choose the appropriate method to connect to the virtual machine (e.g., SSH).

    • Use the provided credentials to establish a remote connection to the virtual machine.

  3. Set Up Prerequisites:

    • Update the system packages to their latest versions by running the following command:

        sqlCopy codesudo apt update && sudo apt upgrade
      
  4. Install Required Dependencies:

    • Install essential dependencies for ERPNext by running the following commands:

        Copy codesudo apt install python3-minimal build-essential python3-setuptools python3-dev libffi-dev libssl-dev
      
  5. Create a New User:

    • Create a new system user specifically for ERPNext:

        Copy codesudo adduser erpnext
      
  6. Grant Sudo Privileges:

    • Assign sudo privileges to the new user:

        Copy codesudo usermod -aG sudo erpnext
      
  7. Install Bench:

    • Bench is a command-line tool used to install and manage ERPNext instances. Install it using pip (Python package installer):

        Copy codesudo apt install python3-pip
        sudo pip3 install frappe-bench
      
  8. Create a New Bench:

    • Initialize a new bench by running the following commands:

        csharpCopy codesudo su - erpnext
        bench init erpnext-bench --frappe-branch version-13
        cd erpnext-bench
        bench new-site site1.local
      
  9. Install ERPNext:

    • Install ERPNext using the bench command:

        sqlCopy codebench get-app --branch version-13 erpnext https://github.com/frappe/erpnext
        bench --site site1.local install-app erpnext
      
  10. Set Up ERPNext:

    • Set up the administrator password and other required details by running:

        cssCopy codebench --site site1.local --force reinstall
      
  11. Configure Network Security:

    • In the Azure portal, navigate to the virtual machine's Networking settings.

    • Open the inbound port 80 (HTTP) and 443 (HTTPS) to allow access to the ERPNext instance from the internet.

  12. Access ERPNext:

    • Once the installation is complete, you can access ERPNext by opening a web browser and entering the public IP address or domain name of your Azure virtual machine.

Note: These steps provide a general overview of the installation process. Depending on your specific Azure configuration and requirements, you may need to make adjustments or additional configurations.

It's recommended to refer to the official ERPNext documentation for more detailed instructions and troubleshooting tips: erpnext.com/docs

Did you find this article valuable?

Support Itanand's Blog by becoming a sponsor. Any amount is appreciated!