Get-AksHciCredential

Synopsis

Access your cluster using kubectl. This will use the specified cluster's kubeconfig file as the default kubeconfig file for kubectl.

Syntax

Get-AksHciCredential -name <String>
                    [-configPath <String>]
                    [-adAuth]

Description

Access your cluster using kubectl.

Examples

Access your cluster using kubectl.

Get-AksHciCredential -name myCluster

Parameters

-name

The name of the cluster.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-configPath

The location where you want the kubeconfig downloaded. Default is %USERPROFILE%\.kube.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: %USERPROFILE%\.kube
Accept pipeline input: False
Accept wildcard characters: False

-adAuth

Use this flag to get the Active Directory SSO version of the kubeconfig.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False