Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

List All Log Analytics Workspace Functions #29657

Open Kaloszer opened 2 months ago

Kaloszer commented 2 months ago

Feature Request: List All Log Analytics Workspace Functions

Related command

az monitor log-analytics workspace saved-search list

Is your feature request related to a problem? Please describe.

The current implementation of listing Log Analytics workspace functions is missing the built-in, non-modifiable functions. This makes it difficult to get a comprehensive view of all available functions in a workspace, especially those that are part of the default set and cannot be edited.

Describe the solution you'd like

I would like to see ALL functions when listing them, not just the ones that are editable. This should include:

  1. User-defined (custom) functions
  2. Built-in functions that come with the workspace
  3. Any other non-modifiable functions that are available in the workspace

Ideally, there should be a way to distinguish between these different types of functions in the output.

Describe alternatives you've considered

I've explored several alternatives but haven't found a satisfactory solution:

  1. Using the REST API directly: I couldn't find any endpoint that exposes all functions, including the non-modifiable ones. SavedSearches yields same results.

Additional context

Here's a screenshot showing the discrepancy between the functions visible in the Azure portal which are missing from response.

image

yonzhan commented 2 months ago

Thank you for opening this issue, we will look into it.