Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,163 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to access workflow history using managed identity authentication in C#
But failing to fetch the logic app workflow details in the below code in the while loop
static async Task GetLogicApps()
{
// Authenticate and create the ArmClient instance.
var credential = new DefaultAzureCredential();
var armClient = new ArmClient(credential);
var subscription = await armClient.GetDefaultSubscriptionAsync();
// Get all LogicApps.
var logicAppsEnumerator = subscription.GetLogicWorkflowsAsync().GetAsyncEnumerator();
try
{
while (await logicAppsEnumerator.MoveNextAsync())
{
// For the current LogicApp, retrieve its run history.
var logicApp = logicAppsEnumerator.Current;
Console.WriteLine(logicApp.Data.Name);
var logicAppRuns = logicApp.GetLogicWorkflowRuns();
foreach (var logicAppRun in logicAppRuns)
{
Console.WriteLine($"... Start DateTime = {logicAppRun.Data.StartOn}, End DateTime = {logicAppRun.Data.EndOn}, Status = {logicAppRun.Data.Status}");
}
}
}
finally
{
await logicAppsEnumerator.DisposeAsync();
}
Console.Read();
}
In while loop unable to fetch the logic app workflow/workflow history details
is there a way to fetch the workflow history details using managed identities authentication?