terraform-provider-scvmm
terraform-provider-scvmm copied to clipboard
Error: [Error] Error in executing command : out-file : Could not find a part of the path 'C:\Temp\847_validateCreateVM_20191031033849.ps1'.
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" {
Just make a Temp directory.