az logz monitor
Note
This reference is part of the logz extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az logz monitor command. Learn more about extensions.
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage monitor with logz.
Commands
Name | Description | Type | Status |
---|---|---|---|
az logz monitor create |
Create a monitor resource. This create operation can take Get to complete. |
Extension | Experimental |
az logz monitor delete |
Delete a monitor resource. |
Extension | Experimental |
az logz monitor list |
List all monitors under the specified resource group. And List all monitors under the specified subscription. |
Extension | Experimental |
az logz monitor list-payload |
List the payload that needs to be passed in the request body for installing Logz.io agent on a VM. |
Extension | Experimental |
az logz monitor list-resource |
List the resources currently being monitored by the Logz monitor resource. |
Extension | Experimental |
az logz monitor list-role |
List the user's roles configured on Logz.io side for the account corresponding to the monitor resource. |
Extension | Experimental |
az logz monitor list-vm |
List the compute resources currently being monitored by the Logz main account resource. |
Extension | Experimental |
az logz monitor show |
Get the properties of a specific monitor resource. |
Extension | Experimental |
az logz monitor update |
Update a monitor resource. |
Extension | Experimental |
az logz monitor update-vm |
Update the collection when Logz.io agent has been installed on a VM for a given monitor. |
Extension | Experimental |
az logz monitor wait |
Place the CLI in a waiting state until a condition of the logz monitor is met. |
Extension | Experimental |
az logz monitor create
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a monitor resource. This create operation can take Get to complete.
az logz monitor create --monitor-name
--resource-group
[--location]
[--monitoring-status {Disabled, Enabled}]
[--no-wait]
[--org-properties]
[--plan-data]
[--subscription-status {Active, Suspended}]
[--tags]
[--type {SystemAssigned, UserAssigned}]
[--user-info]
Examples
Monitors_Create
az logz monitor create --name "myMonitor" --location "West US" --plan-data billing-cycle="Monthly" effective-date="2019-08-30T15:14:33+02:00" plan-details="logzapitestplan" usage-type="Committed" --user-info email-address="alice@microsoft.com" first-name="Alice" last-name="Bob" phone-number="123456" --tags Environment="Dev" --resource-group "myResourceGroup"
Required Parameters
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Flag specifying if the resource monitoring is enabled or disabled.
Do not wait for the long-running operation to finish.
Usage: --org-properties company-name=XX enterprise-app-id=XX single-sign-on-url=XX
company-name: Name of the Logz organization. enterprise-app-id: The Id of the Enterprise App used for Single sign on. single-sign-on-url: The login URL specific to this Logz Organization.
Usage: --plan-data usage-type=XX billing-cycle=XX plan-details=XX effective-date=XX
usage-type: different usage type like PAYG/COMMITTED. this could be enum billing-cycle: different billing cycles like MONTHLY/WEEKLY. this could be enum plan-details: plan id as published by Logz effective-date: date when plan was applied.
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Identity type.
Usage: --user-info first-name=XX last-name=XX email-address=XX phone-number=XX
first-name: First Name of the user last-name: Last Name of the user email-address: Email of the user used by Logz for contacting them if needed phone-number: Phone number of the user used by Logz for contacting them if needed.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor delete
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a monitor resource.
az logz monitor delete [--ids]
[--monitor-name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
Monitors_Delete
az logz monitor delete --name "myMonitor" --resource-group "myResourceGroup"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Monitor resource name.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor list
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all monitors under the specified resource group. And List all monitors under the specified subscription.
az logz monitor list [--resource-group]
Examples
Monitors_ListByResourceGroup
az logz monitor list --resource-group "myResourceGroup"
Monitors_List
az logz monitor list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor list-payload
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
az logz monitor list-payload --monitor-name
--resource-group
Examples
MainAccount_VMHosts_Payload
az logz monitor list-payload --name "myMonitor" --resource-group "myResourceGroup"
Required Parameters
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor list-resource
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the resources currently being monitored by the Logz monitor resource.
az logz monitor list-resource --monitor-name
--resource-group
Examples
MonitoredResources_List
az logz monitor list-resource --name "myMonitor" --resource-group "myResourceGroup"
Required Parameters
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor list-role
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
az logz monitor list-role --monitor-name
--resource-group
[--email-address]
Examples
MainAccount_VMHosts_Update
az logz monitor list-role --name "myMonitor" --resource-group "myResourceGroup"
Required Parameters
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Email of the user used by Logz for contacting them if needed.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor list-vm
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the compute resources currently being monitored by the Logz main account resource.
az logz monitor list-vm --monitor-name
--resource-group
Examples
MainAccount_VMHosts_List
az logz monitor list-vm --name "myMonitor" --resource-group "myResourceGroup"
Required Parameters
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor show
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get the properties of a specific monitor resource.
az logz monitor show [--ids]
[--monitor-name]
[--resource-group]
[--subscription]
Examples
Monitors_Get
az logz monitor show --name "myMonitor" --resource-group "myResourceGroup"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor update
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a monitor resource.
az logz monitor update [--ids]
[--monitor-name]
[--monitoring-status {Disabled, Enabled}]
[--resource-group]
[--subscription]
[--tags]
Examples
Monitors_Update
az logz monitor update --name "myMonitor" --monitoring-status "Enabled" --tags Environment="Dev" --resource-group "myResourceGroup"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Monitor resource name.
Flag specifying if the resource monitoring is enabled or disabled.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor update-vm
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update the collection when Logz.io agent has been installed on a VM for a given monitor.
az logz monitor update-vm [--ids]
[--monitor-name]
[--resource-group]
[--state {Delete, Install}]
[--subscription]
[--vm-resource-ids]
Examples
MainAccount_VMHosts_Update
az logz monitor update-vm --name "myMonitor" --state "Install" --resource-group "myResourceGroup"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Specifies the state of the operation - install/ delete.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Request of a list vm host update operation.
Usage: --vm-resource-ids id=XX agent-version=XX
id: Request of a list vm host update operation. agent-version: Version of the Logz agent installed on the VM.
Multiple actions can be specified by using more than one --vm-resource-ids argument.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az logz monitor wait
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Place the CLI in a waiting state until a condition of the logz monitor is met.
az logz monitor wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--monitor-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the logz monitor is successfully created.
az logz monitor wait --name "myMonitor" --resource-group "myResourceGroup" --created
Pause executing next line of CLI script until the logz monitor is successfully deleted.
az logz monitor wait --name "myMonitor" --resource-group "myResourceGroup" --deleted
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
Monitor resource name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.