-
Notifications
You must be signed in to change notification settings - Fork 358
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
Support for Application Insights in the Azure Government Cloud [v3.x] #2263
Support for Application Insights in the Azure Government Cloud [v3.x] #2263
Comments
Copying my comment from issue #2265 here:
|
This is the sample I used and I can now see data. Still working on getting the log stream working correctly.
|
Updated startup.cs This should allow log streaming and the other functionality
|
Unfortunately it works only for AF V2 while we are running on V1.. |
How would I set the 3 URLs using Azure Functions V1. The example above is using V2. Is it possible in V1? |
Dependency Injection is a good solution for DotNet apps - I'd love to see support for other languages, having just encountered this issue with a NodeJs Function App. Ideally App Insights would be made aware of the environment-specific endpoints without user action. |
@fabiocav -- we need to get this on the schedule soon. We should expose EndpointAddress/ProfileQueryEndpoint/QuickPulseServiceEndpoint properties that we'll update the right pieces internally. |
Any idea on the size of this task? @ahmedelnably for thoughts on priority. |
The engineering work would be pretty small. We need to expose the 3 properties I mention above and funnel them down to, basically, the code above, but in the TelemetryConfiguration initialization code. I've never actually deployed anything to a gov cloud before, though, so we may need some help figuring out how to set that up and validate. |
@brettsam let me know if you need help testing this. I'd be happy to help! |
AI with the government cloud requires a change to point to the government AI endpoint:
"ApplicationInsights": { "InstrumentationKey": "instrumentationkey", "TelemetryChannel": { "EndpointAddress": "https://dc.applicationinsights.us/v2/track" } }
https://docs.microsoft.com/en-us/azure/azure-government/documentation-government-services-monitoringandmanagement#application-insights
We tried the settings below but because the config doesn't allow changes to the TelemetryChannel+ the EndpointAddress this does not work.
https://github.com/Azure/azure-webjobs-sdk/blob/dev/src/Microsoft.Azure.WebJobs.Logging.ApplicationInsights/ApplicationInsightsLoggerOptions.cs
The text was updated successfully, but these errors were encountered: