There is an argument called cloudServiceName
when creating a new instance of SchedulerClient
, but there's no documentation available on where that value comes from and the Azure portal isn't helpful either.
Here's the code I have so far:
var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadWrite);
var certificate = store.Certificates.Find(X509FindType.FindByThumbprint, "[Thumbprint]", false)[0];
store.Close();
var cloudCreds = new CertificateCloudCredentials("[MySubscriptionId]", certificate);
var client = new SchedulerClient("[Where do I find this value]", "MyJobCollection", cloudCreds);