I would like to retrieve all activity logs from Azure Portal. I started by trying with connections. I actually get my connections but I don't know how to get the related activity logs. Am I using the right API ?
var operation = networkClient.VirtualNetworkGatewayConnections.ListWithHttpMessagesAsync(resourceGroup);
if (operation != null)
{
var result = operation.Result;
if (result != null)
{
var body = result.Body;
foreach (Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayConnection connection in body)
{
Console.WriteLine(connection.Name);
}
}
} *This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (