Open nimro opened 2 hours ago
Hi @nimro,
2.65.0 is not the latest Azure CLI(2.66.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
az rest
Describe the bug
When sending UTF-8 encoded text containing emoji characters (e.g.
β \u2705
orπ© \U0001f4a9
),az rest
fails with a character encoding error.Related command
az rest
Errors
Issue script & Debug output
Command:
az rest --method post --uri https://<servicebus url>/<topic name>/messages --body 'β ' --resource https://servicebus.azure.net
Debug output:Expected behavior
The request is sent successfully.
Environment Summary
azure-cli 2.65.0 *
core 2.65.0 * telemetry 1.1.0
Extensions: azure-devops 0.25.0 containerapp 0.3.41 front-door 1.0.17 serviceconnector-passwordless 0.3.11 storage-preview 0.8.3
Dependencies: msal 1.31.0 azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3' Extensions directory '/home/duncanblair/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Sep 25 2024, 11:33:44) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response