See the status of your Windows Azure deployments using the Windows Azure Service Management REST API. Since this is REST based you can use any framework or programming language that can make web requests. Python, Java etc here is .NET.
Here is a short bit of C# code that will allow you to call the part of the Windows Azure Service Management REST API that deals with getting the status of your hosted service in Azure.
You can see how the REST API is expected to be used here at Get Hosted Service Properties. This code accesses that API:
static void Main(string[] args) { var subsctiptionId = "f62e5e87-5c76-4a94-9136-794fae3eff16"; var hostedService = "colintest"; //I have another post that details how GetCertificateByThumbprint method works: //http://www.britishdeveloper.co.uk/2012/01/adding-certificate-to-request-in-net.html var certificate = GetCertificateByThumbprint("23A43AE81F15CB000000000000000000000000000"); var statusApiUrl = string.Format( "https://management.core.windows.net/{0}/services/hostedservices/{1}?embed-detail=true", subsctiptionId, hostedService); var hostedServiceStatus = new Uri(statusApiUrl); Console.WriteLine("Hosted service status"); MakeApiRequest(hostedServiceStatus, certificate); Console.ReadKey(); } private static void MakeApiRequest(Uri requestUri, X509Certificate2 certificate) { var request = (HttpWebRequest)HttpWebRequest.Create(requestUri); request.Headers.Add("x-ms-version", "2011-10-01"); request.Method = "GET"; request.ContentType = "application/xml"; request.ClientCertificates.Add(certificate); try { using (var response = (HttpWebResponse)request.GetResponse()) { Console.WriteLine("Response status code: " + response.StatusCode); using (var responseStream = response.GetResponseStream()) using (var reader = new StreamReader(responseStream)) { Console.WriteLine("Response output:"); Console.WriteLine(reader.ReadToEnd()); } Console.WriteLine(""); } } catch (Exception e) { Console.WriteLine(e.Message); throw e; } }
Since you have used ?embed-detail=true in the querystring this add extra detail. From here you can get all sorts of useful information such as: Status e.g. Running or DeploymentSlot e.g. Production.
Note: The GetCertificateByThumbprint(string thumbprint)
method I used is of course simplifying attaching a certificate to the request for the sake of conciseness. You can have a look at what this method is doing here at attaching a certificate to a WebRequest.
What’s up, it's miles very splendid and beneficial net website. Keep shaping the notable feature, exceptional to discover your realistic internet web page. Thanks for tremendous and Informative post. This article is without a doubt consists of lot more information about this issue relies. College paper writing service giving many ideas and methods for thesis writing papers
ReplyDeleteI really had a great time with your post! I am looking forward to read more blog post regarding this!
ReplyDeleteHappyroom2.com Tosstheturtle.net Catmariogame.com
Avriq MAP
ReplyDeleteAvriq
CCTV Camera
Pest control services
PC Optimization
CP Plus
Termite control services
Thanks for sharing Informisan about these also https://apkcastle.com/gangstar-vegas-mod-apk/ https://kiwiapk.com/zombie-tsunami-mod-apk/ https://neoapk.com/cooking-fever-mod-apk/
ReplyDeleteGreatly composed article, if just all bloggers offered the same substance as you, the web would be a much better place.
ReplyDeleteMenmyshop
Car Stereo
Double Din Android Player
Hyepersonic Double Din Player
Hyundai Creta Double Din Player
Hyundai Xcent OEM Double Din Player
banzara
Patrachar Vidyalaya Admission Form
ReplyDeletePatrachar Vidyalaya Shalimar Bagh
Open School admission
Cbse Patrachar
Motifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium Lawn, Lawn 2019, Best lawn collection, Motifz, Best Lawn in Pakistan, Shipping worldwide. Stitching option available.
ReplyDeleteNice post tutuapp
ReplyDeleteAwesome blog. I enjoyed reading your articles.
ReplyDeletetutu app
tutuapp download
Wholesale printed custom perfume boxes with the highest quality and affordable prices. Free worldwide Delivery and free Custom Perfume Boxes design.
ReplyDeleteBuy online wholesale printed custom perfume boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom cbd boxes sooner than any other packaging competitor in the market
ReplyDeletemylar label bags in stock now. Ready made Cali pack designs. Fast Shipping at Your Supplies. Custom designs available
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom cbd bath bomb boxes sooner than any other packaging competitor in the market
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom wholesale cookie boxes sooner than any other packaging competitor in the market
ReplyDeleteGreat Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year
Projects for CSE
JavaScript Training in Chennai
JavaScript
Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals,
Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer.
Angular Training
cali spliff, available at Your Supplies. Cali Pack Heat sealable. Fast Shipping.
ReplyDeleteI really appreciate the way you write...Please check my work as well
ReplyDeleteJaipur Call Girl
Jaipur Call Girl
Jaipur Call Girl
Delhi Call Girl
Guwahati Call Girl
Guwahati Call Girl
Guwahati Call Girl
Guwahati Call Girl
Aerocity Call Girl
Lucknow Call Girl
Packaging town is a one stop solution for the short-run cbd tincture boxes needs and supplies. At affordable prices. Request a free quote now.
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom vape boxes sooner than any other packaging competitor in the market
ReplyDeletebuy chiffon collection 2021 online from afrozeh at best prices. get free shipping in pakistan
ReplyDeleteDo your grocery online at Al-Fatah, Pakistan's best and largest online grocery website. Shop from a wide range of grocery including oil and ghee, tea and coffee, dry fruits and seeds, dairy and fresh bakery items, packaged foods, snacks and beverages, baby care, household essentials, fruits and vegetables and many more.
ReplyDeleteWe at Al-Fatah have perfected the floor care with the right variety of Vacuum Cleaners available under one roof. Al-Fatah is a One-Stop Shop for all your home appliances buying needs. Buy best variety of Vacuum Cleaners in Pakistan at Al-Fatah. Shop Vacuum Cleaners of Top & Genuine Brands in Pakistan at Al-Fatah now!
ReplyDeleteShop from a wide range of Local and Imported variety of makeup removers and makeup remover online from Al-Fatah. Shop from a diversified range of makeup removers and makeup remover wipes from all top brands. Buy the best for your skin. Avail Free Delivery on orders above 1000 PKR for selected cities in Pakistan.
ReplyDeleteHire Best Packers And Movers Mumbai for hassle-free Household Shifting, ***Office Relocation, ###Car Transporation, Loading Unloading, packing Unpacking at affordable ✔✔✔Price Quotation. Top Rated, Safe and Secure Service Providers who can help you with 24x7 and make sure a Untroubled Relocation Services at Cheapest/Lowest Rate @ Packers and Movers Mumbai
ReplyDeletePackaging town is a one stop solution for the short-run custom pillow boxes needs and supplies. At affordable prices. Request a free quote now.
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom bath bomb boxes wholesale sooner than any other packaging competitor in the market
ReplyDeleteBuy active wear online pakistan from dshred at easy prices delivered at your doorstep. Get free shipping.
ReplyDeletebuy sports inner wear for ladies online from dshred at easy prices delivered at your doorstep. Get free shipping
ReplyDeleteNDURE presents the ultimate fashion formula for men in the form of mens shorts. Get the best chino shorts from NDURE that are not only sports shorts but also great for everyday wear. Our wide range of shorts for men is crafted keeping in mind your comfort. So shop online to get your hands on the best shorts in Pakistan.
ReplyDeletebuy tank tops for girls online from Dshred at easy prices delivered at your doorstep. Get free shipping
ReplyDeleteYour site is the best source of information, it was very helpful. Thanks for sharing.
ReplyDeleteAlso visit Clashmod.
Buy juicer blender from Al-Fatah at best prices delivered at your doorstep. Get free shipping
ReplyDeleteit's a very informative post. thanks for sharing it. it's very helpful for me. Also check out Kinemaster mod
ReplyDeleteShop for a huge range of makeup online and skin care products for both men and women at Al-Fatah, Pakistan’s leading chain of departmental stores. Shop from a huge range of top brands Women’s cosmetics and skin care products for both men and women from Al-Fatah. Free Delivery on orders above 1000 PKR in selected cities.
ReplyDeletebuy Electronics Online in lahore from Al-Fatah at best prices delivered at your doorstep. Get free shipping.
ReplyDeleteThanks for the detailed article on this topic. I would like to see more such awesome articles from you. Also you can get the new and best features of FMWhatsapp which are coming in 2022-
ReplyDeleteFMWhatsapp APK
Thank you so much for sharing this. Would love to see more of these in the future. Keep up the good work! GBWhatsapp is also the best app right now! Can you make a guide on it!
ReplyDeleteThanks for this info. Please check this: https://somaapp.org/fouad-whatsapp-download/
ReplyDeleteEnem has the best available lingerie in Pakistan. So grab these amazing girls bras online from Enem Mall right now With Enem Mall, you can easily get the best luxury womens lingerie with ease.
ReplyDelete