New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Forbidden when connecting to Azure Storage with Application Insights Web Tracking HTTP Module #3460
Comments
@blueww Hey Wei, would you mind taking a look at this issue? |
To clarify, the problem wasn't related to real Azure Storage, but to Azure Storage Emulator. It was fixed in newest Microsoft.ApplicationInsights.Web NuGet package by adding |
@phawrylak @cormacpayne not sure how a workaround is being considered a fix. Can resolving this remain an issue and can we expect it to be resolved in future versions? I would hope so. |
@phawrylak I don't see how this is just a problem with the emulator. I'm running into this problem when connecting to actual Azure Storage, as I described on StackOverflow here |
I have upgraded Insights to version 2.4 and had seen the problem (using real azure storage, not an emulator). 2.3 version works fine. |
Hello we had a the same problem. Get always 403. After debugging for days I found that application insights added headers for the outging requests (because we track dependencies) to BLOB storage. Therefore the computed signature is not the same as the one in the. When I compare ApplicationInsights.config from environments where we don't have problems I see that we missed this part
|
@martijnbrands1978 Confirmed that fix too. Thanks! |
@martijnbrands1978 Confirmed, that fix the error, I couldn't create or make any write operations on containers or blobs. Thanks!! |
@martijnbrands1978 , thank you so much. That fixed the error, I was getting 403 exception while calling blob storage :) |
@martijnbrands1978 , thanks for the solution, i've used the below to ensure requests to storage account don't get any headers added by app insights
Other than the headers not being added, is there any other impact to app insights and dependency tracking by doing this fix. |
Category
Expected or Desired Behavior
Connection to Azure Storage should be possible when Application Insights Web Tracking HTTP Module is enabled.
Observed Behavior
Connecting to Azure Storage with Application Insights Web Tracking HTTP Module enabled ends with 403 Forbidden error: "The MAC signature found in the HTTP request is not the same as any computed signature".
Steps to Reproduce
Microsoft.ApplicationInsights.Web@2.4.0
andWindowsAzure.Storage@8.1.4
from NuGet.Add following connection string to web.config (configuration/connectionStrings):
<add name="StorageConnectionString" connectionString="UseDevelopmentStorage=true" />
Try to create new Azure BLOB Storage container using following code:
Version
ASP.NET MVC 5
Microsoft.ApplicationInsights.Web@2.4.0
WindowsAzure.Storage@8.1.4
Azure Storage Emulator@5.1
The text was updated successfully, but these errors were encountered: