-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Export-AzAutomationRunbook Adding extra '\' to file names. #11101
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zjalexander |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zjalexander |
@AndreasMWalter, I didn't get the meaning of the last snapshot. What's the output folder resolved by cmdlet? |
Dear @dingmeng-xue The filename should be: Now I have been experimenting with this yesterday and there have been several interesting results: My Original Call was (without changing the script from Windows File references): Export-AzAutomationRunbook -OutputFolder .\temp Since I was in the working directory, the expected behaviour of above call was: Now this was not what happened, however for some reason the runbook was placed here: $env:SYSTEM_DEFAULTWORKINGDIRECTORY\temp\ 'temp\Invoke-Runbook.ps1' However 'temp\Invoke-Runbook.ps1' being the filename of the runbook for some odd reason. So I did some troubleshooting of the pipeline and made sure that the path were all Linux paths etc. and I reference environment variables where I could and the result was that the Export-AzAutomationRunbook cmdlet adds a ' \ ' at the beginning of the runbook name, as depicted in my earlier screenshot and reported in the issue #6999 . |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zjalexander |
Automation team, please check if file path should be resolved according to common ResolveUserPath api.
|
This is triaged and currently in the backlog, will consider it if resourcing allows. |
Unfortunately because of other priorities we were not able to pick this up, please expect an update in Q4CY20. |
Currently, team is busy with other high priority items and this would be picked up in CY2021 Q1. |
I'm experiencing this Issue as well on MacOS Catalina 10.16.7 |
I put together script to work around this issue while there is no official fix: |
@vikram-m Following up to see if there is any update on this issue? - Thank you |
@AndreasMWalter Apologies for the delay in response. This github thread has been open for quite sometime now. I just wanted to check if you still need assistance on this issue. Awaiting your reply. @vikram-m Could you please update us regarding the status of the fix ? |
I am following up with the Engineering team regarding the fix. This thread will be updated once we have more details. |
Closed with above PR. |
Description
I am currently running into an issue using a PowerShell script on the ubuntu18.04 worker in Azure DevOps.
This issue was reported as fixed in #6999
Steps to reproduce
You need a runbook that you want to export from any automation account
Environment data
Module versions
I have reduced the Module output to the Az.Automation module, rest can be found on the worker see above
Debug output
Error output
The text was updated successfully, but these errors were encountered: