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
Examples
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
--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.