From 48c2b7a88747c1a4ca02a9ed9a405a71074341a3 Mon Sep 17 00:00:00 2001 From: Rachel Agyemang <32173602+rachel-msft@users.noreply.github.com> Date: Wed, 7 Aug 2019 22:22:38 -0700 Subject: [PATCH] location, user variables --- mariadb/scale-mariadb-server/scale-mariadb-server.sh | 8 +++++--- mysql/scale-mysql-server/scale-mysql-server.sh | 8 +++++--- .../scale-postgresql-server/scale-postgresql-server.sh | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/mariadb/scale-mariadb-server/scale-mariadb-server.sh b/mariadb/scale-mariadb-server/scale-mariadb-server.sh index 99a40729..7b32e625 100644 --- a/mariadb/scale-mariadb-server/scale-mariadb-server.sh +++ b/mariadb/scale-mariadb-server/scale-mariadb-server.sh @@ -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 diff --git a/mysql/scale-mysql-server/scale-mysql-server.sh b/mysql/scale-mysql-server/scale-mysql-server.sh index 8bad04e1..035a530b 100644 --- a/mysql/scale-mysql-server/scale-mysql-server.sh +++ b/mysql/scale-mysql-server/scale-mysql-server.sh @@ -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 diff --git a/postgresql/scale-postgresql-server/scale-postgresql-server.sh b/postgresql/scale-postgresql-server/scale-postgresql-server.sh index 084baa9c..f4232674 100644 --- a/postgresql/scale-postgresql-server/scale-postgresql-server.sh +++ b/postgresql/scale-postgresql-server/scale-postgresql-server.sh @@ -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