-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Azure CLI - Automation account replace-content is breaking on new line #29019
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAutomationService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAutomationService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
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