Skip to content

Warning that Microsoft.Azure.WebJobs.Extensions.ApplicationInsights is being used but it is not (explicitely?) used #2173

@tymtam2

Description

@tymtam2

I am chasing why a function that normally works starts reporting 404 after some period of time and I am looking through Availability and Performance at portal.azure.com and the mighty Functions that are not triggering detector.

The detector reporting an issue I cannot act upon.

It says

Exception Type Total Occurrences Exception Message Latest Timestamp
The Application Insights extension is no longer supported. Packa 1 The Application Insights extension is no longer supported. Package references to Microsoft.Azure.WebJobs.Extensions.ApplicationInsights can be removed. 2/28/2022 12:53:00 AM

image

However I don't reference this package. Referenced packages are:

  <ItemGroup>
    <PackageReference Include="Azure.Messaging.EventHubs" Version="5.6.2" />
    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
    <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
    <PackageReference Include="StackExchange.Redis" Version="2.2.88" />
    <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

The project is .NET6:

<PropertyGroup>
  <TargetFramework>net6.0</TargetFramework>
  <AzureFunctionsVersion>v4</AzureFunctionsVersion>
  <Nullable>enable</Nullable>
</PropertyGroup>

The function project references one project wich in turn references the following packages:

   <ItemGroup>
   <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
     <PrivateAssets>all</PrivateAssets>
     <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
   </PackageReference>
   <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
   <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406">
     <PrivateAssets>all</PrivateAssets>
     <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
   </PackageReference>
 </ItemGroup>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions