az aks pod-identity

Note

This reference is part of the aks-preview extension for the Azure CLI (version 2.38.0 or higher). The extension will automatically install the first time you run an az aks pod-identity command. Learn more about extensions.

Commands to manage pod identities in managed Kubernetes cluster.

Commands

az aks pod-identity add

Add a pod identity to a managed Kubernetes cluster.

az aks pod-identity delete

Remove a pod identity from a managed Kubernetes cluster.

az aks pod-identity exception

Commands to manage pod identity exceptions in managed Kubernetes cluster.

az aks pod-identity exception add

Add a pod identity exception to a managed Kubernetes cluster.

az aks pod-identity exception delete

Remove a pod identity exception from a managed Kubernetes cluster.

az aks pod-identity exception list

List pod identity exceptions in a managed Kubernetes cluster.

az aks pod-identity exception update

Update a pod identity exception in a managed Kubernetes cluster.

az aks pod-identity list

List pod identities in a managed Kubernetes cluster.

az aks pod-identity add

Add a pod identity to a managed Kubernetes cluster.

az aks pod-identity add --cluster-name
                        --identity-resource-id
                        --namespace
                        --resource-group
                        [--binding-selector]
                        [--name]

Examples

Add pod identity

az aks pod-identity add --cluster-name MyManagedCluster --resource-group MyResourceGroup --namespace my-namespace --name my-identity --identity-resource-id <my-identity-resource-id>

Required Parameters

--cluster-name

The cluster name.

--identity-resource-id

Resource id of the identity to use.

--namespace

The pod identity namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--binding-selector

Optional binding selector to use.

--name -n

The pod identity name. Generate if not specified.

az aks pod-identity delete

Remove a pod identity from a managed Kubernetes cluster.

az aks pod-identity delete --cluster-name
                           --name
                           --namespace
                           --resource-group

Required Parameters

--cluster-name

The cluster name.

--name -n

The pod identity name.

--namespace

The pod identity namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az aks pod-identity list

List pod identities in a managed Kubernetes cluster.

az aks pod-identity list --cluster-name
                         --resource-group

Required Parameters

--cluster-name

The cluster name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.