Remove-AksHciGmsaCredentialSpec

Synopsis

Deletes a credentials spec for gMSA deployments on a cluster.

Syntax

Remove-AksHciGmsaCredentialSpec -name <String> 
                             -credSpecName <String>
                             -clusterRoleName <String>
                             [-secretNamespace <String>]
                             [-serviceAccount <String>]
                             [-activity <String>]                      

Description

Deletes a credentials spec for gMSA deployments on a cluster.

Examples

Example

Remove-AksHciGmsaCredentialSpec -Name mycluster -CredSpecName credspec-mynewcluster -clusterRoleName clusterrole-mynewcluster

Parameters

-name

The alphanumeric name of your Kubernetes cluster.

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

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

-credSpecName

Name of the Kubernetes credential spec object the user would like to designate.

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

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

-clusterRoleName

Name of the Kubernetes cluster role assigned to use the Kubernetes gMSA credspec object.

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

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

-secretNamespace

Namespace where the Kubernetes secret object resides in.

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

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

-serviceAccount

Name of the Kubernetes service account assigned to read the k8s gMSA credspec object.

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

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

-activity

The name of the activity when updating progress.

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

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

Next steps

AksHci PowerShell Reference