<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext

public sealed class CloudContext
Encapsulates information about a cloud where an application is running.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation { public sealed class CloudContext { public string RoleName { get; set; } public string RoleInstance { get; set; } } }