您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

使用 Red Hat Enterprise Linux 上的 JBoss EAP 将企业 Java 应用程序部署到 AzureDeploy enterprise Java applications to Azure with JBoss EAP on Red Hat Enterprise Linux

本文中的 Azure 快速入门模板介绍如何使用 Red Hat Enterprise Linux (RHEL)JBoss Enterprise Application Platform (EAP) 部署到 Azure 虚拟机 (VM) 和虚拟机规模集。The Azure Quickstart templates in this article show you how to deploy JBoss Enterprise Application Platform (EAP) with Red Hat Enterprise Linux (RHEL) to Azure virtual machines (VMs) and virtual machine scale sets. 你将使用示例 Java 应用来验证部署。You'll use a sample Java app to validate the deployment.

JBoss EAP 是开放源代码应用程序服务器平台。JBoss EAP is an open-source application server platform. 它为 Java 应用程序提供企业级安全性、可伸缩性和性能。It delivers enterprise-grade security, scalability, and performance for your Java applications. RHEL 是开放源代码操作系统 (OS) 平台。RHEL is an open-source operating system (OS) platform. 通过它可缩放现有应用,并在所有环境中推出新兴技术。It allows scaling of existing apps and rolling out of emerging technologies across all environments.

JBoss EAP 和 RHEL 包括在任何环境中生成、运行、部署和管理企业 Java 应用程序所需的一切内容。JBoss EAP and RHEL include everything that you need to build, run, deploy, and manage enterprise Java applications in any environment. 该组合是用于本地环境、虚拟环境、私有云、公有云和混合云的开放源代码解决方案。The combination is an open-source solution for on-premises, virtual environments, and in private, public, or hybrid clouds.

先决条件Prerequisites

  • 具有活动订阅的 Azure 帐户。An Azure account with an active subscription. 若要获取 Azure 订阅,请激活适用于 Visual Studio 订阅者的 Azure 额度免费创建帐户To get an Azure subscription, activate your Azure credits for Visual Studio subscribers or create an account for free.

  • JBoss EAP 安装。JBoss EAP installation. 需要有一个 Red Hat 帐户,该帐户具有针对 JBoss EAP 的 Red Hat 订阅管理 (RHSM) 权利。You need to have a Red Hat account with Red Hat Subscription Management (RHSM) entitlement for JBoss EAP. 此权利允许你下载 Red Hat 经过测试和认证的 JBoss EAP 版本。This entitlement will let you download the Red Hat tested and certified JBoss EAP version.

    如果没有 EAP 权利,请在开始之前获取 JBoss EAP 计算订阅If you don't have EAP entitlement, obtain a JBoss EAP evaluation subscription before you get started. 若要新建 Red Hat 订阅,请转到 Red Hat 客户门户并设置帐户。To create a new Red Hat subscription, go to Red Hat Customer Portal and set up an account.

  • Azure CLIThe Azure CLI.

  • RHEL 选项。RHEL options. 选择即用即付 (PAYG) 或自带订阅 (BYOS)。Choose pay-as-you-go (PAYG) or bring-your-own-subscription (BYOS). 如果使用 BYOS,需要在部署快速启动模板之前激活 Red Hat Cloud Access RHEL 黄金映像。With BYOS, you need to activate your Red Hat Cloud Access RHEL Gold Image before you deploy the Quickstart template.

Java EE 和 Jakarta EE 应用程序迁移Java EE and Jakarta EE application migration

迁移到 JBoss EAPMigrate to JBoss EAP

JBoss EAP 7.2 和 7.3 是 Java Enterprise Edition (Java EE) 8 和 Jakarta EE 8 规范的认证实现。JBoss EAP 7.2 and 7.3 are certified implementations of the Java Enterprise Edition (Java EE) 8 and Jakarta EE 8 specifications. JBoss EAP 为高可用性 (HA) 群集、消息传递和分布式缓存等功能提供预先配置的选项。JBoss EAP provides preconfigured options for features such as high-availability (HA) clustering, messaging, and distributed caching. 它还允许用户使用 JBoss EAP 提供的各种 API 和服务来编写、部署和运行应用程序。It also enables users to write, deploy, and run applications by using the various APIs and services that JBoss EAP provides.

有关 JBoss EAP 的详细信息,请参阅 JBoss EAP 7.2 简介JBoss EAP 7.3 简介For more information on JBoss EAP, see Introduction to JBoss EAP 7.2 or Introduction to JBoss EAP 7.3.

JBoss EAP 上的应用程序Applications on JBoss EAP

  • Web 服务应用程序Web services applications. Web 服务提供在软件应用程序之间进行互操作的标准方法。Web services provide a standard way to interoperate among software applications. 每个应用程序都可以在不同的平台和框架上运行。Each application can run on different platforms and frameworks. 这些 Web 服务有助于内部和异类子系统的通信。These web services facilitate internal and heterogeneous subsystem communication.

    若要了解详细信息,请参阅在 EAP 7.2 上开发 Web 服务应用程序在 EAP 7.3 上开发 Web 服务应用程序To learn more, see Developing Web Services Applications on EAP 7.2 or Developing Web Services Applications on EAP 7.3.

  • 企业 Java Beans (EJB) 应用程序Enterprise Java Beans (EJB) applications. EJB 3.2 是一种用于开发分布式、事务性、安全且可移植的 Java EE 和 Jakarta EE 应用程序的 API。EJB 3.2 is an API for developing distributed, transactional, secure, and portable Java EE and Jakarta EE applications. EJB 使用称为 Enterprise Beans 的服务器端组件,以一种鼓励重用的分离方式实现应用程序的业务逻辑。EJB uses server-side components called Enterprise Beans to implement the business logic of an application in a decoupled way that encourages reuse.

    若要了解详细信息,请参阅在 EAP 7.2 上开发 EJB 应用程序在 EAP 7.3 上开发 EJB 应用程序To learn more, see Developing EJB Applications on EAP 7.2 or Developing EJB Applications on EAP 7.3.

  • Hibernate 应用程序Hibernate applications. 开发人员和管理员可以通过 JBoss EAP 开发和部署 Java Persistence API (JPA) 和 Hibernate 应用程序。Developers and administrators can develop and deploy Java Persistence API (JPA) and Hibernate applications with JBoss EAP. Hibernate Core 是面向 Java 语言的对象关系映射框架。Hibernate Core is an object-relational mapping framework for the Java language. 它提供了一个用于将面向对象的域模型映射到关系数据库的框架,以便应用程序可以避免直接与数据库交互。It provides a framework for mapping an object-oriented domain model to a relational database, so applications can avoid direct interaction with the database.

    Hibernate 实体管理器实现 JPA 2.1 规范定义的编程接口和生命周期规则。Hibernate Entity Manager implements the programming interfaces and lifecycle rules as defined by the JPA 2.1 specification. 此包装器结合了 Hibernate 注解,在成熟的 Hibernate Core 基础上实现了一个完整的(且独立的)JPA 解决方案。Together with Hibernate Annotations, this wrapper implements a complete (and standalone) JPA solution on top of the mature Hibernate Core.

    若要了解有关 Hibernate 的详细信息,请参阅 EAP 7.2 上的 JPAEAP 7.3 上的 Jakarta PersistenceTo learn more about Hibernate, see JPA on EAP 7.2 or Jakarta Persistence on EAP 7.3.

Red Hat Migration Toolkit for ApplicationsRed Hat Migration Toolkit for Applications

Red Hat 适用于应用程序的迁移工具包 (MTA) 是面向 Java 应用程序服务器的迁移工具。Red Hat Migration Toolkit for Applications (MTA) is a migration tool for Java application servers. 使用此工具可从另一台应用服务器迁移到 JBoss EAP。Use this tool to migrate from another app server to JBoss EAP. 它与适用于 Eclipse IDE 的 IDE 插件、Red Hat CodeReady Workspaces 以及适用于 Java 的 Visual Studio Code 配合使用。It works with IDE plug-ins for Eclipse IDE, Red Hat CodeReady Workspaces, and Visual Studio Code for Java.

MTA 是一个免费的开放源代码工具,可执行以下操作:MTA is a free and open-source tool that:

  • 自动执行应用程序分析。Automates application analysis.
  • 支持工作量估算。Supports effort estimation.
  • 加速代码迁移。Accelerates code migration.
  • 支持容器化。Supports containerization.
  • 与 Azure 工作负荷生成器集成。Integrates with Azure Workload Builder.

将 JBoss EAP 从本地迁移到 AzureMigrate JBoss EAP from on-premises to Azure

RHEL 上的 JBoss EAP 的 Azure 市场产品/服务将在不到 20 分钟的时间内在 Azure VM 上安装和预配。The Azure Marketplace offer of JBoss EAP on RHEL will install and provision on Azure VMs in less than 20 minutes. 可以从 Azure 市场访问这些产品/服务。You can access these offers from Azure Marketplace.

此 Azure 市场产品/服务包含 EAP 和 RHEL 版本的各种组合,以满足你的要求。This Azure Marketplace offer includes various combinations of EAP and RHEL versions to support your requirements. JBoss EAP 始终为 BYOS,但对于 RHEL OS,你可以在 BYOS 或 PAYG 之间进行选择。JBoss EAP is always BYOS, but for RHEL OS, you can choose between BYOS or PAYG. Azure 市场产品/服务包括在 RHEL 上作为独立 VM 或群集 VM 的 JBoss EAP 计划选项:The Azure Marketplace offer includes plan options for JBoss EAP on RHEL as standalone or clustered VMs:

  • RHEL 7.7 VM 上的 JBoss EAP 7.2 (PAYG)JBoss EAP 7.2 on RHEL 7.7 VM (PAYG)
  • RHEL 8.0 VM 上的 JBoss EAP 7.2 (PAYG)JBoss EAP 7.2 on RHEL 8.0 VM (PAYG)
  • RHEL 8.0 VM 上的 JBoss EAP 7.3 (PAYG)JBoss EAP 7.3 on RHEL 8.0 VM (PAYG)
  • RHEL 7.7 VM 上的 JBoss EAP 7.2 (BYOS)JBoss EAP 7.2 on RHEL 7.7 VM (BYOS)
  • RHEL 8.0 VM 上的 JBoss EAP 7.2 (BYOS)JBoss EAP 7.2 on RHEL 8.0 VM (BYOS)
  • RHEL 8.0 VM 上的 JBoss EAP 7.3 (BYOS)JBoss EAP 7.3 on RHEL 8.0 VM (BYOS)

除了 Azure 市场产品/服务,还可以使用快速启动模板,开始 Azure 迁移之旅。Along with Azure Marketplace offers, you can use Quickstart templates to get started on your Azure migration journey. 这些快速入门包括预生成的 Azure 资源管理器 (ARM) 模板和脚本,用于在 RHEL 上以各种配置和版本组合部署 JBoss EAP。These Quickstarts include prebuilt Azure Resource Manager (ARM) templates and scripts to deploy JBoss EAP on RHEL in various configurations and version combinations. 你将拥有:You'll have:

  • 负载均衡器。A load balancer.
  • 用于负载均衡的专用 IP 和 VM。A private IP for load balancing and VMs.
  • 包含单个子网的虚拟网络。A virtual network with a single subnet.
  • VM 配置(群集或独立)。VM configuration (cluster or standalone).
  • 示例 Java 应用程序。A sample Java application.

这些模板的解决方案体系结构包括:Solution architecture for these templates includes:

  • 独立 RHEL VM 上的 JBoss EAP。JBoss EAP on a standalone RHEL VM.
  • 跨多个 RHEL VM 聚集的 JBoss EAP。JBoss EAP clustered across multiple RHEL VMs.
  • 通过 Azure 虚拟机规模集聚集的 JBoss EAP。JBoss EAP clustered through Azure virtual machine scale sets.

适用于 JBoss EAP 的 Linux 工作负载迁移Linux Workload Migration for JBoss EAP

Azure 工作负荷生成器将对本地 Java 应用到 Azure 的概念证明、评估和迁移过程进行简化。Azure Workload Builder simplifies the proof-of-concept, evaluation, and migration process for on-premises Java apps to Azure. 工作负荷生成器与 Azure Migrate 发现工具集成,以识别 JBoss EAP 服务器。Workload Builder integrates with the Azure Migrate Discovery tool to identify JBoss EAP servers. 然后,它会动态生成用于 JBoss EAP 服务器部署的 Ansible playbook。Then it dynamically generates an Ansible playbook for JBoss EAP server deployment. 它使用 Red Hat MTA 工具将服务器从其他应用服务器迁移到 JBoss EAP。It uses the Red Hat MTA tool to migrate servers from other app servers to JBoss EAP.

简化迁移的步骤包括:Steps for simplifying migration include:

  1. 评估Evaluation. 使用 Azure VM 或虚拟机规模集评估 JBoss EAP 群集。Evaluate JBoss EAP clusters by using an Azure VM or a virtual machine scale set.
  2. 评估Assessment. 扫描应用程序和基础结构。Scan applications and infrastructure.
  3. 基础结构配置Infrastructure configuration. 创建工作负荷配置文件。Create a workload profile.
  4. 部署和测试Deployment and testing. 部署、迁移和测试工作负荷。Deploy, migrate, and test the workload.
  5. 部署后配置Post-deployment configuration. 与数据、监视、安全性、备份等集成。Integrate with data, monitoring, security, backup, and more.

服务器配置选择Server configuration choice

对于 RHEL VM 的部署,可以选择 PAYG 或 BYOS。For deployment of the RHEL VM, you can choose either PAYG or BYOS. Azure 市场中的映像默认为 PAYG。Images from Azure Marketplace default to PAYG. 如果你有自己的 RHEL OS 映像,请部署 BYOS 类型的 RHEL VM。Deploy a BYOS-type RHEL VM if you have your own RHEL OS image. 在部署 VM 或虚拟机规模集之前,请确保 RHSM 帐户具有通过 Cloud Access 获得的 BYOS 权利。Make sure your RHSM account has BYOS entitlement via Cloud Access before you deploy the VM or virtual machine scale set.

JBoss EAP 具有强大的管理功能,并向其应用程序提供功能和 API。JBoss EAP has powerful management capabilities along with providing functionality and APIs to its applications. 这些管理功能根据用于启动 JBoss EAP 的操作模式而有所不同。These management capabilities differ depending on which operating mode you use to start JBoss EAP. 它在 RHEL 和 Windows Server 上受支持。It's supported on RHEL and Windows Server. JBoss EAP 提供独立服务器操作模式,用于管理离散实例。JBoss EAP offers a standalone server operating mode for managing discrete instances. 它还提供了托管域操作模式,用于从单个控制点管理实例组。It also offers a managed domain operating mode for managing groups of instances from a single control point.

备注

Microsoft Azure 不支持 JBoss EAP 托管域,因为 Azure 基础结构服务管理 HA 功能。JBoss EAP-managed domains aren't supported in Microsoft Azure because the Azure infrastructure services manage the HA feature.

环境变量 EAP_HOME 表示 JBoss EAP 安装的路径。The environment variable EAP_HOME denotes the path to the JBoss EAP installation. 使用以下命令在独立模式下启动 JBoss EAP 服务:Use the following command to start the JBoss EAP service in standalone mode:

$EAP_HOME/bin/standalone.sh

此启动脚本使用 EAP_HOME/bin/standalone.conf 文件来设置某些默认首选项,如 JVM 选项。This startup script uses the EAP_HOME/bin/standalone.conf file to set some default preferences, such as JVM options. 可以在此文件中自定义设置。You can customize settings in this file. 默认情况下,JBoss EAP 使用 standalone.xml 配置文件在独立模式下启动,但可以使用其他模式启动它。JBoss EAP uses the standalone.xml configuration file to start in standalone mode by default, but you can use a different mode to start it.

有关可用独立配置文件及如何使用它们的详细信息,请参阅适用于 EAP 7.2 的独立服务器配置文件适用于 EAP 7.3 的独立服务器配置文件For details on the available standalone configuration files and how to use them, see Standalone Server Configuration Files for EAP 7.2 or Standalone Server Configuration Files for EAP 7.3.

若要使用其他配置启动 JBoss EAP,请使用 --server-config 参数。To start JBoss EAP with a different configuration, use the --server-config argument. 例如:For example:

$EAP_HOME/bin/standalone.sh --server-config=standalone-full.xml

有关所有可用启动脚本参数及其用途的完整列表,请使用 --help 参数。For a complete listing of all available startup script arguments and their purposes, use the --help argument. 有关详细信息,请参阅 EAP 7.2 上的服务器运行时参数EAP 7.3 上的服务器运行时参数For more information, see Server Runtime Arguments on EAP 7.2 or Server Runtime Arguments on EAP 7.3.

JBoss EAP 还可以在群集模式下工作。JBoss EAP can also work in cluster mode. JBoss EAP 群集消息传递允许对 JBoss EAP 消息传递服务器进行分组,分担消息处理负载。JBoss EAP cluster messaging allows grouping of JBoss EAP messaging servers to share message processing load. 群集中的每个活动节点均为活动的 JBoss EAP 消息传递服务器,该服务器管理自己的消息并处理自己的连接。Each active node in the cluster is an active JBoss EAP messaging server, which manages its own messages and handles its own connections. 若要了解详细信息,请参阅 EAP 7.2 上的群集概述EAP 7.3 上的群集概述To learn more, see Clusters Overview on EAP 7.2 or Clusters Overview on EAP 7.3.

支持和订阅说明Support and subscription notes

这些快速启动模板以如下形式提供:These Quickstart templates are offered as follows:

  • RHEL OS 通过 Red Hat 黄金映像模型以 PAYG 或 BYOS 形式提供。RHEL OS is offered as PAYG or BYOS via Red Hat Gold Image model.
  • JBoss EAP 仅以 BYOS 形式提供。JBoss EAP is offered as BYOS only.

将 RHEL OS 与 PAYG 模型配合使用Using RHEL OS with the PAYG model

默认情况下,这些快速启动模板使用 Azure 市场中的按需 RHEL 7.7 或 8.0 PAYG 映像。By default, these Quickstart templates use the On-Demand RHEL 7.7 or 8.0 PAYG image from Azure Marketplace. 除了正常的计算、网络和存储成本之外,PAYG 映像还有额外的 RHEL 小时订阅费用。PAYG images have an additional hourly RHEL subscription charge on top of the normal compute, network, and storage costs. 同时,实例会注册到 Red Hat 订阅。At the same time, the instance is registered to your Red Hat subscription. 这意味着你将使用你的一项权利。This means you'll be using one of your entitlements.

此 PAYG 映像将导致“双重计费”。This PAYG image will lead to "double billing." 可以通过构建自己的 RHEL 映像来避免此问题。You can avoid this issue by building your own RHEL image. 若要了解详细信息,请阅读关于如何预配适用于 Microsoft Azure 的 RHEL VM 的 Red Hat 知识库文章。To learn more, read the Red Hat knowledge base article How to provision a RHEL VM for Microsoft Azure. 或激活 Red Hat Cloud Access RHEL 黄金映像。Or activate your Red Hat Cloud Access RHEL Gold Image.

有关 PAYG VM 定价的详细信息,请参阅 Red Hat Enterprise Linux 定价For details on PAYG VM pricing, see Red Hat Enterprise Linux pricing. 若要在 PAYG 模型中使用 RHEL,你需要一个 Azure 订阅,该订阅具有 Azure 市场中的 RHEL 7.7Azure 市场中的 RHEL 8.0 的指定付款方式。To use RHEL in the PAYG model, you'll need an Azure subscription with the specified payment method for RHEL 7.7 on Azure Marketplace or RHEL 8.0 on Azure Marketplace. 这些产品/服务需要在 Azure 订阅中指定付款方式。These offers require a payment method to be specified in the Azure subscription.

将 RHEL OS 与 BYOS 模型配合使用Using RHEL OS with the BYOS model

若要将 BYOS 用于 RHEL OS,需要具有有效的 Red Hat 订阅,该订阅具有在 Azure 中使用 RHEL OS 的权利。To use BYOS for RHEL OS, you need to have a valid Red Hat subscription with entitlements to use RHEL OS in Azure. 在使用 BYOS 模型部署 RHEL OS 之前,请先完成以下先决条件:Complete the following prerequisites before you deploy the RHEL OS with the BYOS model:

  1. 确保已将 RHEL OS 和 JBoss EAP 权利附加到 Red Hat 订阅。Ensure that you have RHEL OS and JBoss EAP entitlements attached to your Red Hat subscription.

  2. 授权 Azure 订阅 ID 使用 RHEL BYOS 映像。Authorize your Azure subscription ID to use RHEL BYOS images. 按照 Red Hat 订阅管理文档完成此过程,其中包括以下步骤:Follow the Red Hat Subscription Management documentation to complete the process, which includes these steps:

    1. 在 Red Hat Cloud Access 仪表板中启用 Microsoft Azure 作为提供商。Enable Microsoft Azure as a provider in your Red Hat Cloud Access Dashboard.

    2. 添加 Azure 订阅 ID。Add your Azure subscription IDs.

    3. 在 Microsoft Azure 上启用 Cloud Access 的新产品。Enable new products for Cloud Access on Microsoft Azure.

    4. 为 Azure 订阅激活 Red Hat 黄金映像。Activate Red Hat Gold Images for your Azure subscription. 有关详细信息,请参阅 Microsoft Azure 上的 Red Hat 黄金映像For more information, see Red Hat Gold Images on Microsoft Azure.

    5. 等待 Red Hat 黄金映像在 Azure 订阅中可用。Wait for Red Hat Gold Images to be available in your Azure subscription. 这些映像通常在提交后 3 小时内可用。These images are typically available within three hours of submission.

  3. 接受 RHEL BYOS 映像的 Azure 市场条款和条件。Accept the Azure Marketplace terms and conditions for RHEL BYOS images. 可以通过运行以下 Azure CLI 命令来完成此过程。You can complete this process by running the following Azure CLI commands. 有关详细信息,请参阅 Azure 中的 RHEL BYOS 黄金映像文档。For more information, see the RHEL BYOS Gold Images in Azure documentation. 务必运行最新 Azure CLI 版本。It's important that you're running the latest Azure CLI version.

    1. 打开 Azure CLI 会话,并使用 Azure 帐户进行身份验证。Open an Azure CLI session and authenticate with your Azure account. 如需帮助,请参阅使用 Azure CLI 登录For assistance, see Sign in with Azure CLI.

    2. 通过运行以下 CLI 命令,验证 RHEL BYOS 映像在订阅中是否可用。Verify that the RHEL BYOS images are available in your subscription by running the following CLI command. 如果此处未显示任何结果,请确保已为 RHEL BYOS 映像激活 Azure 订阅。If you don't get any results here, ensure that your Azure subscription is activated for RHEL BYOS images.

      az vm image list --offer rhel-byos --all
      
    3. 运行以下命令,分别接受 RHEL 7.7 BYOS 和 RHEL 8.0 BYOS 的 Azure 市场条款:Run the following command to accept the Azure Marketplace terms for RHEL 7.7 BYOS and RHEL 8.0 BYOS, respectively:

      az vm image terms accept --publisher redhat --offer rhel-byos --plan rhel-lvm77
      
      az vm image terms accept --publisher redhat --offer rhel-byos --plan rhel-lvm8
      

订阅现已准备好在 Azure 虚拟机上部署 RHEL 7.7 或 8.0 BYOS。Your subscription is now ready to deploy RHEL 7.7 or 8.0 BYOS on Azure virtual machines.

将 JBoss EAP 与 BYOS 模型配合使用Using JBoss EAP with the BYOS model

JBoss EAP 仅在 Azure 上通过 BYOS 模型提供。JBoss EAP is available on Azure through the BYOS model only. 部署此模板时,需要提供 RHSM 凭据以及具有有效 EAP 权利的 RHSM 池 ID。When you're deploying this template, you need to supply your RHSM credentials along with the RHSM Pool ID with valid EAP entitlements. 如果没有 EAP 权利,请在开始之前获取 JBoss EAP 评估订阅If you don't have EAP entitlements, obtain a JBoss EAP evaluation subscription before you get started.

部署选项Deployment options

可通过以下方式部署模板:You can deploy the template in the following ways:

  • PowerShellPowerShell. 通过运行以下命令部署模板:Deploy the template by running the following commands:

    New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
    
    New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri <raw link to the template which can be obtained from github>
    

    有关如何安装和配置 Azure PowerShell 的信息,请参阅 PowerShell 文档For information on installing and configuring Azure PowerShell, see the PowerShell documentation.

  • Azure CLIAzure CLI. 通过运行以下命令部署模板:Deploy the template by running the following commands:

    az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
    
    az deployment group create --resource-group <my-resource-group> --template-uri <raw link to the template which can be obtained from github>
    

    有关如何安装和配置 Azure CLI 的详细信息,请参阅安装 CLIFor details on installing and configuring the Azure CLI, see Install the CLI.

  • Azure 门户Azure portal. 可以通过转到 Azure 快速启动模板部署到 Azure 门户,如下一部分中所述。You can deploy to the Azure portal by going to the Azure Quickstart templates as noted in the next section. 在快速入门中,选择“部署到 Azure”或“在 GitHub 上浏览”按钮 。After you're in the Quickstart, select the Deploy to Azure or Browse on GitHub button.

Azure 快速入门模板Azure Quickstart templates

可以从以下用于 RHEL 上的 JBoss EAP 的其中一个满足部署目标的快速启动模板开始:You can start by using one of the following Quickstart templates for JBoss EAP on RHEL that meets your deployment goal:

后续步骤Next steps