Skip to content

Instantly share code, notes, and snippets.

@domgreen
Created April 16, 2011 16:12
Show Gist options
  • Save domgreen/923232 to your computer and use it in GitHub Desktop.
Save domgreen/923232 to your computer and use it in GitHub Desktop.
sample program to call out to the Azure ServiceManagementAPI from C#
namespace serviceManagementConsoleApplication
{
class Program
{
private const string subscriberID = "...";
static void Main(string[] args)
{
var serviceManagment = ServiceManagementHelper.CreateServiceManagementChannel("WindowsAzureEndPoint", new X509Certificate2("insertcert"));
var x = serviceManagment.ListHostedServices(subscriberID);
foreach (HostedService s in x)
{
Console.WriteLine(s.ServiceName);
}
Console.Read();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment