Update az104-06-vms-loop-template.json

This commit is contained in:
staleycyn 2024-01-14 06:59:38 -08:00 committed by GitHub
parent 534dea41f6
commit cc25d8c41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,8 +340,8 @@
"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))"
"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 $('Image from: ' + $env:computername))"
}
"protectedSettings": {}
}
@ -360,8 +360,8 @@ Add-Content -Path 'C:\\inetpub\\wwwroot\\image\\iisstart.htm' -Value $('Images f
"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))"
"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\\image\\iisstart.htm' -Value $('Video from: ' + $env:computername))"
}
"protectedSettings": {}
}