Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Enterprise solution

On-prem offering that include advanced security, monitoring, performance features and more.

Setup with Microsoft Azure

Setup with Microsoft Azure

Welcome to the on-premise installation instructions for P0 on Azure. Follow this guide to get set up with your own version of P0.

Step 1: Set up a computer
  1. Go to https://portal.azure.com/#home

  2. Click on Create new Resource

  3. Go to Virtual Machine and click on Create

  4. Select (or create) a Resource Group

  5. Write a Virtual Machine Name

  6. Select a Region

  7. Go to Image

  8. Select See all images

  9. On the left-hand side, click on Community Images

  10. Then in the search bar search for p0-inc-id

  1. Go to https://portal.azure.com/#home

  2. Click on Create new Resource

  3. Go to Virtual Machine and click on Create

  4. Select (or create) a Resource Group

  5. Write a Virtual Machine Name

  6. Select a Region

  7. Go to Image

  8. Select See all images

  9. On t

  10. In Search the marketplace search for <p0/p0Image/latest - x64 Gen2>

  11. Press Select

  12. For Size select Standard_B2s - 2 vcpus, 4 GiB memory

  13. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one.

  14. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one. You will need this to ssh into the computer to set up p0)

  15. Allow inbound ports 80, 443 and 22

  16. Click Next

  17. Bump the OS Disk size to 64 GiB (P0 needs about 30 GB of space, we recommend you have 40GB, and Azure only gives us an option for 64)

  18. Go to the Networking tab.

    1. Select a Virtual network or create one

    2. Select a Public IP or create one

  19. Press Review + Create

  20. Make sure you download your private key after clicking on Review + Create

  21. Once deployment is finished, go to Deployment Details

  22. Click on the IP that you created. It looks like this

  23. Note down the IP address (if you have trouble finding it Cmd/Ctrl + F for Public IP Address). You will need this for the final step.

  1. Go to https://portal.azure.com/#home

  2. Click on Create new Resource

  3. Go to Virtual Machine and click on Create

  4. Select (or create) a Resource Group

  5. Write a Virtual Machine Name

  6. Select a Region

  7. Go to Image

  8. Select See all images

  9. On t

  10. In Search the marketplace search for <p0/p0Image/latest - x64 Gen2>

  11. Press Select

  12. For Size select Standard_B2s - 2 vcpus, 4 GiB memory

  13. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one.

  14. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one. You will need this to ssh into the computer to set up p0)

  15. Allow inbound ports 80, 443 and 22

  16. Click Next

  17. Bump the OS Disk size to 64 GiB (P0 needs about 30 GB of space, we recommend you have 40GB, and Azure only gives us an option for 64)

  18. Go to the Networking tab.

    1. Select a Virtual network or create one

    2. Select a Public IP or create one

  19. Press Review + Create

  20. Make sure you download your private key after clicking on Review + Create

  21. Once deployment is finished, go to Deployment Details

  22. Click on the IP that you created. It looks like this

  23. Note down the IP address (if you have trouble finding it Cmd/Ctrl + F for Public IP Address). You will need this for the final step.

  1. Press Select

  2. For Size Click on B2s in the table

    1. Press Select

  3. Licensing Type should be Other

  4. Also, create a new SSH key pair (Either create a new SSH Key pair or use an existing one. You will need this to ssh into the computer to set up p0)

  5. Allow inbound ports 80, 443 and 22

  6. Click Next

  7. Bump the OS Disk size to 64 GiB (P0 needs about 30 GB of space, we recommend you have 40GB, and Azure only gives us an option for 64)

  8. Go to the Networking tab.

    1. Select a Virtual network or create one

    2. Select a Public IP or create one

  9. Press Review + Create

  10. Make sure you download your private key after clicking on Review + Create

  11. Once deployment is finished, click on Go to Resource(The page should look like the screenshot below)

  12. Click on the IP that you created.

  13. Note down the IP address (if you have trouble finding it Cmd/Ctrl + F for Public IP Address). You will need this for the final step.

  1. Go to https://portal.azure.com/#home

  2. Click on Create new Resource

  3. Go to Virtual Machine and click on Create

  4. Select (or create) a Resource Group

  5. Write a Virtual Machine Name

  6. Select a Region

  7. Go to Image

  8. Select See all images

  9. On t

  10. In Search the marketplace search for <p0/p0Image/latest - x64 Gen2>

  11. Press Select

  12. For Size select Standard_B2s - 2 vcpus, 4 GiB memory

  13. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one.

  14. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one. You will need this to ssh into the computer to set up p0)

  15. Allow inbound ports 80, 443 and 22

  16. Click Next

  17. Bump the OS Disk size to 64 GiB (P0 needs about 30 GB of space, we recommend you have 40GB, and Azure only gives us an option for 64)

  18. Go to the Networking tab.

    1. Select a Virtual network or create one

    2. Select a Public IP or create one

  19. Press Review + Create

  20. Make sure you download your private key after clicking on Review + Create

  21. Once deployment is finished, go to Deployment Details

  22. Click on the IP that you created. It looks like this

  23. Note down the IP address (if you have trouble finding it Cmd/Ctrl + F for Public IP Address). You will need this for the final step.

  1. Go to https://portal.azure.com/#home

  2. Click on Create new Resource

  3. Go to Virtual Machine and click on Create

  4. Select (or create) a Resource Group

  5. Write a Virtual Machine Name

  6. Select a Region

  7. Go to Image

  8. Select See all images

  9. On t

  10. In Search the marketplace search for <p0/p0Image/latest - x64 Gen2>

  11. Press Select

  12. For Size select Standard_B2s - 2 vcpus, 4 GiB memory

  13. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one.

  14. Also create a new SSH key pair (Either create a new SSH Key pair, or use an existing one. You will need this to ssh into the computer to set up p0)

  15. Allow inbound ports 80, 443 and 22

  16. Click Next

  17. Bump the OS Disk size to 64 GiB (P0 needs about 30 GB of space, we recommend you have 40GB, and Azure only gives us an option for 64)

  18. Go to the Networking tab.

    1. Select a Virtual network or create one

    2. Select a Public IP or create one

  19. Press Review + Create

  20. Make sure you download your private key after clicking on Review + Create

  21. Once deployment is finished, go to Deployment Details

  22. Click on the IP that you created. It looks like this

  23. Note down the IP address (if you have trouble finding it Cmd/Ctrl + F for Public IP Address). You will need this for the final step.

Step 2: Connect your domain

This will be where your version of p0 will be hosted. Pick something clear like - p0.<YOUR_DOMAIN>.com

  1. Take the IP address of the computer you just created

  2. Go to your DNS provider (GoDaddy, NameCheap, Route53 etc)

  3. You should typically see a table like the below, where you will add an A Record and the Value is the IP address

    1. Name the A Record something like p0. The full form will then be p0.<YOUR_DOMAIN>.com

    2. Set TTL to 60s / 1 minute.

    3. Create record

    4. Note down the domain name. You will need this for the final step.

  4. If you want more guidance, go to the following resources, depending on your DNS provider

    1. Godaddy

    2. NameCheap

    3. Route53

    4. Azure DNS

Step 3.a: Create your own Github application

You need to create a Github application that allows access to your repositories. This will be an application *you* control to ensure code does not leave your cloud.

Note: You need to be an Owner of the organization

Note: Select the protocol for your application. If you are using it for internal purposes, select HTTP, else select HTTPS.

This will take you to your Github organization to finish the process of creating the Github application

Step 3.b: Generate private key for Github application

You need to create a Github application that allows access to your repositories. This will be an application *you* control to ensure code does not leave your cloud. Please take not of your Github application ID

Step 4: Download & run scripts
  1. You will have to SCP the github .pem file which you downloaded onto the computer you set up in step 2 using the SSH key you created in step 1 (these are two different .pem files)

    • scp -i /path/to/private-key.pem /path/to/local/github.pem azureuser@public_ip_from_step_1:/home/azureuser/

  2. SSH into your computer, using the key pair from Step 3

    • ssh -i "/path/to/private-key.pem" azureuser@public_ip_from_step_1

    • You might need to run this with sudo - sudo ssh -i "/path/to/private-key.pem" azureuser@public_ip_from_step-1

  3. cd p0Setup

  4. Run the install script, and fill in all of the information when prompted

    • ./install.sh

    • Side note: You might have to run this with sudo

  5. You will be prompted for your

    • Domain (from Step-2)

    • Github Application ID - from the Github Application you created

    • Github Application Name - from the Github Application you created

    • Github Private Key, which you can enter like this /home/azureuser/your_github_key.pem

  6. Wait for the script to run (should take 30 seconds)

  7. This is what it should look like once the installation has succeeded

  1. If there is an error, it is likely because of your domain - simply run the install script again, it should work.

  2. Then visit your domain and login!

Update Installation
In order to reset your installation you will have to complete two steps
  1. Reset your Github application
  2. Reset P0
Step 1: Reset your Github Installation
  1. You need to uninstall the Github application as your first step for a complete reset. Please fill in the below details in order to successfully uninstall the application.
  2. Press Uninstall app in github button and go to Configure and Uninstall

Once there, click on “Uninstall” at the bottom as shown in the screenshot below.

Reset P0
Reset P0
  1. SSH into your on-premise server - ssh -i "/path/to/private-key.pem" azureuser@public_ip_from_step1

  2. You might need to run this with sudo - sudo ssh -i "/path/to/private-key.pem" azureuser@public_ip_from_step-1

  3. Run the following steps

    1. cd p0Setup

    2. wget https://p0-public-bucket.s3.ap-south-1.amazonaws.com/resetSystems.sh

    3. sudo sh resetSystems.sh

    4. Say yes - for this prompt while running the script - Existing data found for testing-p0-reset.tech.p0.inc. Continue and replace existing certificate? (y/N) y

  4. Go to your domain

Update your Github Installation
  1. Please fill in the below details in order to successfully update your Github application.
  2. Press Update application button to open the Github app settings

Note: You need to be an Owner of the organization

Once there, enable the Redirect on update option, and click Save changes.

Contact us

Contact us

If you are facing any trouble setting up your on-prem application, reach out to us at contact@p0.inc

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.