Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidURL error in az pool create --template #119

Open
lmiroslaw opened this issue Apr 6, 2020 · 3 comments
Open

InvalidURL error in az pool create --template #119

lmiroslaw opened this issue Apr 6, 2020 · 3 comments

Comments

@lmiroslaw
Copy link

Unfortunately, az pool create -template ..json does not work with the latest az cli and az batch extensions.

I get
"Error occurred in request., InvalidURL: Failed to parse: https://"dshardbatch.westeurope.batch.azure.com"/pools?api-version=2019-08-01.10.0&timeout=30"

@bgklein
Copy link
Contributor

bgklein commented Apr 7, 2020

Looking through the service logs I see two create pool requests failing due to protocol failure for that account. I see this in one of their log traces

04/07/2020 09:26:55.401```
I do not believe that is a valid VM Size. You probably want STANDARD_D64s_v3.

If that is not from the request in question could you share your template,  so I can look into it further? If that was the problem we can probably keep this issue open to improve the error message, as we are probably swallowing the inner details causing our generic 400 error message.

@lmiroslaw
Copy link
Author

lmiroslaw commented Apr 15, 2020

Sure. Here it is: https://github.com/tojozefi/azurebatch/blob/master/datasharding/datasharding-pool.json

I used the same template with Batch Explorer and it worked, e.g. I have a pool now with STANDARD_D64_v3 VMs.

@bgklein
Copy link
Contributor

bgklein commented Apr 15, 2020

Hmmm, I attempted to reproduce this and couldn't. What are you doing to feed in the account-endpoint? An environment variable, feeding in --account-endpoint, or using 'az batch login'. I tried the latter two and both properly had quotes trimmed.

Also what are the results of az --version? Ultimately trying to figure out whats causing those quotes in the url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants