Skip to content

Instantly share code, notes, and snippets.

@oliverlabs
Created November 25, 2022 15:21
Show Gist options
  • Save oliverlabs/d474eccbc5c2a8c256893ca21d69ba49 to your computer and use it in GitHub Desktop.
Save oliverlabs/d474eccbc5c2a8c256893ca21d69ba49 to your computer and use it in GitHub Desktop.
Register an Azure Subscription Preview Feature using jq and Azure CLI
#!/bin/bash
feature=`az feature list -o json | jq -c 'map(select(.name | contains("OIDC")))' | jq -r '.[].name'`
echo "$feature"
namespace=`echo $feature | cut -d'/' -f1`
name=`echo $feature | cut -d'/' -f2`
az feature register --namespace $namespace --name $name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment