Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:29:19+00:00 2026-06-14T16:29:19+00:00

I would like to manage my Azure Cloud Services programmatically. I am aware of

  • 0

I would like to manage my Azure Cloud Services programmatically.

I am aware of the REST API but I am wondering if the is a native C# API available just like there is with Azure Storage.

REST API – Operations on Hosted Services: http://msdn.microsoft.com/en-us/library/windowsazure/ee460812.aspx

Or do I need to wrap the REST API myself as described in the post below?

Azure – Cannot programmatically perform VIP Swap: Azure – Cannot programmatically perform VIP Swap

Thanks.


Edit:

The CSManage suggestion helped me a lot.

You can reuse the ServiceManagement project and write your own client (instead of CSManage).

Use the ServiceManagementHelper to setup a channel to execute the commands.

Example:

    public static string SubscriptionId { get; set; }
    public static string CertificateThumbprint { get; set; }

    public static X509Certificate2 Certificate { get; set; }

    private void button1_Click(object sender, EventArgs e)
    {
        SubscriptionId = ConfigurationManager.AppSettings["SubscriptionId"];
        CertificateThumbprint = ConfigurationManager.AppSettings["CertificateThumbprint"];

        X509Store certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
        certificateStore.Open(OpenFlags.ReadOnly);
        X509Certificate2Collection certs = certificateStore.Certificates.Find(X509FindType.FindByThumbprint, CertificateThumbprint, false);
        if (certs.Count != 1)
        {
            MessageBox.Show("Client certificate cannot be found. Please check the config file. ");
            return;
        }
        Certificate = certs[0];

        // List Hosted Services
        var channel = ServiceManagementHelper.CreateServiceManagementChannel("WindowsAzureEndPoint", Certificate);
        var lhs = channel.ListHostedServices(SubscriptionId);
        foreach (HostedService hs in lhs)
        {
            MessageBox.Show(hs.ServiceName);
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:29:20+00:00Added an answer on June 14, 2026 at 4:29 pm

    I’ve had a very similar requirement and unfortunately there is no wrapper that lets you do this, the one mentioned in the other answer only has table/blob/queue support.

    However there is a neat solution called csmanage, it’s a command prompt application that uses the REST API under the hood lets you manage pretty much anything on Azure; you can view the source and see how it’s done and how to implement it yourself.

    Link to CSManage on MSDN

    Word of warning: it’s quite a task to grasp the flow of the application but once you get going, it gets easier.

    Hint: Have a look at CSManageCommand.cs on line 104 is where the magic starts to happen, they’re using WCF to communicate with the API which you can see in app.config.

    If you’re looking to use certain known command you can see they’re presented in the following classes:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use SQL Enterprise Manager to manage my SQL Azure Databases.
We would like to manage AWS users billing cycles. Does AWS provide an API
Good day! I would like to use the Magento’s SOAP API to manage the
I would like to know if there is an existent framework which can manage
I would like to create a table that looks/behaves like the one to manage
Rather than reinvent the wheel I would like to use Outlook to manage my
I would like to manage the deploy of stored procedures by first inserting them
I have installed Eclipse Helios on my linux workstation and would like to manage
I would like to customize the files and folders created when running python manage.py
I have a MySQL database (currently using phpmyadmin to manage) that I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.