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 create
Create the specified FirewallPolicyKubeSelectorGroup. Azure CLI extensions reference
1 example 4 options Its page in the Azure CLI extensions reference
Examples
Create a Kubernetes selector group that matches pods by label and namespaces by expression.
az network firewall policy kube-selector-group create -g MyResourceGroup --policy-name MyPolicy -n MySelectorGroup --pod-selector "{match-labels:{app:web}}" --namespace-selector "{match-expressions:[{key:env,operator:In,values:[prod,staging]}]}"Identify-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.