az logz sub-account
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 sub-account command. Learn more about extensions.
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage sub account with logz.
Commands
Name | Description | Type | Status |
---|---|---|---|
az logz sub-account create |
Create sub account under a given monitor resource. |
Extension | Experimental |
az logz sub-account delete |
Delete a sub account resource. |
Extension | Experimental |
az logz sub-account list |
List the sub account under a given monitor resource. |
Extension | Experimental |
az logz sub-account list-payload |
List the payload that needs to be passed as a request for installing Logz.io agent on a VM. |
Extension | Experimental |
az logz sub-account list-resource |
List the resources currently being monitored by the Logz sub account resource. |
Extension | Experimental |
az logz sub-account list-vm |
List the compute resources currently being monitored by the Logz sub account resource. |
Extension | Experimental |
az logz sub-account show |
Get a sub account under a given monitor resource. |
Extension | Experimental |
az logz sub-account update |
Update a monitor resource. |
Extension | Experimental |
az logz sub-account update-vm |
Update the collection when Logz.io agent has been installed on a VM for a given monitor. |
Extension | Experimental |
az logz sub-account wait |
Place the CLI in a waiting state until a condition of the logz sub-account is met. |
Extension | Experimental |
az logz sub-account create
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create sub account under a given monitor resource.
az logz sub-account create --monitor-name
--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
subAccount_Create
az logz sub-account create --monitor-name "myMonitor" --type "Microsoft.Logz/monitors" --location "West US" --monitoring-status "Enabled" --tags Environment="Dev" --resource-group "myResourceGroup" --name "SubAccount1"
Required Parameters
Monitor resource name.
Sub Account 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 sub-account delete
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a sub account resource.
az logz sub-account delete [--ids]
[--monitor-name]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
SubAccount_Delete
az logz sub-account delete --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "someName"
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.
Sub Account 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 sub-account list
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the sub account under a given monitor resource.
az logz sub-account list --monitor-name
--resource-group
Examples
SubAccount_List
az logz sub-account list --monitor-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 sub-account 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 as a request for installing Logz.io agent on a VM.
az logz sub-account list-payload --monitor-name
--name
--resource-group
Examples
SubAccount_VMHosts_Payload
az logz sub-account list-payload --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1"
Required Parameters
Monitor resource name.
Sub Account 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 sub-account 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 sub account resource.
az logz sub-account list-resource --monitor-name
--name
--resource-group
Examples
SubAccount_MonitoredResources_List
az logz sub-account list-resource --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1"
Required Parameters
Monitor resource name.
Sub Account 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 sub-account 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 sub account resource.
az logz sub-account list-vm --monitor-name
--name
--resource-group
Examples
SubAccount_VMHosts_List
az logz sub-account list-vm --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1"
Required Parameters
Monitor resource name.
Sub Account 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 sub-account show
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a sub account under a given monitor resource.
az logz sub-account show [--ids]
[--monitor-name]
[--name]
[--resource-group]
[--subscription]
Examples
SubAccount_Get
az logz sub-account show --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1"
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.
Sub Account 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 sub-account update
Command group 'logz' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a monitor resource.
az logz sub-account update [--ids]
[--monitor-name]
[--monitoring-status {Disabled, Enabled}]
[--name]
[--resource-group]
[--subscription]
[--tags]
Examples
SubAccount_Update
az logz sub-account update --monitor-name "myMonitor" --monitoring-status "Enabled" --tags Environment="Dev" --resource-group "myResourceGroup" --name "SubAccount1"
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.
Sub Account 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
.
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 sub-account 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 sub-account update-vm [--ids]
[--monitor-name]
[--name]
[--resource-group]
[--state {Delete, Install}]
[--subscription]
[--vm-resource-ids]
Examples
SubAccount_VMHosts_Update
az logz sub-account update-vm --monitor-name "myMonitor" --state "Install" --resource-group "myResourceGroup" --name "SubAccount1"
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.
Sub Account 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 sub-account 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 sub-account is met.
az logz sub-account wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--monitor-name]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the logz sub-account is successfully created.
az logz sub-account wait --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1" --created
Pause executing next line of CLI script until the logz sub-account is successfully deleted.
az logz sub-account wait --monitor-name "myMonitor" --resource-group "myResourceGroup" --name "SubAccount1" --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.
Sub Account 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.