Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Managing Services with the Python SDK

$
0
0

When I try to connect to Azure using the Python API I get the following error:

WindowsError: [Error -2147012852] Windows Error 0x80072F0C

I have generated the certificates without issue and uploaded the .cer to Azure. I can also hit Azure using Python and the REST API (via Requests) without issue. However when using the Python API it fails.

It seems like others have received the same error in various guises. I'm using Windows 8 with version 2.7.5 of CPython which according to the tutorial (h**ps://www.windowsazure.com/en-us/develop/python/how-to-guides/service-management/) is fully supported. 

Unfortunately this is pretty shonky from Microsoft, not only does their tutorial not work as advertised, it is also entirely inconsistent. The tutorial code uses print() as a function (indicating Python3.X) however when I try and run the code in Python3.X it fails as the azure python module clearly doesn't support Python3.X (errors with urllib2 that doesn't exist in Python3.X).

Has anyone successfully used the Python API on Windows and Python2.7 to connect to Azure? If the tutorial is incorrect it needs to be removed.


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>