> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify the deployment

> Check each part of an In-VPC deployment on Azure, from Workload Identity to a first query in Query History.

How-to guideApplies to: CloudPrem on Azure

Each check below proves one requirement. Run them as you go, not only at the end. The deployment is working when a cluster resumes from the e6data console, a SQL query runs, and the query appears in Query History.

## Requirements

* `kubectl` access to the cluster and read access to the Azure subscription.
* The variables from the install (`CLUSTER_NAME`, `RESOURCE_GROUP`, `STORAGE_ACCOUNT`, `WORKSPACE_NAME`, `NAMESPACE`, `CONSOLE_HOSTNAME`). The namespace can differ from the workspace name, so the commands below use `NAMESPACE`.

## Steps

### Check that cloud identity is in place (OIDC and Workload Identity)

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
az aks show -g $RESOURCE_GROUP -n $CLUSTER_NAME \
  --query "{k8s:kubernetesVersion, oidc:oidcIssuerProfile.enabled, wi:securityProfile.workloadIdentity.enabled, network:networkProfile.networkPlugin}" -o table
az identity federated-credential list \
  --identity-name <workspace-identity-name> --resource-group $RESOURCE_GROUP \
  --query "[].{name:name, subject:subject}" -o table
az storage container-rm list --storage-account $STORAGE_ACCOUNT --resource-group $RESOURCE_GROUP -o table
```

Expected:

* The version is in the supported range (see [Component versions and operations](https://docs.e6data.com/platform/deploy/azure-cloudprem/component-versions-and-operations.md)).
* `oidc` and `wi` are both `true`.
* 5 federated credentials exist.
* The metadata container is listed.

> [!WARNING]
>
> An OIDC issuer or Workload Identity that is off breaks the workspace without a clear error. Check it first.

### Check that cluster components are running

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get pods -n kube-system -l app.kubernetes.io/name=karpenter
kubectl get pods -n cert-manager
kubectl get pods -n e6operator
kubectl get crds | grep e6data.io
kubectl get nodepools.karpenter.sh
kubectl get storageclass
```

Expected:

* Karpenter and cert-manager (3 pods: controller, cainjector, webhook) are `Running`.
* The e6-operator shows **2** pods `Running`. Keep 2: with 1, node drains block during cluster upgrades (see [Product and cluster upgrades](https://docs.e6data.com/platform/upgrades/product-and-cluster-upgrades.md)).
* The e6data CRDs are listed.
* If you followed the install steps, an `e6operator` NodePool is listed, and after the workspace step `<workspace>-nodepool`. (e6data's managed install instead runs the operator, cert-manager, KEDA and VPA on the AKS system pool and adds a `<workspace>-platform-nodepool`.)
* e6data's managed install only: KEDA (`kube-system`) and VPA pods are `Running`, and the `managed-csi-e6` StorageClass is the cluster default. The install steps don't add these.

If you use NAP or the cluster autoscaler instead of e6data's Karpenter, skip the Karpenter checks.

### Check that the workspace is up and reachable

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get pods -n ${NAMESPACE}
kubectl get namespaceconfig -n ${NAMESPACE} -o wide
kubectl get queryrouter -n ${NAMESPACE} -o wide
kubectl get svc -n ${NAMESPACE}
curl -sv https://${CONSOLE_HOSTNAME} 2>&1 | grep -E "subject:|HTTP/"
```

Expected:

* `console`, Envoy and xDS pods are `Running`. Monitoring collector pods are `Running` if you turned monitoring on.
* Metadata pods (`mds-schema`, `mds-storage`) appear within 3 to 4 minutes of the NamespaceConfig. The operator waits 60 seconds before it creates them.
* The `<workspace>-qr-envoy-external` Service has a load balancer address.
* The certificate subject matches your workspace hostname and the request returns HTTP 200.
* In the e6data console, the workspace shows **Running**. That status arrives over the workspace's outbound connection.

Check the Kubernetes version condition:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get namespaceconfig -n ${NAMESPACE} \
  -o jsonpath='{.items[0].status.conditions[?(@.type=="KubernetesVersionSupported")].message}'
```

Expected: no warning. A version outside the tested range gives a warning, not a block.

### Check that queries run end to end

**1. Register a catalog**

In the e6data console, register a catalog. See [Register a catalog](https://docs.e6data.com/platform/deploy/azure-cloudprem/register-catalog.md).

**2. Resume a query cluster**

Create and resume a query cluster. Expected: it reaches **Running**. From zero nodes this took about 2.5 minutes with NAP. Replacing a cold executor node took 41 to 70 seconds.

**3. Run a query**

In the SQL Editor run:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT * FROM your_catalog.your_schema.your_table LIMIT 10;
```

Expected: rows return.

**4. Check Query History**

Open Query History and select refresh. Expected: the query is listed. The list doesn't refresh by itself.

**5. Check auto-suspend**

Leave the cluster idle. Expected: it auto-suspends after its idle time and its engine nodes are removed.

## Optional checks for hardened setups

| Setup | Check | Expected |
| - | - | - |
| Private-only | From outside your network: `dig +short <WORKSPACE_HOSTNAME>` and `curl -m 10 https://<WORKSPACE_HOSTNAME>/` | A private IP; the request fails |
| Private-only | From inside (VPN, bastion or a pod): `curl https://<WORKSPACE_HOSTNAME>/` and `nc -z <WORKSPACE_HOSTNAME> 5432` | HTTP 200; port 5432 open |
| Locked-down egress | Restart the console after the restriction is in place: `kubectl -n <NAMESPACE> rollout restart deploy/e6-console` | The new pod becomes Ready. A pod started before the restriction proves nothing |
| Locked-down egress | Your proxy or firewall log during a resume, query and suspend | Only the hosts in [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md) |

## Troubleshooting

If a check fails, see [Troubleshooting](https://docs.e6data.com/platform/deploy/azure-cloudprem/troubleshooting.md).

## See also

* [Install with your own tooling](https://docs.e6data.com/platform/deploy/azure-cloudprem/install-with-your-own-tooling.md)
* [Private-only deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/private-only-deployment.md)
* [Pod security](https://docs.e6data.com/platform/deploy/azure-cloudprem/pod-security.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.