From f6af698ce93afe02353f7300db875f57ea4d8ecd Mon Sep 17 00:00:00 2001 From: wtcline-intc Date: Mon, 23 Feb 2026 11:43:50 -0800 Subject: [PATCH] Deprecate the Log Analytics callback plugin (#11505) * Deprecate the Log Analytics callback plugin The Azure Monitor "HTTP Data Collector API" has been deprecated by Microsoft. The old API has been replaced by the new "Logs Ingestion API", which will require a new callback plugin due to major differences between the APIs. * Apply suggestions from code review Co-authored-by: Felix Fontein * Apply suggestions from code review Co-authored-by: Felix Fontein --------- Co-authored-by: Felix Fontein --- changelogs/fragments/11505-loganalytics-deprecation.yml | 2 ++ meta/runtime.yml | 4 ++++ plugins/callback/loganalytics.py | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 changelogs/fragments/11505-loganalytics-deprecation.yml diff --git a/changelogs/fragments/11505-loganalytics-deprecation.yml b/changelogs/fragments/11505-loganalytics-deprecation.yml new file mode 100644 index 0000000000..f1d4d63bb4 --- /dev/null +++ b/changelogs/fragments/11505-loganalytics-deprecation.yml @@ -0,0 +1,2 @@ +deprecated_features: + - loganalytics callback plugin - is deprecated in favor of ``community.general.loganalytics_ingestion`` due to upcoming API changes in Azure Monitor (https://github.com/ansible-collections/community.general/pull/11505). diff --git a/meta/runtime.yml b/meta/runtime.yml index bfb7dce831..eda51118db 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -94,6 +94,10 @@ plugin_routing: tombstone: removal_version: 10.0.0 warning_text: The hipchat service has been discontinued and the self-hosted variant has been End of Life since 2020. + loganalytics: + deprecation: + removal_version: 14.0.0 + warning_text: The "HTTP Data Collector API" used by the plugin has been deprecated in Azure and replaced with the "Logs Ingestion API". Please migrate to the 'community.general.loganalytics_ingestion' plugin. osx_say: redirect: community.general.say stderr: diff --git a/plugins/callback/loganalytics.py b/plugins/callback/loganalytics.py index feacb59680..e31ef19c5d 100644 --- a/plugins/callback/loganalytics.py +++ b/plugins/callback/loganalytics.py @@ -35,6 +35,10 @@ options: ini: - section: callback_loganalytics key: shared_key +deprecated: + removed_in: 14.0.0 + why: The "HTTP Data Collector API" used by the plugin has been deprecated in Azure Monitor and replaced with the "Logs Ingestion API". + alternative: Please migrate to the P(community.general.loganalytics_ingestion#callback) plugin. """ EXAMPLES = r"""