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

Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext

public sealed class CloudContext
Encapsulates information about a cloud where an application is running.
public string RoleInstance { get; set; }

Gets or sets the role instance.

public string RoleName { get; set; }

Gets or sets the role name.