Commit b032ff8
authored
Change use of DefaultAzureCredential to ManagedIdentityCredential for Azure Log Analytics (#2811)
## Why make this change?
- It resolves issue #2810
`ManagedIdentityCredential` class only authenticates with Azure Managed
Identity which makes it a better fit to use in AzureLogAnalytics than
`DefaultAzureCredential`.
## What is this change?
We stop using the `DefaultAzureCredential` class and instead start using
the `ManagedIdentityCredential` class.
Important Note: As of this moment with this change, the Azure Log
Analytics feature can only authenticate against system-assigned
identities.
## How was this tested?
- [ ] Integration Tests
- [ ] Unit Tests
- [X] Manual Tests
This change cannot be directly tested in the pipeline so it was tested
by using a VM and ensuring the logs are correctly sent to Azure Log
Analytics table.
- See #2787 for more information on how this was set up.
## Sample Request(s)
<img width="1028" height="448" alt="image"
src="https://github.com/user-attachments/assets/67221e39-4114-4fc2-ba72-1df3ed120b16"
/>1 parent 2885360 commit b032ff8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments