(Azure VM) Failed to retrieve image alias doc

Sang Hoon Kim 21 Reputation points
2020-03-16T00:14:31.96+00:00

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
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,029 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. jakaruna-MSFT 601 Reputation points Microsoft Employee
    2020-03-16T09:59:59.187+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.