From 71451827e30bab04a618d29d4c7a76805bf209c9 Mon Sep 17 00:00:00 2001 From: staleycyn <45440075+staleycyn@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:13:21 -0800 Subject: [PATCH] Update az104-06-vms-loop-template.json --- .../AllFiles/Lab06/az104-06-vms-loop-template.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 a1952b7f..bfcadca2 100644 --- a/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json +++ b/New Instructions/AllFiles/Lab06/az104-06-vms-loop-template.json @@ -122,6 +122,17 @@ "privateLinkServiceNetworkPolicies": "Enabled" }, "type": "Microsoft.Network/virtualNetworks/subnets" + }, + { + "name": "subnet2", + "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_az104_06_vnet1_name'), 'subnet1')]", + "properties": { + "addressPrefix": "10.60.2.0/24", + "delegations": [], + "privateEndpointNetworkPolicies": "Disabled", + "privateLinkServiceNetworkPolicies": "Enabled" + }, + "type": "Microsoft.Network/virtualNetworks/subnets" } ], "virtualNetworkPeerings": [], @@ -312,7 +323,7 @@ "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 + "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\video\" -Name "iisstart.htm" -ItemType "file" && powershell.exe Add-Content -Path 'C:\inetpub\\wwwroot\video\iisstart.htm' -Value $('Images from: ' + $env:computername))" }, "protectedSettings": {}