Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CLI - Automation account replace-content is breaking on new line #29019

Open
michalczerwinski opened this issue May 24, 2024 · 4 comments
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Automation bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.

Comments

@michalczerwinski
Copy link

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

@michalczerwinski michalczerwinski added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label May 24, 2024
Copy link

Hi @michalczerwinski,

2.49.0 is not the latest Azure CLI(2.61.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.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label May 24, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented May 24, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. Automation labels May 24, 2024
@michalczerwinski
Copy link
Author

I confirmed it's still there in Azure CLI(2.61.0)

@michalczerwinski
Copy link
Author

I confirmed this also in the most recent env:

2024-05-24T06:35:16.1777743Z {
2024-05-24T06:35:16.2222204Z "azure-cli": "2.61.0",
2024-05-24T06:35:16.2252054Z "azure-cli-core": "2.61.0",
2024-05-24T06:35:16.2274698Z "azure-cli-telemetry": "1.1.0",
2024-05-24T06:35:16.2335048Z "extensions": {
2024-05-24T06:35:16.2364363Z "automation": "1.0.0b1",
2024-05-24T06:35:16.2388851Z "azure-devops": "1.0.0"
2024-05-24T06:35:16.2413249Z }
2024-05-24T06:35:16.2456203Z }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Automation bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants