Azure CLI - Automation account replace-content is breaking on new line
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
This bug is still there:
https://www.oikita.com/en/azure/393208
It was reported in 2021 and combined with bicep inability to upload local file for runbook content is a real pain...
### Related command
z automation runbook replace-content
### Errors
On windows agents it uses only first line of the file
### Issue script & Debug output
az automation runbook replace-content --automation-account-name "$environment-automation-account" --resource-group "$environment-din" --name "swap-main-server" --content "@$outputFile"
### Expected behavior
Full content should be uploaded, not only first line
### Environment Summary
azure-cli 2.49.0 *
core 2.49.0 *
telemetry 1.0.8 *
Extensions:
automation 0.2.2
azure-devops 0.26.0
azure-iot 0.21.2
resource-graph 2.1.0
storage-preview 0.9.0
Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.