title | author | description | ms.topic | ms.date | ms.author | ms.lastreviewed | ms.reviewer |
---|---|---|---|---|---|---|---|
Get-AksHciCredential for AKS hybrid |
sethmanheim |
The Get-AksHciCredential PowerShell command accesses your cluster using kubectl. |
reference |
03/21/2023 |
sethm |
1/14/2022 |
jeguan |
Access your cluster using kubectl
. This will use the specified cluster's kubeconfig file as the default kubeconfig file for kubectl
.
Get-AksHciCredential -name <String>
[-configPath <String>]
[-adAuth]
[-aadAuth]
Access your cluster using kubectl.
Get-AksHciCredential -name myCluster
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
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
Gets 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
Gets the Azure RBAC 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