Hello All,
I am new to programming on Windows Azure and I am currently trying my hands on interacting with the Windows Azure Virtual machines using the Python based interface.
Problem: create_virtual_machine_deployment() method ends up with WindowsAzureMissingResourceError
I create an object of OSVirtualHardDisk, passing in source_image_name and media_link parameter. As the image that I select is from the gallery, the latter parameter apparently is not optional. From the documentation that I have gone through and the Azure's Python library code, first of all it is not clear to me whether the media_link provided should point to a pre-existing blob or not.
Comment in the sample code at the how-to-guide reads: "Destination storage account container/blob where the VM diskwill be created "
So, the media_link that I use is something like: http://<mystorageaccount>..blob.core.windows.net/osvhds/myvhd.vhd
Here, the container, 'osvhds' exists. As per the above comment, I infer that the vhd need not have to pre-exist.
However, once the call to create_virtual_machine_deployment() gets executed, I get the following error:
<snip>
Traceback (most recent call last):File "create_vm.py", line 136, in <module>
role_size=vm_size)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementservice.py", line 905, in create_virtual_machine_deployment
async=True)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementservice.py", line 1413, in _perform_post
response = self._perform_request(request)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementservice.py", line 1375, in _perform_request
return _management_error_handler(e)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/__init__.py", line 670, in _management_error_handler
return _general_error_handler(http_error)
File "/usr/local/lib/python2.7/dist-packages/azure/__init__.py", line 642, in _general_error_handler
raise WindowsAzureMissingResourceError(_ERROR_NOT_FOUND)
azure.WindowsAzureMissingResourceError
</snip>
It would be great and helpful if anyone could help me get past this problem. Also, any useful hints/pointers about client side logs and troubleshooting tips would be of great help.
Thank you.
Regards,
Koustubha Bhat