Created
November 25, 2022 15:21
-
-
Save oliverlabs/d474eccbc5c2a8c256893ca21d69ba49 to your computer and use it in GitHub Desktop.
Register an Azure Subscription Preview Feature using jq and Azure CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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