-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add application insights connection string support - APPLICATIONINSIGHTS_CONNECTION_STRING #19855
base: master
Are you sure you want to change the base?
Add application insights connection string support - APPLICATIONINSIGHTS_CONNECTION_STRING #19855
Conversation
…s-connection-string
Tasks/AzureFunctionAppV1/operations/ReleaseAnnotationUtility.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the Task.json as mentioned?
Sure, I just did, and updated issue template too. Feel free to point any mistake I would have made in the process of course! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me from the Function side of things. Thanks for the contribution.
…s-connection-string # Conflicts: # Tasks/AzureRmWebAppDeploymentV3/task.json # Tasks/AzureRmWebAppDeploymentV3/task.loc.json # Tasks/AzureRmWebAppDeploymentV4/task.json # Tasks/AzureRmWebAppDeploymentV4/task.loc.json # _generated/AzureRmWebAppDeploymentV3.versionmap.txt # _generated/AzureRmWebAppDeploymentV3/task.json # _generated/AzureRmWebAppDeploymentV3/task.loc.json # _generated/AzureRmWebAppDeploymentV3_Node20/task.json # _generated/AzureRmWebAppDeploymentV3_Node20/task.loc.json # _generated/AzureRmWebAppDeploymentV4.versionmap.txt # _generated/AzureRmWebAppDeploymentV4/task.json # _generated/AzureRmWebAppDeploymentV4/task.loc.json # _generated/AzureRmWebAppDeploymentV4_Node20/task.json # _generated/AzureRmWebAppDeploymentV4_Node20/task.loc.json
hi @jvano, @dannysongg, @manolerazvan, @patelchandni, Could you guide me on how to have this pr be reviewed and integrated ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…s-connection-string
Thanks @jvano, @manolerazvan ! @dannysongg, @patelchandni, could you please take a look ? |
Hello @Greybird I think in this instance Joaquin and Danny are part of the Web Apps task team and Chandni and I are part of the Functions team so just one approval is probably needed from each team. |
@FinVamp1, you are right, sorry, I suppose there is nothing left for me to do currently, as checks now have to run, which I believe depends on some validation on Microsoft side ? Thanks again for your guidance with the process ! |
Hello, I updated sprint to 241. |
Hi @Greybird |
Hi @v-schhabra , Thanks for pointing this. Indeed the merge with master collided with changes, and I forgot to apply versioning to these task.json files. |
Forgot to answer your question @v-schhabra: yes I conducted tests by publishing these tasks under new guids to a private org, and they worked. |
Hi @v-schhabra, |
…s-connection-string # Conflicts: # Tasks/AzureFunctionAppContainerV1/task.json # Tasks/AzureFunctionAppContainerV1/task.loc.json # Tasks/AzureFunctionAppV1/task.json # Tasks/AzureFunctionAppV1/task.loc.json # Tasks/AzureFunctionAppV2/task.json # Tasks/AzureFunctionAppV2/task.loc.json # Tasks/AzureWebAppV1/task.json # Tasks/AzureWebAppV1/task.loc.json # _generated/AzureFunctionAppContainerV1.versionmap.txt # _generated/AzureFunctionAppContainerV1/task.json # _generated/AzureFunctionAppContainerV1/task.loc.json # _generated/AzureFunctionAppContainerV1_Node20/task.json # _generated/AzureFunctionAppContainerV1_Node20/task.loc.json # _generated/AzureFunctionAppV1.versionmap.txt # _generated/AzureFunctionAppV1/task.json # _generated/AzureFunctionAppV1/task.loc.json # _generated/AzureFunctionAppV1_Node20/task.json # _generated/AzureFunctionAppV1_Node20/task.loc.json # _generated/AzureFunctionAppV2.versionmap.txt # _generated/AzureFunctionAppV2/task.json # _generated/AzureFunctionAppV2/task.loc.json # _generated/AzureFunctionAppV2_Node20/task.json # _generated/AzureFunctionAppV2_Node20/task.loc.json # _generated/AzureWebAppV1.versionmap.txt # _generated/AzureWebAppV1/task.json # _generated/AzureWebAppV1/task.loc.json # _generated/AzureWebAppV1_Node20/task.json # _generated/AzureWebAppV1_Node20/task.loc.json
Hi @v-schhabra , As this PR fixes a Microsoft-introduced issue following a change of recommendation regarding how Application Insights should be declared on infrastructure, I would expect a more straightforward road to a merge, especially as code owners validated the content already. If not being part of microsoft is what makes it impossible to have the build pipelines pass, then is there a way to have someone from Microsoft (you?) create another PR with the same content to make this PR mergeable ? Thanks for the input on this matter, |
@Greybird I've merged your changes into the Functions Apps V2 task as part of this PR for other work. #20191 @v-schhabra and @manolerazvan can you help Arnaud get the rest of his changes in? This is an important community contribution I think that will help as indicated above. |
Apologies for replying late. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we ensure unit tests are covering both the old and the new scenarios ? especially different formats of APPLICATIONINSIGHTS_CONNECTION_STRING ?
Sure, will check Razvan. |
…s-connection-string
ec70e29
to
e2caaec
Compare
Hi @v-schhabra , any news ? I rebased on master, and updated versions again. This leaves:
to update. |
Hi @Greybird |
Great news, thanks for your work on the subject! |
@dannysongg @jvano these leaves us with the following AzureFunctionAppContainerV1 Are you able to test the changes and merge them ? |
Task names:
Description:
The PR adds support for adding release annotations when the now recommended APPLICATIONINSIGHTS_CONNECTION_STRING setting is used on Azure, rather than the APPINSIGHTS_INSTRUMENTATIONKEY, for all tasks supporting this feature.
Documentation changes required:
I don't think so.
Added unit tests:
No.
I did not find tests for release annotation based on InstrumentationKey.
I had a hard time figuring how to add unit tests for the connection string use case, and tests seem to come from another zone of the code.
Happy to get guidance on the matter however.
Attached related issue:
#18796 (closed due to being stale, probably needs reopening)
Checklist: