Skip to content

Latest commit

 

History

History
108 lines (78 loc) · 1.87 KB

get-akshcicredential.md

File metadata and controls

108 lines (78 loc) · 1.87 KB
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

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]
                    [-aadAuth]

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

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

-aadAuth

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

Next steps

AksHci PowerShell Reference