I am currently looking at these examples here but can't get the Example to work as it complains about some invalid format.
The Preview example works find but requires me to have logged in via the azure CLI. I need the users of the application to be able to log in to the application wherever it is to authenticate to IOTCentral.
What API is used to do that - the Azure examples seem to either not work or rely on the az CLI to handle the log in.
Error from Example System.ArgumentException: ''authority' should be in URI format. Arg_ParamName_Name'
PreviewExample
namespace PreviewExamples {
internal class Program
{
private static void Main(string[] args)
{
// Using 'az login' first, and using 'az account set -s subscription'
var credential = new DefaultAzureCredential();
var subdomain = "app-name";
// Users example
// UserRoleOrgsExample.Run(subdomain, credential);
DeviceExample.Run(subdomain, credential);
}
}
}