CmdID

CmdID / az / az network / az network firewall / az network firewall policy / az network firewall policy kube-selector-group

az network firewall policy kube-selector-group update

Update the specified FirewallPolicyKubeSelectorGroup. Azure CLI extensions reference

A selector that is not passed keeps its current value, pass null to clear one.

1 example 4 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Replace the pod selector and clear the namespace selector.

az network firewall policy kube-selector-group update -g MyResourceGroup --policy-name MyPolicy -n MySelectorGroup --pod-selector "{match-labels:{app:api}}" --namespace-selector nullIdentify
-gName of resource group.
--policy-nameThe name of the Firewall Policy.
-nThe name of the resource that is unique within a resource group.
--pod-selectorKubernetes Pod selector for matching pods in the Kubernetes cluster.
--namespace-selectorKubernetes Namespace selector for matching namespaces in the Kubernetes cluster.

Options

4 in the Azure CLI extensions reference
--kube-selector-group-name, --name, -nThe name of the resource that is unique within a resource group.
--namespace-selectorKubernetes Namespace selector for matching namespaces in the Kubernetes cluster.
--pod-selectorKubernetes Pod selector for matching pods in the Kubernetes cluster.
--policy-nameThe name of the Firewall Policy.