Skip to content

Instantly share code, notes, and snippets.

@oliverlabs
Created November 25, 2022 15:20
Show Gist options
  • Save oliverlabs/6940fc06457b378b60daf638324636d7 to your computer and use it in GitHub Desktop.
Save oliverlabs/6940fc06457b378b60daf638324636d7 to your computer and use it in GitHub Desktop.
Register an Azure Preview Feature Using Az CLI
#!/bin/bash
features=($(az feature list -o table | grep 'AKS-AzureDefender\|OIDC' | xargs -L1 bash -c 'echo $0' | cut -d '/' -f2))
for feature in "${features[@]}"; do
j=$(az feature show --name ${feature} --namespace 'microsoft.ContainerService' | jq)
echo $j | jq
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment