Deploy a Web ApplicationΒΆ

In this lab we will use the AS3 API to programmatically deploy an application to th BIG-IP with a single REST call.


Exercise 1 - Explore BIG-IP

  1. Open Chrome and navigate to the BIG-IP GUI (https://10.1.1.9) or by clicking the bookmark.

  2. Login to the BIG-IP with the following credentials:

    Username admin
    Password AgilityIsFun123!
  3. Once you are logged in, navigate to 'Local Traffic' -> 'Virtual Servers' -> 'Virtual Servers List'.

    ../../_images/vslist.jpg
  4. Note that you are in the 'Common' partition (top-right) and the BIG-IP has no Virtual Servers, Pools or Pool Members configured.

    ../../_images/vslistdisplay.jpg

Exercise 2 - Configure and Deploy the HTTP Application via AS3 With The Appropriate Telemetry Streaming Configuration

The focus for this exercise is to deploy an application with the appropriate Telemetry Streaming configuration objects.

  1. Minimize Chrome and open the Postman application.

    ../../_images/mod4_1.png
  2. Open the the Postman collection Deploy Application

  3. Click the Create Application via AS3 request

  4. Click on the body tab and examine the request body.

    ../../_images/jsonbody.jpg

    HINT: Here is what is important in this declaration:

    • The telemetry_local_rule allows traffic through port 6514
    • The telemetry_traffic_log_profile builds a logging profile which specifies the log parameters
    ../../_images/as3snippet.jpg
  5. Send the POST request by clicking the blue Send button.

  6. Ensure you recieved a 'Status: 200 OK' response.

    ../../_images/200response.jpg

NOTE: By sending this GET request to https://10.1.1.9/mgmt/shared/appsvcs/declare with the correct credentials and current body we've built an application declaratively via AS3.

NOTE: To learn more about AS3, visit https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/


Exercise 3 - Verify Successful Deployment via BIG-IP GUI

  1. Open Chrome

  2. Click the BIG-IP bookmark or navigate to 'https://10.1.1.9'

  3. Login to the BIG-IP with the following credentials:

    Username admin
    Password AgilityIsFun123!
  4. Once you are logged in, navigate to 'Local Traffic' -> 'Virtual Servers' -> 'Virtual Servers List'.

    ../../_images/vslist.jpg
  5. Notice that you are currently in the Common partition and that there is now an application built named opencart_vs.

    ../../_images/ocbigip.jpg

Exercise 4 - Verify Web Application

  1. In Chrome, click on the 'OpenCart' bookmark.

    ../../_images/ocbookmark.jpg
  2. Verify the application is working by clicking a few tabs and viewng products.

    ../../_images/opencart.jpg