-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added enable aggregation pipeline to azure mongo
fixed azure sql fog binding credentials fixes #135
- Loading branch information
Ernie Billing
committed
Nov 13, 2020
1 parent
5b49e9f
commit 36b3f3b
Showing
5 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
10 changes: 6 additions & 4 deletions
10
azure-brokerpak/terraform/azure-mssql-db-failover/mssql-db-fog-outputs.tf
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
set -o nounset | ||
#set -o errexit | ||
|
||
if [ $# -lt 3 ]; then | ||
echo "Usage: ${0} <resource group> <server name> <location>" | ||
exit 1 | ||
fi | ||
|
||
RG=${1}; shift | ||
SERVER_NAME=${1}; shift | ||
LOCATION=${1}; shift | ||
|
||
USERNAME=$(cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z' | fold -w 16 | head -n 1) | ||
PASSWORD=$(cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | ||
|
||
if [ $# -gt 0 ]; then | ||
USERNAME=$1; shift | ||
fi | ||
|
||
if [ $# -gt 0 ]; then | ||
PASSWORD=$1; shift | ||
fi | ||
|
||
DB_NAME=csb-db | ||
|
||
az sql server create --resource-group ${RG} --name ${SERVER_NAME} --location ${LOCATION} --admin-user ${USERNAME} --admin-password ${PASSWORD} | ||
|
||
az sql server firewall-rule create --resource-group ${RG} --server ${SERVER_NAME} --name ${SERVER_NAME}-ip --start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0 | ||
|
||
az sql db create --name ${DB_NAME} --resource-group ${RG} --server ${SERVER_NAME} -e GeneralPurpose -f Gen5 -c 2 --compute-model Serverless --auto-pause-delay 120 | ||
|
||
DETAILS=$(az sql server show --resource-group ${RG} --name ${SERVER_NAME}) | ||
|
||
echo Server Details | ||
echo FQDN: $(echo ${DETAILS} | jq -r .fullyQualifiedDomainName) | ||
echo Admin Username: ${USERNAME}@${SERVER_NAME} | ||
echo Admin Password: ${PASSWORD} | ||
echo Database Name: ${DB_NAME} |