Comments (12)
Hey guys, this happened again today during the actual Discover Workshop 😬 I haven't inlined the commands this time around (since I was busy showing off Azure Spring Cloud!), but the error was the same. This time I also followed the tutorial to the letter, in one go.
To help you guys reproduce this, here's a bit more info about my envrionment:
OS: Windows 10, build 17134
Azure CLI:
$ az --version
azure-cli 2.9.1
command-modules-nspkg 2.0.3
core 2.9.1
nspkg 3.0.4
telemetry 1.0.4
Extensions:
spring-cloud 0.3.1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\past\.azure\cliextensions'
Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
Command Line Environment: git bash (git version 2.27.0.windows.1) in a ConEmu (version 200713) prompt. Full bash info:
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
from azure-spring-apps-training.
Thank you @wonderb0lt ! If you need help or if you want me to amplify your training, just ping me.
from azure-spring-apps-training.
Can you have a look at echo $MYSQL_INFO
? This is how we try to get the resource ID, and I believe it's empty for some reason.
from azure-spring-apps-training.
Yup, it looks a bit mangled - I initially ascribed that to me using ConEmu, but this persists in the git bash as well.
past@vien0098 MINGW64 ~
$ echo $MYSQL_INFO
"id": "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxx/resourceGroups/my- }version": "5.7"e": "Ready",L/servers",",led",/servers/sclabm-zzzzzzzzzz",
Running the az
command directly however seems to produce well-formed JSON, and copying the resource id from the output of it still has the same result as described above
from azure-spring-apps-training.
So, even if you copy paste the resource id in the az spring-cloud app binding mysql
it doesn't work?
from azure-spring-apps-training.
Nope. The invocation looked like this:
az spring-cloud app binding mysql add --app weather-service --name mysql-weather --resource-id "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.DBforMySQL/servers/sclabm-yyyyyyyyyyyy" --database-name 'azure-spring-cloud-training' --username 'sqlAdmin@sclabm-yyyyyyyyyy' --key 'very secret password'
I have since worked around this by just manually creating the MySQL binding in the portal, so there's no hurry.
from azure-spring-apps-training.
So you would have 2 problems:
- The $MYSQL_INFO is broken -> I believe this was added by @yevster so I will assign this to him
- Even with the correct resource ID, the resource is still not created... And do you have the same error message in that case?
from azure-spring-apps-training.
from azure-spring-apps-training.
Thanks a lot @wonderb0lt - I'm going to ask @selvasingh if we can have help from his team on this, as I didn't work on the ARM templates part
from azure-spring-apps-training.
Yes, these issues are specific to Git Bash, and its console emulation. One workaround on Windows that will get you unblocked is to use Windows Subsystem for Linux in place of Git Bash. Alternatively, you could use Azure CloudShell for this section. We are looking at ways to make this section workable on Windows.
from azure-spring-apps-training.
Thank you @yevster for the pointers for the workaround as I'm holding the workshop again in September! :)
from azure-spring-apps-training.
This is now resolved in this section, as we've replaced the CLI comand with the portal. There's still an issue in section 11 that we'll track in #98.
from azure-spring-apps-training.
Related Issues (20)
- Issue in Exercise - 5 HOT 3
- the following arguments are required: --service/-s HOT 8
- How to deploy Spring Batch App to Azure and how to manage multiple instances and scheduling through config? HOT 5
- When I deployed spring-cloud-microservice to Azure Spring Cloud ,but failed HOT 2
- Suggestion: Getting the Test Endpoint through Azure CLI
- Bug: Config Server label needs noted HOT 1
- Issue in creating microservice using Git Bash Command HOT 1
- why spring cloud config service & discovery service projects not created? HOT 2
- Azure Spring Apps rebranding HOT 2
- Issue in curl commands while downloading files from spring Instalizer HOT 2
- Getting error HOT 1
- Get latest value after config value change
- Don't configure default values as it may lead to a messy situation
- Mention all contributors next to the creator to encourage community contribution
- Add a .devcontainer
- Create a module to integrate an ai service HOT 2
- Create a module to add a native app HOT 2
- Update to dedicated consumption plan
- update outdated screenshots for github token in spring config
- Create doc for local Spring Config Server to not skip tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-spring-apps-training.