Remove deprecated Azure Log Analytics sample functions#34
Closed
Remove deprecated Azure Log Analytics sample functions#34
Conversation
The Azure Log Analytics connector is deprecated by Microsoft. Removed sample functions, DI registration, configuration options, and settings template entries. Use Azure Monitor Logs connector instead. Co-authored-by: Dobby <dobby@microsoft.com>
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated Azure Log Analytics connector sample from the DirectConnector/ Azure Functions app and updates the remaining samples to use the Microsoft.Azure.Connectors.Sdk.* connector namespaces instead of Microsoft.Azure.Connectors.DirectClient.*.
Changes:
- Deleted the Azure Log Analytics sample functions and removed its DI/options/config entries.
- Migrated sample code imports and XML docs from
DirectClientnamespaces toMicrosoft.Azure.Connectors.Sdk.*. - Updated the root README samples table to drop the Azure Log Analytics entry.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Removes Azure Log Analytics from the samples table (intro counts now need updating). |
| DirectConnector/AzureBlobFunctions.cs | Updates Azure Blob connector namespace to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/AzureLogAnalyticsFunctions.cs | Deletes the deprecated Azure Log Analytics sample functions. |
| DirectConnector/Configuration/ConnectorOptions.cs | Removes AzureLogAnalyticsOptions and the AzureLogAnalytics options property. |
| DirectConnector/ConnectorFunctions.cs | Updates Office365/SharePoint/Teams connector namespaces to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/ConnectorTriggerMetadataAttribute.cs | Updates XML doc reference to the new SDK namespace. |
| DirectConnector/DirectConnector.csproj | Switches from NuGet package reference to a local SDK ProjectReference (currently breaks clean builds). |
| DirectConnector/local.settings.json.template | Removes Azure Log Analytics connection settings. |
| DirectConnector/MqFunctions.cs | Updates MQ connector namespace to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/MsGraphFunctions.cs | Updates MS Graph connector namespace to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/Office365UsersFunctions.cs | Updates Office365 Users connector namespace to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/OneDriveFunctions.cs | Updates OneDrive connector namespace + alias to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/Program.cs | Removes Azure Log Analytics DI registration and migrates remaining connector usings to Microsoft.Azure.Connectors.Sdk.*. |
| DirectConnector/SmtpFunctions.cs | Updates SMTP connector namespace to Microsoft.Azure.Connectors.Sdk.* and adjusts XML docs. |
Co-authored-by: Dobby <dobby@microsoft.com>
Comment on lines
+17
to
20
| <!-- Temporary: consume local SDK branch for namespace-rename validation. | ||
| Revert to NuGet package reference after SDK v0.9.0 is published. --> | ||
| <ProjectReference Include="..\..\Connectors-NET-SDK-ns-rename\src\Microsoft.Azure.Connectors.Sdk\Microsoft.Azure.Connectors.Sdk.csproj" /> | ||
| </ItemGroup> |
Member
Author
|
Looks like we have problem we pending SDK side changes on namespace and other breaking change refactoring, so we might need to combine this PR with the next clean update to the SDK. |
daviburg
added a commit
to Azure/Connectors-NET-SDK
that referenced
this pull request
May 5, 2026
## Summary Remove the deprecated Azure Log Analytics connector (`azureloganalytics`) from the SDK. The [Azure Log Analytics connector](https://learn.microsoft.com/en-us/connectors/azureloganalytics/) and all its user-facing operations are deprecated by Microsoft. The generated client contained only internal discovery methods (ListSubscriptions, ListResourceGroups, ListWorkspaceNames, ListArmQueryResultsSchema) — hidden helpers with no user-facing API surface. Users should use the [Azure Monitor Logs](https://learn.microsoft.com/en-us/connectors/azuremonitorlogs/) connector instead. ## Changes - **Deleted** `AzureloganalyticsExtensions.cs` (generated client) and `AzureloganalyticsClientTests.cs` (tests) - **Removed** `Azureloganalytics` from `ConnectorNames.cs` and `ManagedConnectors.cs` - **Updated** CHANGELOG.md, README.md, ROADMAP.md, connection-setup SKILL.md ## Related PRs - **Samples:** Azure/Connectors-NET-Samples#34 — removes sample functions - **Generator guardrail:** https://msazure.visualstudio.com/One/_git/AzureUX-BPM/pullrequest/15620549 — prevents generating clients for effectively deprecated connectors ## Validation - `dotnet build` — 0 errors, 0 warnings - `dotnet test` — 202 passed, 0 failed (ConnectorNames_AllConstantsAreRegistered sync test passes) --------- Co-authored-by: Dobby <dobby@microsoft.com>
Member
Author
|
Closing — superseded by #40 which consolidates all SDK v0.9.0-preview.1 breaking changes, namespace migrations, and new features into a single PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove sample functions and configuration for the deprecated Azure Log Analytics connector.
The Azure Log Analytics connector is deprecated by Microsoft. Users should use Azure Monitor Logs instead.
Changes
Related PRs
Validation