How can I retrieve/compute an X509 certificate's thumbprint in Python and then use it for accessing Service Management APIs from Python SDK?

Hello,
I am using Azure Python SDK to perform calls to ServiceManagement APIs.
I have a .publishsettings file generated for my account which includes an encoded version of my X509 certificate and all of my subscription IDs.
How can I retrieve/compute an X509 certificate's thumbprint in Python?
Following is the code snippet that helps us do it in .Net.
Is there a similar approach to do it in Python?
var publishSettingsFile = @"C:\temp\CORP DPE Account-11-16-2011-credentials.publishsettings";
XDocument xdoc = XDocument.Load(publishSettingsFile);
var managementCertbase64string = xdoc.Descendants("PublishProfile").Single().Attribute("ManagementCertificate").Value;
var importedCert = new X509Certificate2(Convert.FromBase64String(managementCertbase64string));
thumbprint = importedCert.Thumbprint;
Once I have the thumbprint, how can I use that thumbprint to access Service Management APIs from Python SDK?
Thank you in Advance!
Regards,
Vaibhav Kale

Hi,
Please have check on the below article and check if it helps.
http://azure.microsoft.com/en-in/documentation/articles/cloud-services-python-how-to-use-service-management/
Regards,
Mekh.

Similar Messages

  • TS1424 How can I retrieve my smurfvillage back where It was? When I rebooted my iPad, it made my smurfvillage begin from the beginning?

    How can I retrieve my smurfvillage back where It was? When I rebooted my iPad, it made my smurfvillage begin from the beginning?
    Please help. I've already invested over $200 in my village and I was in level 27.  Any help would be appreciated. Thank you

    I got my contacts back by doing another restore!  Relief..
    But only a very few odd apps are showing up on the 3GS
    Any suggestions?

  • On FCP7, how can I put down an image say at 1 minute in, and then have it stay put as I adjust what's in front of and after it?

    On FCP7, how can I put down an image say at 1 minute in, and then have it stay put as I adjust what's in front of and after it?

    Put the scene that you want to stay in one place on the timeline on a video track above the one you are editing, in the location you want it to be on the timeline, and then lock the track.
    MtD

  • Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remo

    Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my
    business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remote.
    The Ipad is on a short cable to my projector. I am usually on a podium 30 feet away. No infra red receiver on the IPad and
    the Iphone remote needs wi fi which is not always available in all the locations I do my teaching and lecturing in.
    If you can build a remote into the Ipad in the future I would really like to use an Ipad to replace my heavier lap top for business travel. Thank You Kathy McNeil.

    "The Ipad is on a short cable to my projector."
    Get a longer cable?

  • How can i retrieve my ip address.i lost all my receipts and my box.someone stole it

    how can i retrieve my stolen ipad 2?i lost everything that proves that it is mine.all iknow is the apple address.i want to know the ip adress and everything about it

    The IP addres won't help you at all if someone connects from a different location.
    Did you install and activate Find My iPhone before it was stolen? If so, you can try to locate it from http://icloud.com. In any case, you should report it stolen to the police and your mobile operator if it was a 3G version.

  • HT5622 How can I SEE the hundreds of past apps I've purchased and then removed from my puny 10GB iPod Touch 4?

    I've spent hundreds of dollars on apps selected by 4 grandchildren, and I just as quickly I remove them when they're no longer visiting.  I assumed they were stored in the cloud (I've purchased extra space) and that I could always retrieve them.  But I need a reminder of all of these apps (mostly games) that I've already purchased.  (I even removed them from my Mac Air, which has only 60GB storage.)
    Do I need to perform an addtional operation--like select storage or back-up--to ensure all of these purchases go to the Cloud after the initial download?  Or are they they there "automatically," requiring perhaps my Apple ID and password?   And, if so, where--either on the tiny iPod or my computer or both--can I retrieve a list of my apps in the cloud.  (My reasons are simply:  1. to avoid repurchasing the same app; 2. to remind myself of the games preferred by my granddaughters.
    Thanks for any directions.
    Sam

    Hi Samuel.
    You can see and redownload your purchased apps at app store > updates > purchased.
    The Apps aren't actually in your iCloud storage, what you see is your purchase history with links to the originals in the app store, so you didn't need to purchase extra storage. However you should also be aware that if they are subsequently removed from the store, you wont be able to redownload them.

  • How can I get rid of an advertisement that pops up when I'm using Google? It's the advert from a business i googled once

    How can I get rid of an advertisement that pops up whenever I use Google?

    Settings
    safari
    Turn on blocking popups
    if that doesn't help, in Safari, throw away your history from the days since you had the issue. that may get rid of it. If it doesn't you may need to throw away your cookies (which isnt' any fun because it'll sign you out of any site you regularly sign into)

  • How can i back up my NOOK Books to my MacBook Air, and then transfer to a second iPad??

    how can i back up my NOOK books to my macbook air?  when i sync, all that comes over is purchases from Apple.

    File > Transfer Purchases will only copy purchases from Apple (though it does appear to copy PDFs from iBooks as well). Depending on whether the second iPad is new or not, you could try backing up the first iPad and restoring that backup to the second iPad and see if that copies the books onto it. Otherwise I think that you should be able to re-download the books on the second iPad

  • Where does Firefox store my bookmarks and how can I retrieve them after reinstalling Firefox.I had to restore and reinstall Windows XP(32).

    I have reteieved all my documents and settings and have recovered my E8 "Favorites" , but I can't find my FF bookmarks.

    Bookmarks are stored in the '''places.sqite''' file in your Profile folder. Also, there are bookmark backup files in the \bookmarkbackups\ folder in your Profile folder.
    https://support.mozilla.com/en-US/kb/Profiles#w_how-do-i-find-my-profile
    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • How can I bookmark, in iTunes, so that the songs I play and then stop in middle of song then come back later - it will start where I left off.  What is the switch in iTunes to make this happen?  Thank You

    In iTunes I would like to set it to bookmark where I am holding in a song on my iPOD.  Let's say I want to play a song that I listen to yesterday and stopped playing it in the middle on my iPOD.  Today, I want to listen, on my iPOD, to the same song and have it start playing where I left off yesterday.
    Can someone please tell me what I have to do in iTUNES to have this feature on my iPOD?
    Thank You
    Dovid

    iTunes does not have provision for automatically storing one kind of media on a separate drive, so you have some basic decisions to make first.  Do you want these movies to still appear in your iTunes library, or are you content with browsing filenames on a drive in Finder when you want to look for one?  The second's the easiest thing because then you don't have to have an external drive permanently turned on and attached to your computer (wired or wireless).  To do that you literelly only need to drag your movies folder to an archive drive and delete movies from iTunes.  To watch them again you can add it back to iTunes while holding down the option key so the movie is used from its location on the external drive.
    There's ways to move the movies to an external drive while keeping them in iTunes but the external drive iwll always have to be turned on and connected to the computer or you will see a bunch of broken link exclamation marks.
    Realize what you are talking about is not "backup".  Backup (which you should do) is putting a second or more copy of items on external drives for the day when your internal drive fails and everything on it is lost, inclduing all your home photos and perhaps things that have been pulled from the iTunes Store and can no longer be re-downloaded.

  • How can I turn my iPad on? It was being charged and then it is turn off and I am not able to turn it on again

       Thank you very much in advance for your help!
       I cannot turn my iPad on. It was being charged and it was working as it always work. Then, I tried to use it again and it was like turned off. I tried to turn it on again by pressing the bottom on top of it, but it is not working at all.
       Please, help me!!!
       Thanks again,
       Tere

    Hello TereV
    Try doing a reset on your iPad by holding the Sleep/Wake button and Home button for ten seconds and release and you should see the Apple logo come and power on. Check out the articles below for further troubleshooting options.
    iPad: Basic troubleshooting
    http://support.apple.com/kb/ts3274
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Regards,
    -Norm G.

  • How do I unverify an alternate email for one Apple ID and then use it for another Apple ID?

    So I need to use my email address for another Apple ID and when I enter it, it says that its already verified when I deleted it from my other Apple ID. Does anyone know how I unverify that email address???? Please help!!!

    Hey, try these steps:
    Go to My Apple ID.
    Select Manage your Apple ID and sign in.
    Scroll down to check if there are alternate and additional email addresses
    Delete or remove those email addresses
    Hope this helps.

  • HT4528 Can you buy an unlocked iPhone 5 off of this site and have it activated for Verizon service?

    I am wanting to buy a new iPhone 5, but I am not eligable for an upgrade yet so I'm planning on just buying an unlocked one. I don't know if I can, though, because it doesn't say that you can activate it on Verizon's service. Any help?

    The iPhone 5 for Verizon is unlocked for GSM networks worldwide. So you need to get a Verizon 5 for full price.

  • How can i retrieve the answers to my security questions?

    Can someone help me i cant remember my security answers how can i retrieve them?

    Go to https://iforgot.apple.com and follow the directions.
    If that doesn't resolve the problem Contact Apple Account Security as described here: http://support.apple.com/kb/HT5699

  • Can i sync my ipad to my mac, and then use my wifes mac to add media?

    Can i sync my ipad to my mac (with my account), and then use my wifes mac (her own account) to add media? ie photos/videos ect
    or do all the macs have to have the same acc?

    Only when you use the same account on both Macs http://support.apple.com/kb/HT1202  and turn on Homesharing; http://support.apple.com/kb/HT3819

Maybe you are looking for

  • My dad is overseas with his iPad2 and wants me to purchase an iBook can he access it overseas via iCloud?

    My dad is overseas with his ipad2 and wants me to purchase a book here in Australia on his iTunes account. Can he access it via iCloud?

  • HTTPS and portal

    I've done all passages described by Paul Encarnacion for enabling ssl on portal, but at the end, when I try to request: https://server-linux.urmetdomus.net/pls/portal30/ I read this message: "The request for content either timed out, or produced an e

  • Quicktime 7.13 Flash Setting won't stick

    OK,I got no answers posting in the OS X Server page, so I'd thought I'd post this here in QT to see if anyone has dealt with this? so here is the scenario: Quicktime 7.13's "enable flash" checkbox bug caused all of our elem grade Flash based software

  • Record audio or video in AS2

    I'm looking to record audio with a microphone and/or video/audio with the webcam and save the MP3/FLV locally. Can it be done? If so, how? Are there any tutorials?

  • Quartz Composer  crash when opening library only in 64bit

    Hi, I experience the following error only when I try to open the Library of Quartz Composer launched in 64bit: 0x86cbae20: -[NSView _drawRect:clip:] 0x86cb9938: -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x86cb9ca2: -[NSView _recursive