az batch node service-logs
Manage the service log files of a Batch compute node.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az batch node service-logs upload |
Upload service logs from a specified Batch compute node. |
Core | GA |
az batch node service-logs upload
Upload service logs from a specified Batch compute node.
az batch node service-logs upload --node-id
--pool-id
[--account-endpoint]
[--account-key]
[--account-name]
[--container-url]
[--end-time]
[--json-file]
[--resource-id]
[--start-time]
Examples
Upload logs to a storage account SAS URL
az batch node service-logs upload --pool-id pool1 --node-id node1 --start-time 2025-01-13T00:00:00Z --container-url sas_url
Required Parameters
The ID of the Compute Node for which you want to get the Remote Desktop Protocol file. Required.
The ID of the Pool that contains the Compute Node. Required.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.
| Property | Value |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.
| Property | Value |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.
| Property | Value |
|---|---|
| Parameter group: | Batch Account Arguments |
The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified. Required.
| Property | Value |
|---|---|
| Parameter group: | Content Arguments |
The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime. Expected format is an ISO-8601 timestamp.
| Property | Value |
|---|---|
| Parameter group: | Content Arguments |
A file containing the content specification in JSON (formatted to match the respective REST API body). If this parameter is specified, all 'Content Arguments' are ignored.
The ARM resource id of the user assigned identity.
| Property | Value |
|---|---|
| Parameter group: | Content: Identity Reference Arguments |
The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. Required. Expected format is an ISO-8601 timestamp.
| Property | Value |
|---|---|
| Parameter group: | Content Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |