Skip to content

Improve help documentation for 5 monitor commands#33197

Closed
RenSilvaAU wants to merge 1 commit intoAzure:devfrom
RenSilvaAU:improve-help-monitor-20260416-031840
Closed

Improve help documentation for 5 monitor commands#33197
RenSilvaAU wants to merge 1 commit intoAzure:devfrom
RenSilvaAU:improve-help-monitor-20260416-031840

Conversation

@RenSilvaAU
Copy link
Copy Markdown
Contributor

Azure CLI Help Documentation Improvements

This PR improves help documentation for commands with the lowest quality scores.

Summary

Command Original Score New Score
monitor log-profiles list 3.0/10 7/10
monitor diagnostic-settings subscription list 3.0/10 8/10
monitor activity-log list-categories 3.0/10 7/10
monitor log-profiles show 4.0/10 7/10
monitor diagnostic-settings subscription show 4.0/10 6/10

monitor log-profiles list

Original help (score: 3.0/10)
Command: monitor log-profiles list
======================================================================
name: monitor log-profiles list
is_aaz: True
desc: List the log profiles.
parameters:
Improved help (score: 7/10)

Azure CLI Command: monitor log-profiles list

Description

The monitor log-profiles list command retrieves a list of all log profiles in your Azure account. Log profiles define and manage the settings and destinations for your activity logs, providing insights into operations performed within your Azure resources.

Usage

Run this command to view all log profiles configured in your account. This helps in auditing, monitoring, and analyzing activities across different Azure services.

Examples

Example 1: List all log profiles

az monitor log-profiles list

This command lists all log profiles without any filtering or additional parameters. Useful for getting an overview of all the log profile configurations in your Azure account.

Example 2: List log profiles with output formatted as table

az monitor log-profiles list --output table

This example lists all log profiles and formats the output as a table for a more readable display.

Example 3: List log profiles with output in JSON format

az monitor log-profiles list --output json

In this usage, the log profiles are displayed in JSON format, which can be useful for programmatic processing or when integrating with other tools.

Additional Information

  • Use the Azure CLI's global parameters to format the output, such as --output for specifying JSON, table, TSV, etc.

For more comprehensive usage details, refer to the Azure CLI documentation for the monitor log-profiles list command.


monitor diagnostic-settings subscription list

Original help (score: 3.0/10)
Command: monitor diagnostic-settings subscription list
======================================================================
name: monitor diagnostic-settings subscription list
is_aaz: True
desc: Gets the active subscription diagnostic settings list for the specified subscriptionId. :keyword callable cls: A custom type or function that will be passed the direct response:return: SubscriptionDiagnosticSettingsResourceCollection or the result of cls(response):rtype:  ~$(python-base-namespace).v2017_05_01_preview.models.SubscriptionDiagnosticSettingsResourceCollection:raises ~azure.core.exceptions.HttpResponseError:.
parameters:
Improved help (score: 8/10)

Azure CLI Command: monitor diagnostic-settings subscription list

Description

Retrieves the list of active diagnostic settings for a specified subscription ID in Azure Monitor.

Usage

Use this command to list all diagnostic settings configured for your Azure subscription. This can help you audit configuration and ensure proper logging and monitoring are set up.

Command Syntax

az monitor diagnostic-settings subscription list --subscription-id <subscriptionId>

Parameters

  • --subscription-id (required): The unique identifier of the Azure subscription for which you want to list the diagnostic settings.

Examples

  1. List Diagnostic Settings for a Subscription

    az monitor diagnostic-settings subscription list --subscription-id 12345-abcde-6789-fghij-0123456789
    

    Retrieves all diagnostic settings for the subscription specified by the subscription ID 12345-abcde-6789-fghij-0123456789.

  2. Using Environment Variable for Subscription ID

    az monitor diagnostic-settings subscription list --subscription-id $AZURE_SUBSCRIPTION_ID
    

    Uses the environment variable AZURE_SUBSCRIPTION_ID to specify the subscription ID, providing a convenient method for scripting or automation setups.

Notes

  • Ensure you have access rights to the subscription to successfully retrieve diagnostic settings.
  • The command requires Azure CLI version supporting aaz commands.

Errors

  • HttpResponseError: Occurs if there is a problem with the HTTP response, such as issues with permissions or an incorrect subscription ID.

monitor activity-log list-categories

Original help (score: 3.0/10)
Command: monitor activity-log list-categories
======================================================================
name: monitor activity-log list-categories
is_aaz: True
desc: List the list of available event categories supported in the Activity Logs Service.
parameters:
  Item 1:
    name: _change_reference
    options:
      - --change-reference
    desc: The related change reference ID for this resource operation
  Item 2:
    name: _acquire_policy_token
    options:
      - --acquire-policy-token
    desc: Acquiring an Azure Policy token automatically for this resource operation
Improved help (score: 7/10)

Azure CLI - monitor activity-log list-categories

Description

The monitor activity-log list-categories command retrieves a list of available event categories supported in the Azure Activity Logs Service. This information can help you understand what types of activities are logged in your Azure environment.

Parameters

  • --change-reference: Specify the related change reference ID for this resource operation.
  • --acquire-policy-token: Use this parameter to automatically acquire an Azure Policy token for this resource operation.

Examples

Example 1: Basic Use

List all event categories available in the Activity Logs Service.

az monitor activity-log list-categories

Example 2: Specifying a Change Reference

Retrieve the event categories using a specific change reference ID.

az monitor activity-log list-categories --change-reference <change_reference_id>

Example 3: Acquiring Policy Token

Acquire an Azure Policy token automatically while listing event categories.

az monitor activity-log list-categories --acquire-policy-token

monitor log-profiles show

Original help (score: 4.0/10)
Command: monitor log-profiles show
======================================================================
name: monitor log-profiles show
is_aaz: True
desc: Get the log profile.
parameters:
  Item 1:
    name: name
    options:
      - --name
      - -n
    required: True
    id_part: name
    desc: The name of the log profile.
    aaz_type: string
    type: string
Improved help (score: 7/10)

monitor log-profiles show

Description

Retrieve a specific log profile from Azure Monitor.

Parameters

--name | -n

  • Description: Specifies the name of the log profile to be retrieved.
  • Required: Yes
  • Type: String

Examples

Example 1: Retrieve a log profile by name

az monitor log-profiles show --name MyLogProfile

Example 2: Retrieve a log profile using short option

az monitor log-profiles show -n MyLogProfile

Important Notes

  • Ensure the log profile name is correct to successfully retrieve the desired configuration.
  • This command is part of Azure Monitor management functionality and requires appropriate permissions.

monitor diagnostic-settings subscription show

Original help (score: 4.0/10)
Command: monitor diagnostic-settings subscription show
======================================================================
name: monitor diagnostic-settings subscription show
is_aaz: True
desc: Gets the active subscription diagnostic settings for the specified resource.
parameters:
  Item 1:
    name: name
    options:
      - --name
      - -n
    required: True
    id_part: name
    desc: The name of the diagnostic setting.
    aaz_type: string
    type: string
Improved help (score: 6/10)

monitor diagnostic-settings subscription show

Description

Retrieve the active diagnostic settings for a subscription-level resource.

Parameters

  • --name or -n: Specify the name of the diagnostic setting to retrieve. This parameter is required.

Examples

  • Show the diagnostic settings for a subscription resource:

    az monitor diagnostic-settings subscription show --name MyDiagnosticSetting
  • Using the short-form parameter:

    az monitor diagnostic-settings subscription show -n MyDiagnosticSetting

Use this command to obtain details about diagnostic settings, which help in monitoring and diagnosing the health and performance of subscription resources.

Generated by: Azure CLI Help Improver

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Apr 16, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Apr 16, 2026

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Apr 16, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants