SALES: 1-800-867-1380

Creating an Oracle WebLogic Server 11g virtual machine in Azure

Updated: March 13, 2014

The following example shows you how you can create a virtual machine based on a Microsoft-provided Oracle WebLogic Server 11g image running on Windows Server 2008 R2 in Azure.

  1. Log in to the Azure Management Portal.

  2. Click New, click Compute, click Virtual Machine, and then click From Gallery.

  3. Select Oracle WebLogic Server 11g Standard Edition on Windows Server 2008 R2 or Oracle WebLogic Server 11g Enterprise Edition on Windows Server 2008 R2, review the information about this image (such as minimum recommended size), and then click Next.

  4. Specify a value for Virtual Machine Name.

  5. Specify a size for the VM.

  6. Specify a user name for the VM. Note that this user is for remotely logging into the VM; this is not the Oracle WebLogic Server user name.

  7. Specify and confirm a password for the VM, and then click Next.

  8. For Cloud Service, select Create a new cloud service.

  9. Provide a unique value for Cloud Service DNS Name.

  10. Select a region appropriate for your application.

  11. For Storage Account, select Use an automatically generated storage account.

  12. For Availability Set, select (None), and then click Next.

  13. Do not add any endpoints at this time. Click Complete.

  1. Log in to the Azure Management Portal.

  2. Click Virtual Machines.

  3. Click the name of the virtual machine that you want to log in to.

  4. Click Connect.

  5. Respond to the prompts as needed to connect to the virtual machine. When prompted for the administrator name and password, use the values that you provided when you created the virtual machine.

  6. Click Windows Start, click All Programs, click Oracle WebLogic, click WebLogic Server 11g R1, click Tools, and then click Configuration Wizard.

  7. In the Welcome dialog, select Create a new WebLogic domain and then click Next.

    WebLogic Server welcome dialog
  8. In the Select Domain Source dialog, accept the default values and then click Next.

    Select domain source dialog
  9. In the Specify Domain Name and Location dialog, accept the default values and then click Next.

    Specify domain name and location dialog
  10. In the Configure Administrator User Name and Password dialog:

    1. [Optional] Change the user name from weblogic to a value of your choosing.

    2. Specify and confirm a password for the WebLogic Server administrator.

    3. Click Next.

    Configuration administrator dialog
  11. In the Configure Server Start Mode and JDK dialog, select Production Mode, select the available JDK (or browser to a JDK if desired), and click Next.

    Configure server start mode and JDK dialog
  12. In the Select Optional Configuration dialog, do not select any options, and then click Next.

    Optional configuration dialog
  13. In the Configuration Summary dialog, click Create.

    Configuration summary dialog
  14. In the Creating Domain dialog, check Start Admin Server and then click Done.

    Creating domain dialog
  15. A command prompt for startWebLogic.cmd is started. When prompted, provide your WebLogic user name and password.

  1. Still logged in to your virtual machine, copy the shoppingcart.war example available at http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12-ManageSessions--4478/files/shoppingcart.war locally. For example, create a folder named c:\mywar and save the WAR at http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12-ManageSessions--4478/files/shoppingcart.war to c:\mywar.

  2. Open the WebLogic Server Administration Console, http://localhost:7001/console. When prompted, provide your WebLogic user name and password.

  3. Within the WebLogic Server Administration Console, click Lock & Edit, click Deployments, and then click Install.

  4. For Path, type c:\mywar\shoppingcart.war.

    Install Application Assistant dialog Click Next.

  5. Select Install this deployment as an application and then click Next.

  6. Click Finish.

  7. Within the WebLogic Server Administration Console, click Activate Changes.

  8. Click Deployments, select shoppingcart, click Start, and then click Servicing All Requests. When prompted to confirm, click Yes.

  9. To see the shopping cart application running locally, open a browser to http://localhost:7001/shoppingcart

  10. Allow an inbound connection through the firewall to port 7001.

    1. While still logged in to your virtual machine, click Windows Start, click Control Panel, click System and Security, click Windows Firewall, and then click Advanced settings. This opens the Windows Firewall with Advanced Security management console.

    2. Within the firewall management console, click Inbound Rules in the left hand pane (if you don’t see Inbound Rules, expand the top node in the left hand pane), and then click New Rule in the right hand pane.

    3. For Rule Type, select Port and click Next.

    4. For Protocol and Port, select TCP, select Specific local ports, enter 7001 for the port, and then click Next.

    5. Select Allow the connection and click Next.

    6. Accept the defaults for the profiles for which the rule applies and click Next.

    7. Specify a name for the rule and optionally a description, and then click Finish.

  11. Create an endpoint for your virtual machine:

    1. Log in to the Azure Management Portal.

    2. Click Virtual Machines.

    3. Click the name of the virtual machine that you’re using for Oracle WebLogic Server.

    4. Click Endpoints.

    5. Click Add.

    6. Ensure Add Standalone Endpoint is checked and click Next.

    7. Specify a name for the endpoint, use TCP for the protocol, use 80 for the public port, and use 7001 for the private port. Click Complete.

  12. To see the shopping cart application running on the Internet, open a browser to the URL in the form of http://<<unique_domain_name>>/shoppingcart. (You can determine the value for <<unique_domain_name>> within the Azure Management Portal by clicking Virtual Machines and then selecting the virtual machine that you are using to run Oracle WebLogic Server).

Now that you’ve set up your virtual machine running Oracle WebLogic Server, see the following topics for additional information.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft