Skip to content

Commit 7042a97

Browse files
WIP
1 parent 9315a0b commit 7042a97

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/AzurePlatformSetup/SmallEnvironment/Create-SmallEnvironment.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,7 @@ $command2 = "powershell `"E:\Install\Install-PowerShellCore.ps1`" -ScriptDownloa
117117
$psCommand = "mkdir E:\Install;e:;cd e:\install;powershell -c '$command1';$command2;"
118118
$commandResult = Invoke-AzVMRunCommand -VM $vm -CommandId 'RunPowerShellScript' -ScriptString $psCommand
119119

120-
$ps7Command1 = "C:\Program Files\PowerShell\7\pwsh.exe"
120+
$ps7Command1 = "iwr -Uri `"https://raw.githubusercontent.com/OneBitSoftware/DevOps/refs/heads/main/scripts/AzurePlatformSetup/SmallEnvironment/Setup-SmallEnvironment`" -OutFile `"E:\Install\Setup-SmallEnvironment.ps1`""
121+
#$ps7Command1 = "& `"C:\Program Files\PowerShell\7\pwsh.exe`" -Command { Get-ChildItem }"
121122
$ps7CommandResult = Invoke-AzVMRunCommand -VM $vm -CommandId 'RunPowerShellScript' -ScriptString $ps7Command1
123+
$ps7CommandResult

scripts/AzurePlatformSetup/SmallEnvironment/Setup-SmallEnvironment renamed to scripts/AzurePlatformSetup/SmallEnvironment/Setup-SmallEnvironment.ps1

File renamed without changes.

0 commit comments

Comments
 (0)