GithubHelp home page GithubHelp logo

Comments (8)

jdubois avatar jdubois commented on June 10, 2024

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".

from azure-spring-cloud-training.

javaHelper avatar javaHelper commented on June 10, 2024

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>

from azure-spring-cloud-training.

jdubois avatar jdubois commented on June 10, 2024

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.

from azure-spring-cloud-training.

javaHelper avatar javaHelper commented on June 10, 2024

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 ..

from azure-spring-cloud-training.

jdubois avatar jdubois commented on June 10, 2024

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.

from azure-spring-cloud-training.

jdubois avatar jdubois commented on June 10, 2024

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.

from azure-spring-cloud-training.

javaHelper avatar javaHelper commented on June 10, 2024

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

image

from azure-spring-cloud-training.

jdubois avatar jdubois commented on June 10, 2024

Awesome! And congrats :-)

from azure-spring-cloud-training.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.