Looking for Detailed Approach
- After you add your Subscription
source ./setup_env_variables.sh
az account set --subscription "$SUBSCRIPTION_ID"
az group create -g "$RESOURCE_GROUP_NAME" -l "$REGION_NAME"
az spring-cloud create -g "$RESOURCE_GROUP_NAME" -n "$SPRING_CLOUD_NAME"
Use Azure Web Portal to map Github repo azsc-config-server to the config server
For Simplicity, I've generated config-server-import.yml file where we'll mention SpringCloudConfigServerGit-Uri, username, and password (Github PAT) and import this in Azure Web Portal under Spring Cloud > Config Server
Follow Steps mentioned in ./setup_azure_postgres.sh
az spring-cloud app create -n azsc-user-directory-service
az spring-cloud app create -n azsc-search-directory-service
az spring-cloud app create -n azsc-gateway --is-public true
- Compiled Jars are added
az spring-cloud app deploy -n azsc-user-directory-service --jar-path ./azsc-user-directory-service/build/libs/azsc-user-directory-service-0.0.1-SNAPSHOT.jar
az spring-cloud app deploy -n azsc-search-directory-service --jar-path ./azsc-search-directory-service/target/azsc-search-directory-service-0.0.1-SNAPSHOT.jar
az spring-cloud app deploy -n azsc-gateway --jar-path ./azsc-gateway/target/azsc-gateway-0.0.1-SNAPSHOT.jar
https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/index.html
Following APIs will route to respective Microservices as per Routing
- https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/api/admin/users
- https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/api/search/users
- This is to save cost, once you're done with demo
az group delete --name $RESOURCE_GROUP_NAME --yes