Skip to content

Commit

Permalink
Merge pull request #105 from renato-marciano/renato/updates-from-feed…
Browse files Browse the repository at this point in the history
…back

Renato/updates from feedback
  • Loading branch information
yevster authored Feb 2, 2021
2 parents 9d4d192 + 14e1730 commit 5055e51
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions 02-build-a-simple-spring-boot-microservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ Go to [the Azure portal](https://portal.azure.com/?WT.mc_id=azurespringcloud-git

- Look for your Azure Spring Cloud instance in your resource group
- Click "Apps" in the "Settings" section of the navigation pane and select "simple-microservice"
- Mouse over the URL labeled as "Test Endpoint" and click the clipboard icon that appears. This will give you something like:
- Mouse over the URL labeled as "Test Endpoint" and click the clipboard icon that appears.
This will give you something like:
`https://primary:BBQM6nsYnmmdQREXQINityNx63kWUbjsP7SIvqKhOcWDfP6HJTqg27klMLaSfpTB@rwo1106f.test.azuremicroservices.io/simple-microservice/default/`
Note the text between `https://` and `@`. These are the basic authentication credentials, without which you will not be authorized to access the service.
>💡 Note the text between `https://` and `@`. These are the basic authentication credentials, without which you will not be authorized to access the service.
- Append `hello/` to the URL. Failure to do this will result in a "404 not found".

You can now use cURL again to test the `/hello` endpoint, this time served by Azure Spring Cloud. For example.

```bash
curl https://primary:BBQM6nsYnmmdQREXQINityNx63kWUbjsP7SIvqKhOcWDfP6HJTqg27klMLaSfpTB@rwo1106f.test.azuremicroservices.io/simple-microservice/default/hello/
curl https://primary:...simple-microservice/default/hello/
```

>💡Note that we have appended `hello/` to the URL. Failure to do this will result in a "404 not found".
If successful, you should see the message: `Hello from Azure Spring Cloud`.

## Conclusion
Expand Down
6 changes: 4 additions & 2 deletions 04-configure-a-spring-cloud-config-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Configure a [Spring Cloud Config Server](https://cloud.spring.io/spring-cloud-co
> To use this shortcut:
> - Go to [the Azure portal](https://portal.azure.com/?WT.mc_id=azurespringcloud-github-judubois).
> - Go to the overview page of your Azure Spring Cloud server and select "Config server" in the menu
> - Set the repository URL: `https://github.com/Azure-Samples/spring-cloud-sample-public-config.git`.
> - Set the repository URL: `https://github.com/Azure-Samples/spring-cloud-sample-public-config.git`
> - Click on "Validate" and wait for the operation to succeed
> - Click on "Apply" and wait for the operation to succeed
>
> We have enabled Azure Spring Cloud to create a configuration server with the configuration files from this repository. You can now proceed to the next guide:
Expand Down Expand Up @@ -51,13 +52,14 @@ Once the token is generated, leave that tab open until the end of this section.
- Go to [the Azure portal](https://portal.azure.com/?WT.mc_id=azurespringcloud-github-judubois).
- Go to the overview page of your Azure Spring Cloud server and select "Config server" in the menu
- Configure the repository we previously created:
- Add the repository URL, for example `https://github.com/Azure-Samples/spring-cloud-sample-public-config.git`.
- Add the repository URL, for example `https://github.com/Azure-Samples/spring-cloud-sample-public-config.git`

>💡 Make sure you include the `.git` ending in the URL.

- Click on `Authentication` and select `HTTP Basic`
- The __username__ is your GitHub login name
- The __password__ is the personal token we created in the previous section
- Click on "Validate" and wait for the operation to succeed
- Click on "Apply" and wait for the operation to succeed

![Spring Cloud config server](media/02-config-server.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ cd ..
## Test the project in the cloud

- Go to "Apps" in your Azure Spring Cloud instance.
- Verify that `city-service` has a `Discovery status` which says `UP(1),DOWN(0)`. This shows that it is correctly registered in Spring Cloud Service Registry.
- Verify that `city-service` has a `Registration status` which says `1/1`. This shows that it is correctly registered in Spring Cloud Service Registry.
- Select `city-service` to have more information on the microservice.
- Copy/paste the "Test Endpoint" that is provided.

Expand Down
3 changes: 1 addition & 2 deletions 07-build-a-spring-boot-microservice-using-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ az mysql server firewall-rule create \

# Create a MySQL database
az mysql db create \
--resource-group $AZ_RESOURCE_GROUP \
--name "azure-spring-cloud-training" \
--server-name $MYSQL_SERVERNAME

Expand Down Expand Up @@ -202,7 +201,7 @@ cd ..
## Test the project in the cloud

- Go to "Apps" in your Azure Spring Cloud instance.
- Verify that `weather-service` has a `Discovery status` which says `UP(1),DOWN(0)`. This shows that it is correctly registered in the Spring Cloud Service Registry.
- Verify that `weather-service` has a `Registration status` which says `1/1`. This shows that it is correctly registered in the Spring Cloud Service Registry.
- Select `weather-service` to have more information on the microservice.
- Copy/paste the "Test Endpoint" that is provided. You might have to click on `See more` to find it.

Expand Down
2 changes: 1 addition & 1 deletion 08-build-a-spring-cloud-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cd ..
## Test the project in the cloud

- Go to "Apps" in your Azure Spring Cloud instance.
- Verify that `gateway` has a `Discovery status` which says `UP(1),DOWN(0)`. This shows that it is correctly registered in the Spring Cloud Service Registry.
- Verify that `gateway` has a `Registration status` which says `1/1`. This shows that it is correctly registered in the Spring Cloud Service Registry.
- Select `gateway` to have more information on the microservice.
- Copy/paste the public URL that is provided (there is a "Test Endpoint" like for microservices, but the gateway is directly exposed on the Internet, so let's use the public URL). Keep this URL handy for subsequent sections.

Expand Down

0 comments on commit 5055e51

Please sign in to comment.