az vm boot-diagnostics get-boot-log: Output is a mess with managed storage account #29374
Labels
Auto-Assign
Auto assign by bot
Compute
az vm/vmss/image/disk/snapshot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Milestone
Describe the bug
If you use managed storage account for boot-diagnostics on a linux vm, the output of
is a mess. E.g. it contains linefeed characters and plain unicode character instead of line breaks or dissolve those characters.
Tested with centos 9 stream and suse linux enterprise server 15 SP5.
With a custom storage account, the output is ok.
If you use the linux curl command on the serialConsoleLogBlobUri received by
the output is ok in both cases. E.g.
Related command
Step to reproduce
Enable boot-diagnostics with managed storage account (omit --storage parameter)
The blob is created if new output is printed to the console. To trigger this:
Wait 5min (the blob needs time until it is created)
Get the boot log output:
Do the same with a custom storage account, the output is ok.
Errors
see above
Issue script & Debug output
The issue is easy to reproduce and a debug log can be created by following the steps to reproduce.
In the debug log you see that the az cli gets the serialConsoleLogBlobUri, the connects with urllib3.connectionpool connection to retrieve the log
If we do the same, but use curl, it works:
Expected behavior
Format should be ok in both cases, similar to linux curl
Environment Summary
az --version
azure-cli 2.62.0
core 2.62.0
telemetry 1.1.0
Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1
Python location 'xxx/azurecli/bin/python3.11'
Extensions directory 'xxx/.azure/yyy/cliextensions'
Python (Linux) 3.11.9 (main, Jun 11 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: