AKS
Learn how to add and manage an Azure Kubernetes Service (AKS) cluster in StrongDM.
Overview
This guide describes how to manage access to an Azure Kubernetes Service (AKS) cluster via the StrongDM Admin UI. This process involves creating and configuring a new cluster in the Admin UI and checking the connection to your Azure-managed API server.
Prerequisites
Ensure that the API server you intend to add to StrongDM is accessible from your StrongDM gateways or relays. See our guide on Gateways for more information.
Resource Configuration in StrongDM
This section provides instructions for adding the resource in either the StrongDM Admin UI, CLI, Terraform provider, or SDKs.
Set up and Manage With the Admin UI
If using the Admin UI to add the resource to StrongDM, use the following steps.
Log in to the Admin UI and go to Infrastructure > Clusters.
Click the Add cluster button.
Select AKS as the Server Type and set other resource properties to configure how the StrongDM relay connects.
Click Create to save the resource.
The Admin UI updates and shows your new cluster in a green or yellow state. Green indicates a successful connection. If it is yellow, click the pencil icon to the right of the server to reopen the Connection Details screen. Then click Diagnostics to determine where the connection is failing.
Set up and Manage With the CLI
This section provides general steps on how to configure and manage the resource using the StrongDM CLI. For more information and examples, please see the CLI Reference documentation.
In your terminal or Command Prompt, log in to StrongDM:
sdm loginRun
sdm admin clusters add aks --helpto view the help text for the command, which shows you how to use the command and what options (properties) are available. Note which properties are required and collect the values for them.NAME: sdm admin clusters add aks - create AKS cluster USAGE: sdm admin clusters add aks [command options] <name> OPTIONS: --allow-resource-role-bypass (For legacy orgs) allows users to fallback to the existing authentication mode (Leased Credential or Identity Set) when a resource role is not provided. --bind-interface value IP address on which to listen for connections to this resource on clients. Specify "default", "loopback", or "vnm" to automatically allocate an available address from the corresponding IP range configured in the organization. (default: "default") --certificate-authority value (secret) --client-certificate value (secret) --client-key value (secret) --discovery-enabled Enable discovery for the cluster. --discovery-username value The user to impersonate in the cluster when running discovery. Required if the cluster is configured for identity aliases. (conditional) --egress-filter value apply filter to select egress nodes e.g. 'field:name tag:key=value ...' --healthcheck-namespace default This path will be used to check the health of your connection. Defaults to default. --hostname value (required) --identity-alias-healthcheck-username value (conditional) --identity-set-id value --identity-set-name value set the identity set by name --port value (required) (default: 443) --port-override value Port on which to listen for connections to this resource on clients. Specify "-1" to automatically allocate an available port. (default: -1) --proxy-cluster-id value proxy cluster id --secret-store-id value secret store id --subdomain value, --bind-subdomain value DNS subdomain through which this resource may be accessed on clients (e.g. "app-prod" allows the resource to be accessed as "app-prod.<your-org-name>.<sdm-proxy-domain>"). Only applicable to HTTP-based resources or resources using virtual networking mode. --tags value tags e.g. 'key=value,...' --template, -t display a JSON template --timeout value set time limit for commandThen run
sdm admin clusters add aks`` ``<RESOURCE_NAME>and set all required properties with their values. For example:sdm admin clusters add aks "aks-cluster-prod" --hostname "aks-prod01.acme.internal" --port 443 --certificate-authority "/etc/strongdm/certs/aks-ca.crt" --client-certificate "/etc/strongdm/certs/aks-client.crt" --client-key "/etc/strongdm/certs/aks-client.key" --identity-set-name "AKS Cluster Admins" --identity-alias-healthcheck-username "svc_aks_health" --discovery-enabled --discovery-username "sdm-discovery" --healthcheck-namespace "default" --bind-interface "default" --port-override -1 --egress-filter 'field:name tag:env=prod tag:region=us-east' --proxy-cluster-id "plc_0123456789abcdef" --secret-store-id "ss_abcdef0123456789" --subdomain "aks-prod01" --tags "env=prod,cloud=azure,platform=kubernetes,team=devops" --timeout 30Check that the resource has been added. The output of the following command should show the resource's name:
sdm admin clusters list
Set up and Manage With Terraform
This section provides an example of how to configure and manage the resource using the Terraform provider. For more information and examples, please see the Terraform provider documentation.
Set up and Manage With SDKs
In addition to the Admin UI, CLI, and Terraform, you may configure and manage your resource with any of the following SDK options: Go, Java, Python, and Ruby. Please see the following references for more information and examples.
Resource properties
The AKS cluster type has the following properties.
Display Name
Required
Meaningful name to display the resource throughout StrongDM; exclude special characters like quotes (") or angle brackets (< or >)
Cluster Type
Required
AKS
Proxy Cluster
Required
Defaults to "None (use gateways)"; if using proxy clusters, select the appropriate cluster to proxy traffic to this resource
Hostname
Required
Hostname or IP address of the API server, such as api.aks.example.com; relay server should be able to connect to your target server or hostname
Port
Required
Port to connect to the API server; default port value 443
Connectivity Mode
Required
Select either Virtual Networking Mode, which lets users connect to the resource with a software-defined, IP-based network; or Loopback Mode, which allows users to connect to the resource using the local loopback adapter in their operating system; this field is shown if Virtual Networking Mode enabled for your organization
IP Address
Optional
If Virtual Networking Mode is the selected connectivity mode, an IP address value in the configured Virtual Networking Mode subnet in the organization network settings; if Loopback Mode is the selected connectivity mode, an IP address value in the configured Loopback IP range in the organization network settings (by default, 127.0.0.1); if not specified, an available IP address in the configured IP address space for the selected connectivity mode will be automatically assigned; this field is shown if Virtual Networking Mode and/or multi-loopback mode is enabled for your organization
Port Override
Optional
If Virtual Networking Mode is the selected connectivity mode, a port value between 1 and 65535 that is not already in use by another resource with the same IP address; if Loopback Mode is the selected connectivity mode, a port value between 1024 to 64999 that is not already in use by another resource with the same IP address; when left empty with Virtual Networking Mode, the system assigns the default port to this resource; when left empty for Loopback Mode, an available port that is not already in use by another resource is assigned; preferred port also can be modified later from the Port Overrides settings
DNS
Optional
If Virtual Networking Mode is the selected connectivity mode, a unique hostname alias for this resource; when set, causes the desktop app to display this resource's human-readable DNS name (for example, k8s.my-organization-name) instead of the bind address that includes IP address and port (for example, 100.64.100.100:5432)
Secret Store
Optional
Credential store location; defaults to none (credentials are stored in StrongDM resource configuration); to learn more, see Secret Store options
Server CA
Optional
Pasted server certificate (plaintext or Base64-encoded), or imported PEM file; you can either generate the server certificate on the API server or get it in Base64 format from your existing Kubernetes configuration (kubeconfig) file
Client Certificate
Optional
Pasted client certificate (plaintext or Base64-encoded), or imported PEM file; you can either generate the client certificate on the API server or get it in Base64 format from your existing Kubernetes configuration (kubeconfig) file
Client Key
Optional
Pasted client key (plaintext or Base64-encoded) or imported PEM file; you can either generate the client key on the API server or get it in Base64 format from your existing Kubernetes configuration (kubeconfig) file
Healthcheck Namespace
Optional
If enabled for your organization, the namespace used for the resource healthcheck; defaults to default if empty; supplied credentials must have the rights to perform one of the following kubectl commands in the specified namespace: get pods, get deployments, or describe namespace
Authentication
Required
Authentication method to access the cluster; select either Leased Credential (default) or Identity Aliases (to use the Identity Aliases of StrongDM users to access the cluster)
Identity Set
Required
Displays if Authentication is set to Identity Aliases; select an Identity Set name from the list
Healthcheck Username
Required
If Authentication is set to Identity Aliases, the username that should be used to verify StrongDM's connection to it; username must already exist on the target cluster
Resource Tags
Optional
Resource Tags consisting of key-value pairs <KEY>=<VALUE> (for example, env=dev)
Display name
Some Kubernetes management interfaces, such as Visual Studio Code, do not function properly with cluster names containing spaces. If you run into problems, please choose a Display Name without spaces.
Client credentials
When your users connect to this cluster via StrongDM, they have exactly the same rights as the user associated with these keys. Make sure to consider this prior to setup.
Server CA
How to get the Server CA from your kubeconfig file:
Open the CLI and type
cat ~/.kube/configto view the contents of the file.In the file, under
- cluster, copy thecertificate-authority-datavalue. That is the server certificate in Base64 encoding.
Client certificate
How to get the Client Certificate from your kubeconfig file:
From the CLI, type
cat ~/.kube/configto view the contents of the file.In the file, under
- name, copy theclient-certificate-datavalue. That is the client certificate in Base64 encoding.
Client key
How to get the Client Key from your kubeconfig file:
Open the CLI and type
cat ~/.kube/configto view the file.In the file, under
- name, copy theclient-key-datavalue. That is the client private key in Base64 encoding.
Secret Store
By default, server credentials are stored in StrongDM. However, these credentials can also be saved in a secrets management tool.
Non-StrongDM options appear in the Secret Store dropdown if they are created under Settings > Secrets Management. When you select another Secret Store type, its unique properties display. For more details, see Configure Secret Store Integrations.
Test the Connection
After creating your AKS cluster resource in StrongDM, check the health status in the Admin UI. A green indicator means the StrongDM relay or proxy could reach the Kubernetes API server and credentials are valid.
From a user machine with the StrongDM Desktop App (or CLI) installed, connect to the cluster (for example:
kubectl get nodes) via StrongDM. Confirm that a successful response is returned and your Kubernetes API calls behave as expected.If you enabled Discovery, navigate to the Discovery tab for your cluster in the Admin UI. Verify that namespaces, roles, and subjects are being populated. This confirms StrongDM’s ability to query the cluster’s metadata.
If the health indicator is yellow or red:
Confirm that the hostname and port are correct and reachable by your nodes.
Check that the credentials (client certificate, key, CA or authentication mode) are valid and granted the required RBAC access in the
healthcheck_namespace.Use the Diagnostics tab for the cluster to review error messages and network logs.
Once successful connectivity is established and user access is tested, the cluster resource is ready to be used for user workflows, roles, and policy-driven Kubernetes access.
Help
If you encounter issues, please consult the StrongDM Help Center.
Be prepared to provide the following information to StrongDM Support, so that they can inspect logs and confirm node and resource health:
Resource name or ID
CLI error output or logs
Node name and region
Timestamps of failed attempts
Last updated
Was this helpful?

