# Azure Cloud AKS

Microsoft Azure Cloud provides the Azure Kubernetes Service (AKS) as a managed Kubernetes service offering. Trilio for Kubernetes (T4K) supports cluster-scoped installation on the AKS cluster.

Before you proceed with the T4K installation, run the preflight check on the existing AKS cluster. T4K utilizes the Volume Snapshot functionality provided by the CSI driver while performing the backup operation. AKS clusters have preinstalled CSI driver with Volume Snapshot Capability. It is recommanded for the users to run the [preflight check tool](https://docs.trilio.io/kubernetes/krew-plugins/tvk-preflight-checks) with the storageclass that is used to provision the persistent volume and validate if it support the VolumeSnapshot capability.

## Installation

There are two methods to install Trilio for Kubernetes (T4K) on the AKS cluster-

1. Azure Commercial Marketplace
2. kubectl CLI
3. **Azure Commercial Marketplace:**
   1. Go to the [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps) and search the application "Trilio for Kubernetes (BYOL)" or directly click [here](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/trilio1647013185725.triliovault-for-kubernetes-byol) to go to the T4K application listing page.
   2. Click on the application to open the application details window. Click on the `Get it Now` button.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/bsC2y12XbyjTP2zPI1T4/image%20(155).png" alt=""><figcaption></figcaption></figure>
   3. Click on the `Continue` button.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/rGMe12cu0Fv1dZQyIHBj/image%20(121).png" alt=""><figcaption></figcaption></figure>
   4. You have two options here:
      1. If you have an existing AKS cluster:
         1. Select the existing `Resource Group` from the dropdown and select `No` option for `Create new AKS cluster` . This will populate your existing AKS clusters in the next steps. Click on the `Next: Cluster Details` button.

            <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/MmiynHF6WkogqNN4XvK6/image%20(51).png" alt=""><figcaption></figcaption></figure>
         2. Now, you can select the existing cluster name from the dropdown and click on `Next: Cluster Extension Details>` button.

            <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/iyziR27c6RpelVWLJj8w/image%20(255).png" alt=""><figcaption></figcaption></figure>
      2. If you don't have an existing AKS cluster:
         1. Now, you can select the existing `Resource Group` or `Create new` resource group and then select `Yes` for `Create new AKS cluster` option and select the `Region` name from the dropdown to deploy the new AKS cluster. Click on the `Next: Cluster Details>` button

            <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/9EfXizKC2QW7cy6XxeFQ/image%20(24)%20(2)%20(2)%20(1).png" alt=""><figcaption></figcaption></figure>
         2. Enter the details for the new AKS cluster - `AKS cluster name, Kubernetes Version, VM Size, Enable Auto scaling, VMCount` and click on `Next: Cluster Extension Details>` button.

            <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/iou4u5K4cNLCHrg7qELX/image%20(192).png" alt=""><figcaption></figcaption></figure>
   5. Enter the name of the T4K Manager extension as per the user's choice. For example- tvkoperator. Click on `Next: Review + Create>` button

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/Ln0niTfeeydelMOjwP5M/image%20(224).png" alt=""><figcaption></figcaption></figure>
   6. It will validate all the parameters and show the validation success message if everything looks good to deploy.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/inIYDVpOYseRC5Umvpey/image%20(108).png" alt=""><figcaption></figcaption></figure>
   7. Click on `Create` button to start the AKS cluster deployment and `tvkoperator` extension deployment on the cluster.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/OEqaAFonWCtPdn2LoAFn/image%20(39).png" alt=""><figcaption></figcaption></figure>
   8. Once, the deployment is complete, the user will see that both the AKS cluster and `triliovaultmanager` the extension is complete.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/3VDWs1G1QKfY4LKzFOa7/image%20(39)%20(1).png" alt=""><figcaption></figcaption></figure>
   9. Wait for some for deployment to complete.

      <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/ssqwBddozKSi0JZ8JFF3/image%20(433).png" alt=""><figcaption></figcaption></figure>
   10. The users can go to the `Resource Group` and log in to the AKS cluster from CLI or check if all the T4K resources are created in the `trilio-system` namespace.

       <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/EPc1ZAK2mOvbj24FpHNF/image%20(337).png" alt=""><figcaption></figcaption></figure>
   11. The users can check if all the deployments are in `Ready` state.

       <figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/P35q3y42qKPYg7FHv94A/image%20(97).png" alt=""><figcaption></figcaption></figure>
   12. Once all the pods are in `Running` state, we can access the T4K Management console by using the `Service Type` assigned to the `ingress-controller` service.
4. **Kubectl CLI:**

   Microsoft Azure (AKS) Kubernetes offerings leverage upstream Kubernetes. As a result, the installation instructions provided for [upstream-kubernetes](https://docs.trilio.io/kubernetes/getting-started/upstream-kubernetes "mention")environments can be used for installing T4K on the AKS cluster through CLI.

Once, the installation is complete, users need to contact Trilio to get the T4K license. Follow the [Licensing instructions.](https://docs.trilio.io/kubernetes/getting-started/licensing)
