question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Section 7: issue creating binding - invalid resource id

See original GitHub issue

Hey guys,

I’m having an issue with section 7. When I do the following set of commands in the git bash:

MYSQL_ARM_RESOURCE_ID=$(echo $MYSQL_INFO | jq -r .id)

az spring-cloud app binding mysql add \
    --app weather-service \
    --name mysql-weather \
    --resource-id "$MYSQL_ARM_RESOURCE_ID" \
    --database-name 'azure-spring-cloud-training' \
    --username "$MYSQL_USERNAME" \
    --key "$MYSQL_PASSWORD"

I get an error that looks like this.

Invalid resource id C:/Program Files/Git/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.DBforMySQL/servers/sclabm-zzzzzzz

The problem persists if I enter the variables manually into the command.

I’m a bit stumped if this is an issue with my git bash, the terminal I’m using (happens in both ConEmu and the git bash) or with the az spring-cloud command. I hope you’d have an idea or may have seen the issue before.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jduboiscommented, Jul 23, 2020

Thank you @wonderb0lt ! If you need help or if you want me to amplify your training, just ping me.

1reaction
wonderb0ltcommented, Jul 22, 2020

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.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Section 7: issue creating binding - invalid resource id #50
Hey guys, I'm having an issue with section 7. When I do the following set of commands in the git bash: MYSQL_ARM_RESOURCE_ID=$(echo $MYSQL_INFO...
Read more >
Invalid resource ID with startIntentSenderForResult with SDK 25
Another SO answer says this error only occurs when using android.support.v4.app.FragmentActivity . My activities all use a base activity that ...
Read more >
Invalid Resource id - Google Groups
i am new to HAPI FHIR and now I tried to validate a resource during update request. But I got follow error from...
Read more >
draft-ietf-webdav-bind-09 - IETF Datatracker
Creating a new binding to a resource causes at least one new URI to be mapped ... <http://www.webdav.org/bind/draft-ietf-webdav-bind-issues.html> lists all ...
Read more >
Invalid resource name given – Google Cloud API Error
When invalid argument values are passed to the Google Cloud APIs, INVALID_ARGUMENT: Invalid resource name given error is returned.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found