private static void AKSAdministration() { var configuration = new k8s.KubernetesClientConfiguration { Host = "https://ari-aks-22-demo-f681ed-b4579bd4.hcp.southeastasia.azmk8s.io:443", AccessToken = ReadAccessToken() }; configuration.SkipTlsVerify = true; var client = new k8s.Kubernetes(configuration); var namespaces = client.ListNamespace(); foreach (var ns in namespaces.Items) { Console.WriteLine(ns.Metadata.Name); } // ## Uncomment below lines to test creation of namespace //client.CreateNamespace(new k8s.Models.V1Namespace { // Metadata= new k8s.Models.V1ObjectMeta // { // Name= "automation" // } //}); }