ASP.NET Core - Application Insights with Cloud Role Name
In the ConfigureServices
method,
services.AddAppInsight(Configuration, "Project NAME API");
This will register application insights with the specified cloud role name. Cloud role name is useful when you have number of microservices reporting to the same Application Insights resource.