question

SangHoonKim-0818 avatar image
0 Votes"
SangHoonKim-0818 asked jakaruna-MSFT answered

(Azure VM) Failed to retrieve image alias doc

Hello,

I wrote a python script using the module multiprocessing that sends several VM creation calls in parallel using the command "az vm create".
Whenever I run this program on my local computer, everything is perfect in that if I send 10 VM creation calls in parallel, Azure creates exactly 10 VMs.

Since I wanted to automate this process, I created a VM on Azure and ran the program on the VM.
However, if I send, for example, 48 VM creation calls, Azure receives 39 VMs creation calls and creates 39 VMs.
It is not that the other VMs are made unsuccessfully; Azure just does not receive the other VM creation calls.

During that kind of process, I got an error:
Failed to retrieve image alias doc 'https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json'. Error: 'ConnectionError'. Use local copy instead.

I guess this error should be relevant.

Please help me fix this problem.
Thank you.

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

jakaruna-MSFT avatar image
0 Votes"
jakaruna-MSFT answered

Hi,
Are you pulling the content from the below url in your python script?
https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json

If yes, There is late limit from github side. For unauthenticated users, only 60 requests are allowed for a minute.

Looks like you hit that limit. Please check and let me know.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.