# Step 6: Test the Application

Test the sample web page application directly from the **VIEWWEBSITE** Ingress [that you created in the previous step](https://docs.duplocloud.com/docs/automation-platform/overview-2/step-5-create-a-load-balancer#add-kubernetes-ingress).

*Estimated time to complete Step 6 and finish tutorial: 10 minutes.*

## Prerequisites

Before testing your application, ensure that:

* Previous steps in this tutorial to create an [Infrastructure and Plan](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure), [Tenant](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-2-tenant), [Azure Agent Pool](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-3-create-azure-agent-pool), [Service](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-4-create-app-via-k8s), and [Load Balancer Listener](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-5-create-a-load-balancer) are complete.
* [AKS Kubernetes cluster](https://docs.duplocloud.com/docs/automation-platform/overview-2/step-1-infrastructure#enabling-the-aks-kubernetes-cluster) is enabled.
* Tenant **dev01** is selected in the **Tenant** list box at the top of the DuploCloud Portal.
* [**nginx-service** is **Running** and the **LB Status** is **Ready**](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-5-create-a-load-balancer)**.**
* You [defined an Ingress and a rule](#add-kubernetes-ingress) for your DuploCloud Service to listen on port 80, enabled the [App Gateway Ingress Controller](#enable-the-ingress-controller), and configured a Load Balancer Listener that uses [K8S Node Port](#adding-and-configuring-a-load-balancer).

## Testing the Application

Display the web page that the application creates:

1. In the DuploCloud Portal, navigate to **Kubernetes** -> **Ingress**.
2. Select the **VIEWWEBSITE** Ingress from the **NAME** column.
3. Click the **Configuration** tab.<br>

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FZpwZz1NwaQIQKWpDxKkn%2Freallyfixed.png?alt=media&#x26;token=f9188120-045f-479e-b5fc-0f56756e5f5e" alt=""><figcaption></figcaption></figure>
4. In the **Application Gateway IP** card, copy the displayed IP address to your clipboard. In this example, the IP address is **20.84.11.154**.
5. Open a web browser and paste the copied IP address in your browser's URL field.
6. Press **Enter**. Your application runs and your web page renders as shown below. Congratulations! You just launched your first web service with Azure on DuploCloud!

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FHXAubmcMGT71wgGCbim8%2FAzure_GS_viewebsite_3.png?alt=media&#x26;token=dd8e9fd5-6265-4d84-983f-897cb1601532" alt=""><figcaption><p><strong>Welcome to nginx!</strong> web page</p></figcaption></figure>

## Reviewing What You Learned

In this tutorial, your objective was to create a cloud environment to deploy an application for testing purposes, and to understand how the various components of DuploCloud work together.

The application rendered a simple web page with text, coded in JavaScript, from software application code residing in a Docker container. You can use this same procedure to deploy much more complex cloud applications.

In the previous steps, you:

* [Created a DuploCloud Infrastructure](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure) named **NONPROD**, a Virtual Private Cloud instance, backed by an AKS-enabled Kubernetes cluster.
* [Created a Tenant](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-2-tenant) named **dev01** in Infrastructure **NONPROD**. While generating the Infrastructure, DuploCloud created a set of templates ([Plan](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure)) to configure multiple Azure and Kubernetes components needed for your environment.
* [Created an Azure Agent Pool](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-3-create-azure-agent-pool) backed by pre-existing hosts (VMs), so that your application has storage resources with which to run.
* [Created a Service](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-4-create-app-via-k8s) to connect the Docker containers and associated images, in which your application code resides, to the DuploCloud Tenant environment.
* [Created a Load Balancer Listener](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-5-create-a-load-balancer) and a Kubernetes Node Port to expose your application via ports and backend network configurations. You enabled an Azure application gateway and created a Kubernetes Ingress to communicate with the node port and the AKS-enabled Kubernetes cluster in the Infrastructure.
* [Verified that your web page rendered](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-6-test-the-application) as expected by testing the IP address exposed by the Kubernetes Ingress.

## Cleaning up the Tutorial Environment

In this tutorial, you created many artifacts for testing purposes. When you are ready, clean them up so that another person can run this tutorial from the start, using the same names for Infrastructure and Tenant.

1. To delete the **dev01** tenant [follow these instructions](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/broken-reference) and then return to this page. As you learned, the Tenant segregates all work in one isolated environment, so deleting the Tenant that you created cleans up most of your artifacts.
2. Finish by deleting the **NONPROD** Infrastructure. In the DuploCloud Portal, navigate to **Administrator** -> **Infrastructure**. Click the **Action** menu icon (<img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FaQe5p7flz0LzZESyhTO4%2Fimage.png?alt=media&#x26;token=90762291-a295-4f1c-a32a-e84f2b7687ee" alt="" data-size="line">) for the **NONPROD** row and select **Delete**.

The **NONPROD** Infrastructure is deleted and you have completed the clean-up of your test environment.

Thanks for completing this tutorial and proceed to the next section to learn more about using DuploCloud with Microsoft Azure.
