Functions editing in Sentinel/Log Analytics doesn't work anymore

Daniele Leopizzi 0 Reputation points
2026-07-30T09:44:31.0433333+00:00

When I select "load code to editor" to edit a workspace function in Sentinel/LogAnalytics, the code isn't loaded in a new dedicated tab, but in the current one and treated as brand new code, that I can only save as a new function.

This way I can't modify any existing workspace function, but only create new ones.

I've been observing this behavior since last Monday (July 27th)

Microsoft Security | Microsoft Sentinel
0 comments No comments

3 answers

Sort by: Most helpful
  1. Daniele Leopizzi 0 Reputation points
    2026-08-05T09:54:46.6733333+00:00

    Hi @Konstantinos Lianos ,

    Thank you for your reply.

    Following your suggestion, I also tried using a different browser, but the issue persists.

    Furthermore, this morning I encountered the same issue on another Azure subscription, where the “load to editor” command had been working perfectly just an hour earlier.

    I’ll try using the CLI, as you suggested, and let you know how it goes.

    Was this answer helpful?


  2. Konstantinos Lianos 665 Reputation points Student Ambassador
    2026-07-31T07:47:48.18+00:00

    Hi @Daniele Leopizzi

    This is not the expected behaviour. When Load function code is selected for an existing workspace function, the function name should appear in the editor tab and the Save option should allow the existing function to be updated. Save as function is intended for creating a new function

    First, please confirm that your account has the Log Analytics Contributor role, or the Microsoft.OperationalInsights/workspaces/savedSearches/write permission.

    If the permissions are correct and the same issue occurs in another browser or private session, this is likely a portal UI regression. As a temporary workaround, the existing function can be updated through Azure CLI:

    az monitor log-analytics workspace saved-search update \

    --resource-group "<resource-group>" \

    --workspace-name "<workspace-name>" \

    --name "<saved-search-resource-name>" \

    --saved-query "<updated-KQL-query>"

    Was this answer helpful?

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.