docker run -itd --name azure-manager -p 8888:8888 1injex/azure-manager
# replace username with yours
# replace password with yours
docker exec -it azure-manager flask admin username password
sub_id=$(az account list --query [].id -o tsv) && az ad sp create-for-rbac --role contributor --scopes /subscriptions/$sub_id
There will be some output like this:
# Creating 'contributor' role assignment under scope '/subscriptions/DDD'
# The output includes credentials that you must protect. Be sure that you do not include these credentials in your code or check the credentials into your source control. For more information, # see https://aka.ms/azadsp-cli
{
"appId": "AAA",
"displayName": "azure-cli",
"password": "BBB",
"tenant": "CCC"
}
ApiKey string Format:
appId|password|tenant|subscriptions
So the final ApiKey is:
AAA|BBB|CCC|DDD
Content type
Image
Digest
sha256:cfb96485b…
Size
47.8 MB
Last updated
about 4 years ago
docker pull 1injex/azure-manager