Created
July 24, 2019 10:56
-
-
Save devops-rob/7d48a61d3d6bf95112b491f46e530253 to your computer and use it in GitHub Desktop.
Create an open custom role for hashicorp vault to consume
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 | |
export SUBSCRIPTION_ID= | |
az role definition create --role-definition=<<EOF | |
{ | |
"Name": "vault-admin", | |
"IsCustom": true, | |
"Description": "role for vault to create service principals.", | |
"Actions": [ | |
"*" | |
], | |
"NotActions": [ | |
], | |
"AssignableScopes": [ | |
"/subscriptions/${SUBSCRIPTION_ID}", | |
] | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment