Skip to content

Instantly share code, notes, and snippets.

@devops-rob
Created July 24, 2019 10:56
Show Gist options
  • Save devops-rob/7d48a61d3d6bf95112b491f46e530253 to your computer and use it in GitHub Desktop.
Save devops-rob/7d48a61d3d6bf95112b491f46e530253 to your computer and use it in GitHub Desktop.
Create an open custom role for hashicorp vault to consume
#!/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