From 6287f450e4cbc0f08819fbf10dc0cd80a18d5b5e Mon Sep 17 00:00:00 2001 From: staleycyn <45440075+staleycyn@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:23:09 -0800 Subject: [PATCH] Update az104-06-vms-loop-template.json --- .../AllFiles/Lab06/az104-06-vms-loop-template.json | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json b/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json index 48a22d9d..354f2456 100644 --- a/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json +++ b/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json @@ -322,9 +322,6 @@ "publisher": "Microsoft.Compute", "type": "CustomScriptExtension", "typeHandlerVersion": "1.7", - "settings": { - "commandToExecute": "powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item 'C:\\inetpub\\wwwroot\\iisstart.htm' && powershell.exe Add-Content -Path 'C:\\inetpub\\wwwroot\\iisstart.htm' -Value $('Hello World from ' + $env:computername) && powershell.exe New-Item -Path "c:\inetpub\wwwroot" -Name "image" -Itemtype "Directory" && powershell.exe New-Item -Path "c:\inetpub\wwwroot\image\" -Name "iisstart.htm" -ItemType "file" && powershell.exe -Add-Content -Path 'C:\inetpub\\wwwroot\image\iisstart.htm' -Value $('Images from: ' + $env:computername))" }, "protectedSettings": {} } @@ -343,8 +340,9 @@ Add-Content -Path 'C:\inetpub\\wwwroot\image\iisstart.htm' -Value $('Images from "type": "CustomScriptExtension", "typeHandlerVersion": "1.7", "settings": { - "commandToExecute": "powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item 'C:\\inetpub\\wwwroot\\iisstart.htm' && powershell.exe Add-Content -Path 'C:\\inetpub\\wwwroot\\iisstart.htm' -Value $('Hello World from ' + $env:computername) && powershell.exe New-Item -Path "c:\inetpub\wwwroot" -Name "video" -Itemtype "Directory" && powershell.exe New-Item -Path "c:\inetpub\wwwroot\video\" -Name "iisstart.htm" -ItemType "file" && powershell.exe -Add-Content -Path 'C:\inetpub\\wwwroot\video\iisstart.htm' -Value $('Images from: ' + $env:computername))" + "settings": { + "commandToExecute": "powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item 'C:\\inetpub\\wwwroot\\iisstart.htm' && powershell.exe Add-Content -Path 'C:\\inetpub\\wwwroot\\iisstart.htm' -Value $('Hello World from ' + $env:computername) && powershell.exe New-Item -Path "c:\inetpub\wwwroot" -Name "image" -Itemtype "Directory" && powershell.exe New-Item -Path "c:\inetpub\wwwroot\image\" -Name "iisstart.htm" -ItemType "file" && powershell.exe +Add-Content -Path 'C:\inetpub\\wwwroot\image\iisstart.htm' -Value $('Images from: ' + $env:computername))" }, "protectedSettings": {} } @@ -363,8 +361,9 @@ Add-Content -Path 'C:\inetpub\\wwwroot\video\iisstart.htm' -Value $('Images from "type": "CustomScriptExtension", "typeHandlerVersion": "1.7", "settings": { - "commandToExecute": "powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item 'C:\\inetpub\\wwwroot\\iisstart.htm' && powershell.exe Add-Content -Path 'C:\\inetpub\\wwwroot\\iisstart.htm' -Value $('Hello World from ' + $env:computername) && powershell.exe New-Item -Path "c:\inetpub\wwwroot" -Name "video" -Itemtype "Directory" && powershell.exe New-Item -Path "c:\inetpub\wwwroot\video\" -Name "iisstart.htm" -ItemType "file" && powershell.exe -Add-Content -Path 'C:\inetpub\\wwwroot\video\iisstart.htm' -Value $('Images from: ' + $env:computername))" + "settings": { + "commandToExecute": "powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item 'C:\\inetpub\\wwwroot\\iisstart.htm' && powershell.exe Add-Content -Path 'C:\\inetpub\\wwwroot\\iisstart.htm' -Value $('Hello World from ' + $env:computername) && powershell.exe New-Item -Path "c:\inetpub\wwwroot" -Name "image" -Itemtype "Directory" && powershell.exe New-Item -Path "c:\inetpub\wwwroot\image\" -Name "iisstart.htm" -ItemType "file" && powershell.exe +Add-Content -Path 'C:\inetpub\\wwwroot\image\iisstart.htm' -Value $('Images from: ' + $env:computername))" }, "protectedSettings": {} }