<PackageReference Include="Microsoft.ApplicationInsights" Version="3.0.0-rc1" />

Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext

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.