Payara Cloud Azure Customer Managed Region

The Payara Cloud Azure Customer Managed Region feature allows you to deploy your applications to a dedicated, private cloud region within your own Azure account, providing more control and isolation compared to a shared cloud environment.

In essence, this service enables you to use Payara Cloud’s managed Jakarta EE capabilities while maintaining your applications within your own Azure infrastructure.

Setting Up Your Payara Cloud Customer Managed Region on Azure

This guide will walk you through deploying a Payara Cloud Customer Managed Region on Azure, allowing you to run your Jakarta EE applications in a dedicated, private cloud environment.

Prerequisites

  • Public DNS Domain: You’ll need a domain you control to create a subdomain for your Payara Cloud region.

  • Azure Subscription: You must have an active Azure subscription to deploy the managed application.

Step-by-Step Setup

Sign Up for Payara Cloud

  1. Go to the Payara Cloud signup page.

  2. Create an account using your preferred method (username/password, GitHub, or Google).

If you already have a Payara Cloud account, login instead.

Create a Customer Managed Region

A screenshot displaying the menu to add a new customer managed region
Figure 1. Customer Managed Region menu from Payara Cloud
  1. In Payara Cloud, select Switch Subscriptions menu.

  2. Select Private Cloud menu under the Switch Subscription menu

  3. Give your region a descriptive name

  4. Click "Save Setting."

  5. Copy the resulting Account Information Connection string. You’ll need that later in Azure.

A screenshot displaying new CMR dialog
Figure 2. Private Cloud creation dialog form
A screenshot displaying new CMR dialog
Figure 3. Account Connection Information Page

Deploy the Managed Application on Azure

  1. In the Azure portal, under My Market Place, click on plans and search for and select the "Payara Cloud Customer Managed Region" managed application.

  2. Provide the following required parameters:

    • Payara Cloud Connection String: Paste the connection string you copied earlier.

    • Domain to Create: Enter the subdomain you want to use (e.g., 'payara.yourdomain.com').

    • Let’s Encrypt Email: Provide an email associated with your Let’s Encrypt certificates.

  3. Deploy the managed application.

Configure DNS

  1. Once the deployment is complete, note the dns_nameservers output from the application.

  2. In your DNS provider’s settings for your main domain, create an NS record pointing your subdomain (e.g., 'payara') to the provided nameservers.

Verify and Deploy Applications

  1. Back in Payara Cloud, go to "Subscription Management" and ensure your new region is "Active."

  2. Navigate to "Application Management" and create a new namespace, selecting your custom region.

  3. Upload your Jakarta EE web application (WAR file).

  4. Select "Deploy Immediately" and click "Upload."

  5. Once deployed, you can access your application using the provided URL.

Important Notes

If you encounter a certificate error, it might be because the Let’s Encrypt certificate hasn’t been issued yet. Make sure your DNS settings are correct, and wait a few minutes. You can monitor application logs within the Payara Cloud interface.