Closed javaHelper closed 2 years ago
Hi @javaHelper! To setup the cluster, did you follow https://github.com/microsoft/azure-spring-cloud-training/blob/master/01-create-an-azure-spring-cloud-instance/README.md ? This is step 1, "01 - Create an Azure Spring Cloud instance".
Yes I followed steps mentioned here - "01 - Create an Azure Spring Cloud instance". If you see the readme, I specifically dont see any instructions to create the cluster. Does cluster word refers to kubernates cluster? <I'm fairly new to Azure>
The cluster is a Spring Cloud cluster - to answer your other question, it's indeed a Kubernetes cluster underneath, but you don't have direct access to it.
You create it at the end of step 1, when you run the az spring-cloud create
command line near the end. You then configure it to be the default cluster, that's why you won't need to refer to it in the next steps.
Thanks for the details, this is what I've tried and still no luck
C:\Users\pc\simple-microservice>set AZ_RESOURCE_GROUP=spring-cloud-lab
C:\Users\pc\simple-microservice>set AZ_SPRING_CLOUD_NAME=azure-spring-cloud-lab-prateek
C:\Users\pc\simple-microservice>az spring-cloud create -g "$AZ_RESOURCE_GROUP" -n "$AZ_SPRING_CLOUD_NAME" --sku standard
Parameter 'resource_group_name' must conform to the following pattern: '^[-\\w\\._\\(\\)]+$'.
C:\Users\pc\simple-microservice>az spring-cloud create -g spring-cloud-lab -n azure-spring-cloud-lab-prateek --sku standard
- Creating Service ..
It seems you're not using Git Bash (which is in the prerequisites at https://github.com/microsoft/azure-spring-cloud-training/blob/master/00-setup-your-environment/README.md ), so your "$AZ_RESOURCE_GROUP" isn't being extrapolated. That would explain why you have the error Parameter 'resource_group_name' must conform to the following pattern: '^[-\\w\\._\\(\\)]+$'
(as you now have $
in the name of your resource group.
As the resource group isn't correct, then the cluster isn't created.
I can't guarantee that the rest of the training will work if you don't use Git Bash, it hasn't been tested with another shell and there is quite a lot of commands in the next units. Anyway, it still seems that the way you configure your resource group isn't good, as the name should have a length that is greater than 1. I'm not sure how to do this outside of Bash, I believe you need to use something like %AZ_RESOURCE_GROUP%, but I haven't done this for something like 15 years so again I can't guarantee it will work.
Thanks, great help, things are working fine. I had to create the Resource Group manually and now things have worked via command line - git bash
Awesome! And congrats :-)
I'm trying to deploy code through command line, it's asking me to create the Cluster, but neither your step suggest to