# Step 2: Create a Tenant

Now that the [Infrastructure and Plan ](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure)exist and [AKS has been enabled](https://docs.duplocloud.com/docs/automation-platform/overview-2/step-1-infrastructure#enabling-the-aks-kubernetes-cluster), create one or more Tenants that use the configuration DuploCloud created.

[Tenants ](https://docs.duplocloud.com/docs/automation-platform/application-focused-interface-duplocloud-architecture/tenant)in DuploCloud are similar to projects or workspaces and have a subordinate relationship to the Infrastructure. Think of the Infrastructure as a virtual "house" (cloud), with Tenants conceptually "residing" in the Infrastructure performing specific workloads that you define. As Infrastructure is an abstraction of a Virtual Private Cloud. Tenants abstract the segregation created by a [Kubernetes Namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/), although Kubernetes Namespaces are only one component that Tenants can contain.

In Azure, Microsoft cloud features such as Azure resource groups, Azure managed identity, Azure application security groups (ASG), and KMS keys are exposed in Tenants, which reference these feature configurations.

*Estimated time to complete Step 2: 10 minutes.*

## Tenant Use Cases

DuploCloud customers often create at least two Tenants for their production and non-production cloud environments (Infrastructures).&#x20;

For example:

* **Production Infrastructure** &#x20;
  * Pre-production Tenant - for preparing or reviewing production code
  * Production Tenant - for deploying tested code&#x20;
* **Non-production Infrastructure**
  * Development Tenant - for writing and reviewing code
  * Quality Assurance Tenant - for automated testing

In larger organizations, some customers create Tenants based on application environments (i.e., one Tenant for Data Science applications and another Tenant for web applications), and so on.&#x20;

Other customers create Tenants to isolate a single customer workload, allowing more granular performance monitoring, scaling flexibility, or tighter security. This is referred to as a *single-Tenant* setup.

## Prerequisites

Before creating a Tenant, verify that you accomplished the tasks in [Step 1](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure) of this tutorial. Using the DuploCloud Portal, confirm that:

* An [Infrastructure and Plan exist](https://docs.duplocloud.com/docs/automation-platform/overview-2/quick-start/step-1-infrastructure), both with the name **NONPROD**.
* The **NONPROD** infrastructure has [Azure Kubernetes Service (AKS) **Enabled**](https://docs.duplocloud.com/docs/automation-platform/overview-2/step-1-infrastructure#enabling-the-aks-kubernetes-cluster).&#x20;

## Creating a Tenant&#x20;

Create a Tenant for your Infrastructure and Plan:

1. In the DuploCloud Portal, navigate to **Administrator** -> **Tenants.**
2. Click **Add**. The **Create a Tenant** pane displays.
3. Enter **dev01** in the **Name** field.&#x20;
4. Select the **Plan** that you created in the previous step (**NONPROD**).
5. Click **Create**.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FJG4vBHm3URtyuJJCUMUl%2FAzure_GS_Tenant_1_Create_a_Tenant.png?alt=media&#x26;token=a5ef67b2-ae5e-4887-8e36-8dee1d305fa3" alt=""><figcaption><p><strong>Create a Tenant</strong> pane</p></figcaption></figure></div>

## Checking Your Work

1. Navigate to **Administrator** -> **Tenants** and verify that the **dev01** Tenant displays in the list.<br>

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FYFmmH6Kuk9QTE8SVhoMc%2FAzure_GS_Tenant_2_Verify.png?alt=media&#x26;token=e28efec2-8fc4-44a7-9549-9d9fc0251f64" alt=""><figcaption><p><strong>Tenant</strong> page with Tenant <strong>dev01</strong> using Plan <strong>NONPROD</strong></p></figcaption></figure>
2. Navigate to **Administrator** -> **Infrastructure** and select **dev01** from the **Tenant** list box at the top left in the DuploCloud Portal. The **NONPROD** Infrastructure appears in the list of Infrastructures, indicating that the **dev01** Tenant is associated with Infrastructure **NONPROD**.<br>

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FgrozWltLGBMMxQmfGx9T%2FAzure_GS_Tenant_3_Verify.png?alt=media&#x26;token=d5330072-bb08-46ac-b97f-600b368bcfb9" alt=""><figcaption><p>Tenant list box with <strong>dev01</strong> selected; <strong>NONPROD</strong> Infrastructure with <strong>Status Complete</strong> </p></figcaption></figure>
