Last active
June 29, 2017 06:29
-
-
Save sjwaight/0ba37e3c3522aeaebf6bd20c9f3895b0 to your computer and use it in GitHub Desktop.
bash script you can use to create an Azure Database for MySQL server instance
This file contains hidden or 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/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