Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bash script you can use to create an Azure Database for MySQL server instance
#!/bin/sh
azuresub=$1
demolocation=$2
demoresourcegroup=$3
mysqlservername=$4
mysqladminuser=$5
mysqladminpass=$6
# uncomment to add local support and login to your Azure subscription
# az login
az account set --subscription $azuresub
az group create --location $demolocation --name $demoresourcegroup
az mysql server create --name $mysqlservername --version 5.7 --performance-tier Basic --compute-units 50 --storage-size 51200 --resource-group $demoresourcegroup --location $demolocation --admin-user $mysqladminuser --admin-password $mysqladminpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.