From 45109e3f04027142f38fa5939ce869272efaa3bb Mon Sep 17 00:00:00 2001 From: Kevin Hillinger Date: Fri, 29 Jan 2021 16:07:09 -0500 Subject: [PATCH] removing jq dependency --- 00-setup-your-environment/README.md | 6 ------ 07-build-a-spring-boot-microservice-using-mysql/README.md | 7 +++---- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/00-setup-your-environment/README.md b/00-setup-your-environment/README.md index c1227972..474cb5d6 100644 --- a/00-setup-your-environment/README.md +++ b/00-setup-your-environment/README.md @@ -34,12 +34,6 @@ This training lab requires the following to be installed on your machine: * The Bash shell. While Azure CLI should behave identically on all environments, some shell semantics may need to be modified for use with other shells. To complete this training on Windows, use [Git Bash that accompanies the Windows distribution of Git](https://git-scm.com/download/win). -* The `jq` utility. On Windows, download [this Windows port of JQ](https://github.com/stedolan/jq/releases) and add the following to the `~/.bashrc` file (create the file from scratch if it does not exist): - - ```bash - alias jq=/jq-win64.exe - ``` - * 🚧 The `spring-cloud` extension for Azure CLI. You can install this extension after installing Azure CLI by running `az extension add -n spring-cloud -y`. > 💡 In sections 9 and 10, you will access the UI of the Microservice applications in a web browser. Use the [new Edge](https://microsoft.com/edge/?WT.mc_id=azurespringcloud-github-judubois), Google Chrome, or Firefox for these sections. diff --git a/07-build-a-spring-boot-microservice-using-mysql/README.md b/07-build-a-spring-boot-microservice-using-mysql/README.md index 380e1aba..77600ef9 100644 --- a/07-build-a-spring-boot-microservice-using-mysql/README.md +++ b/07-build-a-spring-boot-microservice-using-mysql/README.md @@ -27,13 +27,12 @@ Before we can use it however, we will need to perform several tasks: > 💡When prompted for a password, enter the MySQL password you specified when deploying the ARM template in [Section 00](../00-setup-your-environment/README.md). -> 💡The following scripts require jq (https://stedolan.github.io/jq/) to be installed if run locally, jq is already installed if running Cloud Shell ```bash # Obtain the info on the MYSQL server in our resource group: MYSQL_INFO=$(az mysql server list --query '[0]') -MYSQL_SERVERNAME=$(echo $MYSQL_INFO | jq -r .name) -MYSQL_USERNAME="$(echo $MYSQL_INFO | jq -r .administratorLogin)@${MYSQL_SERVERNAME}" -MYSQL_HOST="$(echo $MYSQL_INFO | jq -r .fullyQualifiedDomainName)" +MYSQL_SERVERNAME=$(az mysql server list --query '[0].name' -o tsv) +MYSQL_USERNAME="$(az mysql server list --query '[0].administratorLogin' -o tsv)@${MYSQL_SERVERNAME}" +MYSQL_HOST="$(az mysql server list --query '[0].fullyQualifiedDomainName' -o tsv)" # Create a firewall rule to allow connections from your machine: MY_IP=$(curl whatismyip.akamai.com 2>/dev/null)