Skip to content

Commit

Permalink
location, user variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-msft committed Aug 8, 2019
1 parent 680ca04 commit 48c2b7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions mariadb/scale-mariadb-server/scale-mariadb-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
RESOURCE_GROUP="myresourcegroup" ;
SERVER_NAME="mydemoserver-$RANDOM"
PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12) ; echo password $PASSWORD
LOCATION="westus"
ADMIN_USER="myadmin"
SUBSCRIPTION_ID="" # enter your subscription ID

# Create a resource group
az group create \
--name $RESOURCE_GROUP \
--location westus
--location $LOCATION

# Create a MariaDB server in the resource group
az mariadb server create \
--name $SERVER_NAME \
--resource-group $RESOURCE_GROUP \
--location westus \
--admin-user myadmin \
--location $LOCATION \
--admin-user $ADMIN_USER \
--admin-password $PASSWORD \
--sku-name GP_Gen5_2

Expand Down
8 changes: 5 additions & 3 deletions mysql/scale-mysql-server/scale-mysql-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
RESOURCE_GROUP="myresourcegroup" ;
SERVER_NAME="mydemoserver-$RANDOM"
PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12) ; echo password $PASSWORD
LOCATION="westus"
ADMIN_USER="myadmin"
SUBSCRIPTION_ID="" # enter your subscription ID

# Create a resource group
az group create \
--name $RESOURCE_GROUP \
--location westus
--location $LOCATION

# Create a MySQL server in the resource group
az mysql server create \
--name $SERVER_NAME \
--resource-group $RESOURCE_GROUP \
--location westus \
--admin-user myadmin \
--location $LOCATION \
--admin-user $ADMIN_USER \
--admin-password $PASSWORD \
--sku-name GP_Gen5_2

Expand Down
8 changes: 5 additions & 3 deletions postgresql/scale-postgresql-server/scale-postgresql-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
RESOURCE_GROUP="myresourcegroup" ;
SERVER_NAME="mydemoserver-$RANDOM"
PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12) ; echo password $PASSWORD
LOCATION="westus"
ADMIN_USER="myadmin"
SUBSCRIPTION_ID="" # enter your subscription ID

# Create a resource group
az group create \
--name $RESOURCE_GROUP \
--location westus
--location $LOCATION

# Create a PostgreSQL server in the resource group
az postgres server create \
--name $SERVER_NAME \
--resource-group $RESOURCE_GROUP \
--location westus \
--admin-user myadmin \
--location $LOCATION \
--admin-user $ADMIN_USER \
--admin-password $PASSWORD \
--sku-name GP_Gen5_2

Expand Down

0 comments on commit 48c2b7a

Please sign in to comment.