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

Error: [Error] Error in executing command : out-file : Could not find a part of the path 'C:\Temp\847_validateCreateVM_20191031033849.ps1'. #4

Open
gerschinner opened this issue Oct 31, 2019 · 1 comment

Comments

@gerschinner
Copy link

ansible01:~/IaC/terraform$ terraform apply -auto-approve
scvmm_virtual_machine.CreateVM: Creating...

Error: [Error] Error in executing command : out-file : Could not find a part of the path 'C:\Temp\847_validateCreateVM_20191031033849.ps1'.
At line:1 char:1

  • echo "[CmdletBinding(SupportsShouldProcess=$true)]rnparam(r`n ...
  •   + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
      + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
    
    

C:\Temp\847_validateCreateVM_20191031033849.ps1 : The term 'C:\Temp\847_validateCreateVM_20191031033849.ps1' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1

  • C:\Temp\847_validateCreateVM_20191031033849.ps1 "SCVMMCLU" "TESTWS201 ...
  •   + CategoryInfo          : ObjectNotFound: (C:\Temp\847_val...91031033849.ps1:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

rm : Cannot find path 'C:\Temp\847_validateCreateVM_20191031033849.ps1' because it does not exist.
At line:1 char:1

  • rm C:\Temp\847_validateCreateVM_20191031033849.ps1
  •   + CategoryInfo          : ObjectNotFound: (C:\Temp\847_val...91031033849.ps1:String) [Remove-Item], ItemNotFoundEx 
     ception
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
    
    
    
    on main.tf line 10, in resource "scvmm_virtual_machine" "CreateVM":
    10: resource "scvmm_virtual_machine" "CreateVM" {
    
@Alekskey
Copy link

Just make a Temp directory.

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