Forrest logo
back to the az tool

az-lock:tldr:8ec31

az-lock: Show a subscription level lock.
$ az lock show -n ${lock_name}
try on your machine

The command "az lock show -n ${lock_name}" is used in the Azure Command-Line Interface (CLI) to display information about a specific lock in Azure.

Here's what each part of the command means:

  • "az" invokes the Azure CLI.
  • "lock" indicates the Azure Lock Management command group.
  • "show" is the specific command used to display information about a lock.
  • "-n" is a parameter used to specify the name of the lock.
  • "${lock_name}" is a placeholder for the actual name of the lock you want to show.

To use this command, you need to replace "${lock_name}" with the name of the lock you want to review. For example, if the lock you want to see is named "my-lock", the command would be: "az lock show -n my-lock".

Running this command will provide you with detailed information about the specified lock, including its name, level, type, lock ID, resource group, etc.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool