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

Relative paths cannot be used in Get-ParameterTemplate #62

Open
ascott18 opened this issue Sep 5, 2019 · 1 comment
Open

Relative paths cannot be used in Get-ParameterTemplate #62

ascott18 opened this issue Sep 5, 2019 · 1 comment

Comments

@ascott18
Copy link

ascott18 commented Sep 5, 2019

Relative paths aren't being resolved relative to the current working directory. In this case, this was an admin PS session, which starts in C:\WINDOWS\system32

PS C:\src\sandbox> Get-ParameterTemplate -TemplateFile ./template.json | Out-File ./template.params.json
Get-ParameterTemplate : Could not find file 'C:\WINDOWS\system32\template.json'.
At line:1 char:1
+ Get-ParameterTemplate -TemplateFile ./template.json | Out-File ./temp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ParameterTemplate], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,LogicAppTemplate.ParamGenerator
@cody-at-coretek
Copy link

I am observing this, also -- does anyone have a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants