You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Install a Java SE implementation version 8 or later - for example, [Microsoft build of OpenJDK](/java/openjdk).
21
+
- Install [Maven](https://maven.apache.org/download.cgi), version 3.5.0 or higher.
19
22
- Ensure the Azure identity you use to sign in has either the [Contributor](/azure/role-based-access-control/built-in-roles#contributor) role or the [Owner](/azure/role-based-access-control/built-in-roles#owner) role in the current subscription. For an overview of Azure roles, see [What is Azure role-based access control (Azure RBAC)?](/azure/role-based-access-control/overview)
20
-
- Ensure you have the necessary Red Hat licenses. You need to have a Red Hat Account with Red Hat Subscription Management (RHSM) entitlement for JBoss EAP. This entitlement lets the Azure portal install the Red Hat tested and certified JBoss EAP version.
21
-
> [!NOTE]
22
-
> If you don't have an EAP entitlement, you can sign up for a free developer subscription through the [Red Hat Developer Subscription for Individuals](https://developers.redhat.com/register). Write down the account details, which you use as the *RHSM username* and *RHSM password* in the next section.
23
-
- After you're registered, you can find the necessary credentials (*Pool IDs*) by using the following steps. You also use the *Pool IDs* as the *RHSM Pool ID with EAP entitlement* later in this article.
24
-
1. Sign in to your [Red Hat account](https://sso.redhat.com).
25
-
1. The first time you sign in, you're asked to complete your profile. Make sure you select **Personal** for **Account Type**, as shown in the following screenshot.
26
-
27
-
:::image type="content" source="media/jboss-eap-single-server-azure-vm/update-account-type-as-personal.png" alt-text="Screenshot of selecting 'Personal' for the 'Account Type'." lightbox="media/jboss-eap-single-server-azure-vm/update-account-type-as-personal.png":::
28
-
29
-
1. In the tab where you're signed in, open [Red Hat Developer Subscription for Individuals](https://aka.ms/red-hat-individual-dev-sub). This link takes you to all of the subscriptions in your account for the appropriate SKU.
30
-
1. Select the first subscription from the **All purchased Subscriptions** table.
31
-
1. Copy and write down the value following **Master Pools** from **Pool IDs**.
32
-
33
-
> [!NOTE]
34
-
> The Azure Marketplace offer you're going to use in this article includes support for Red Hat Satellite for license management. Using Red Hat Satellite is beyond the scope of this quick start. For an overview on Red Hat Satellite, see [Red Hat Satellite](https://aka.ms/red-hat-satellite). To learn more about moving your Red Hat JBoss EAP and Red Hat Enterprise Linux subscriptions to Azure, see [Red Hat Cloud Access program](https://aka.ms/red-hat-cloud-access-overview).
35
23
36
24
## Deploy JBoss EAP Server on Azure VM
37
25
38
26
The steps in this section direct you to deploy JBoss EAP Server on Azure VMs.
39
27
40
28
:::image type="content" source="media/jboss-eap-single-server-azure-vm/portal-start-experience.png" alt-text="Screenshot of Azure portal showing JBoss EAP Server on Azure VM." lightbox="media/jboss-eap-single-server-azure-vm/portal-start-experience.png":::
41
29
42
-
The following steps show you how to find the JBoss EAP Server on Azure VM offer and fill out the **Basics** pane.
30
+
The following steps show you how to find the JBoss EAP Server on Azure VM offer and fill out the **Basics** pane:
43
31
44
-
1. In the search bar at the top of the Azure portal, enter *JBoss EAP*. In the search results, in the **Marketplace** section, select **JBoss EAP standalone on RHEL VM**.
32
+
1. In the search bar at the top of the Azure portal, enter *JBoss EAP*. In the search results, in the **Marketplace** section, select **JBoss EAP standalone on RHEL VM**. In the drop-down menu, ensure that **PAYG** is selected.
45
33
46
34
:::image type="content" source="media/jboss-eap-single-server-azure-vm/marketplace-search-results.png" alt-text="Screenshot of Azure portal showing JBoss EAP Server on Azure VM in search results." lightbox="media/jboss-eap-single-server-azure-vm/marketplace-search-results.png":::
47
35
48
-
In the drop-down menu, ensure **PAYG** is selected.
49
-
50
-
Alternatively, you can also go directly to the [JBoss EAP standalone on RHEL VM](https://aka.ms/eap-vm-single-portal) offer. In this case, the correct plan is already selected for you.
36
+
Alternatively, you can go directly to the [JBoss EAP standalone on RHEL VM](https://aka.ms/eap-vm-single-portal) offer. In this case, the correct plan is already selected for you.
51
37
52
38
In either case, this offer deploys JBoss EAP by providing your Red Hat subscription at deployment time, and runs it on Red Hat Enterprise Linux using a pay-as-you-go payment configuration for the base VM.
53
39
54
40
1. On the offer page, select **Create**.
55
41
1. On the **Basics** pane, ensure the value shown in the **Subscription** field is the same one that has the roles listed in the prerequisites section.
56
-
1. You must deploy the offer in an empty resource group. In the **Resource group** field, select **Create new** and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, *ejb0823jbosseapvm*.
42
+
1. You must deploy the offer in an empty resource group. In the **Resource group** field, select **Create new** and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, `ejb0823jbosseapvm`.
57
43
1. Under **Instance details**, select the region for the deployment.
58
44
1. Leave the default VM size for **Virtual machine size**.
59
-
1. Leave the default option **OpenJDK 17** for **JDK version**.
45
+
1. Leave the default option **OpenJDK 8** for **JDK version**.
60
46
1. Leave the default value **jbossuser** for **Username**.
61
47
1. Leave the default option **Password** for **Authentication type**.
62
48
1. Fill in password for **Password**. Use the same value for **Confirm password**.
@@ -69,34 +55,19 @@ The following steps show you how to fill out **JBoss EAP Settings** pane and sta
69
55
1. Leave the default value **jbossadmin** for **JBoss EAP Admin username**.
70
56
1. Fill in JBoss EAP password for **JBoss EAP password**. Use the same value for **Confirm password**. Write down the value for later use.
71
57
1. Leave the default option **No** for **Connect to an existing Red Hat Satellite Server?**.
72
-
1. Fill in your RHSM username for **RHSM username**. The value is the same one that has been prepared in the prerequisites section.
73
-
1. Fill in your RHSM password for **RHSM password**. Use the same value for **Confirm password**. The value is the same one that has been prepared in the prerequisites section.
74
-
1. Fill in your RHSM pool ID for **RHSM Pool ID with EAP entitlement**. The value is the same one that has been prepared in the prerequisites section.
75
-
1. Select **Next: Networking**.
76
-
1. Select **Next: Database**.
77
58
1. Select **Review + create**. Ensure the green **Validation Passed** message appears at the top. If the message doesn't appear, fix any validation problems, then select **Review + create** again.
78
59
1. Select **Create**.
79
60
1. Track the progress of the deployment on the **Deployment is in progress** page.
80
61
81
-
Depending on network conditions and other activity in your selected region, the deployment may take up to 6 minutes to complete. After that, you should see text **Your deployment is complete** displayed on the deployment page.
62
+
Depending on network conditions and other activity in your selected region, the deployment might take up to 6 minutes to complete. After that, you should see text **Your deployment is complete** displayed on the deployment page.
82
63
83
64
## Optional: Verify the functionality of the deployment
84
65
85
-
By default, the JBoss EAP Server is deployed on an Azure VM in a dedicated virtual network without public access. If you want to verify the functionality of the deployment by viewing the **Red Hat JBoss Enterprise Application Platform** management console, use the following steps to assign the VM a public IP address for access.
86
-
87
-
1. On the deployment page, select **Deployment details** to expand the list of Azure resource deployed. Select network security group `jbosseap-nsg` to open its details page.
88
-
1. Under **Settings**, select **Inbound security rules**. Select **+ Add** to open **Add inbound security rule** panel for adding a new inbound security rule.
89
-
1. Fill in *9990* for **Destination port ranges**. Fill in *Port_jbosseap* for **Name**. Select **Add**. Wait until the security rule created.
90
-
1. Select **X** icon to close the network security group `jbosseap-nsg` details page. You're switched back to the deployment page.
91
-
1. Select the resource ending with `-nic` (with type `Microsoft.Network/networkInterfaces`) to open its details page.
92
-
1. Under **Settings**, select **IP configurations**. Select `ipconfig1` from the list of IP configurations to open its configuration details panel.
93
-
1. Under **Public IP address**, select **Associate**. Select **Create new** to open the **Add a public IP address** popup. Fill in *jbosseapvm-ip* for **Name**. Select **Static** for **Assignment**. Select **OK**.
94
-
1. Select **Save**. Wait until the public IP address created and the update completes. Select the **X** icon to close the IP configuration page.
95
-
1. Copy the value of the public IP address from the **Public IP address** column for `ipconfig1`. For example, `20.232.155.59`.
96
-
97
-
:::image type="content" source="media/jboss-eap-single-server-azure-vm/public-ip-address.png" alt-text="Screenshot of public IP address assigned to the network interface." lightbox="media/jboss-eap-single-server-azure-vm/public-ip-address.png":::
98
-
99
-
1. Paste the public IP address in an Internet-connected web browser, append `:9990`, and press **Enter**. You should see the familiar **Red Hat JBoss Enterprise Application Platform** management console sign-in screen, as shown in the following screenshot.
66
+
1. Open the resource group you just created in the Azure portal.
67
+
1. Select the VM resource named `jbosieapVm`.
68
+
1. In the **Overview** pane, note the **Public IP address** assigned to the network interface.
69
+
1. Copy the public IP address.
70
+
1. Paste the public IP address in an Internet-connected web browser, append `:9990`, and press **Enter**. You should see the familiar **Red Hat JBoss Enterprise Application Platform** management console sign-in screen, as shown in the following screenshot:
@@ -108,21 +79,93 @@ By default, the JBoss EAP Server is deployed on an Azure VM in a dedicated virtu
108
79
> [!NOTE]
109
80
> You can also follow the guide [Connect to environments privately using Azure Bastion host and jumpboxes](/azure/cloud-adoption-framework/scenarios/cloud-scale-analytics/architectures/connect-to-environments-privately) and visit the **Red Hat JBoss Enterprise Application Platform** management console with the URL `http://<private-ip-address-of-vm>:9990`.
110
81
111
-
## Clean up resources
112
82
113
-
To avoid Azure charges, you should clean up unnecessary resources. When you no longer need the JBoss EAP Server deployed on Azure VM, unregister the JBoss EAP server and remove Azure resources.
83
+
## Optional: Deploy the app to the JBoss EAP Server
114
84
115
-
Run the following command to unregister the JBoss EAP server and VM from Red Hat subscription management.
85
+
The following steps show you how to create a "Hello World" application and then deploy it on JBoss EAP:
116
86
117
-
```azurecli
118
-
az vm run-command invoke\
119
-
--resource-group <resource-group-name> \
120
-
--name <vm-name> \
121
-
--command-id RunShellScript \
122
-
--scripts "sudo subscription-manager unregister"
123
-
```
87
+
1. Use the following steps to create a Maven project:
88
+
89
+
1. Open a terminal or command prompt.
90
+
91
+
1. Navigate to the directory where you want to create your project.
92
+
93
+
1. Run the following Maven command to create a new Java web application. Be sure to replace `<package-name>` with your desired package name and `<project-name>` with your project name.
1. Use the following steps to update the *pom.xml* file:
141
+
142
+
1. Add dependencies for Java EE APIs to your *pom.xml* file to ensure that you have the necessary libraries to compile the servlet:
143
+
144
+
```xml
145
+
<dependencies>
146
+
<dependency>
147
+
<groupId>javax.servlet</groupId>
148
+
<artifactId>javax.servlet-api</artifactId>
149
+
<version>4.0.1</version>
150
+
<scope>provided</scope>
151
+
</dependency>
152
+
</dependencies>
153
+
```
154
+
155
+
1. Build the project by running `mvn package`in the root directory of your project. This command generates a *.war* file in the *target* directory.
156
+
157
+
1. Use the following steps to deploy the application on JBoss EAP:
158
+
159
+
1. Open the JBoss EAP admin console at `http://<public-ip-address-of-ipconfig1>:9990`.
160
+
1. Deploy the *.war* file using the admin console by uploading the file in the **Deployments** section.
161
+
162
+
:::image type="content" source="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png" alt-text="Screenshot of the JBoss EAP management console Deployments tab." lightbox="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png":::
163
+
164
+
1. After deployment, access your "Hello World" application by navigating to `http://<public-ip-address-of-ipconfig1>:8080/helloworld/hello`in your web browser.
165
+
166
+
## Clean up resources
124
167
125
-
Run the following command to remove the resource group, VM, network interface, virtual network, and all related resources.
168
+
To avoid Azure charges, you should clean up unnecessary resources. Run the following command to remove the resource group, VM, network interface, virtual network, and all related resources.
126
169
127
170
```azurecli
128
171
az group delete --name <resource-group-name> --yes --no-wait
0 commit comments