Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
staleycyn authored Feb 23, 2024
1 parent fb3161c commit 46aea58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Allfiles/Labs/10/az104-10-vms-edge-parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"value": "Student"
"value": "localadmin"
},
"vmNamePrefix": {
"value": "az104-10-vm"
Expand All @@ -30,7 +30,7 @@
"value": "10.0.0.0/24"
},
"virtualNetworkResourceGroup": {
"value": "az104-10-rg0"
"value": "az104-10-rg10"
},
"subnet0Name": {
"value": "subnet0"
Expand Down
28 changes: 3 additions & 25 deletions Allfiles/Labs/10/az104-10-vms-edge-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"virtualNetworkResourceGroup": {
"type": "string",
"defaultValue": "az104-10-rg0",
"defaultValue": "az104-10-rg10",
"metadata": {
"description": "Resource group of the VNet"
}
Expand Down Expand Up @@ -114,7 +114,7 @@
"variables": {
"vnetID": "[resourceId(parameters('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', parameters('virtualNetworkName'))]",
"subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet0Name'))]",
"numberOfInstances": 2,
"numberOfInstances": 1,
"computeAPIVersion": "2018-10-01",
"networkAPIVersion": "2018-12-01"
},
Expand Down Expand Up @@ -253,28 +253,6 @@
]
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmNamePrefix'), copyindex(), '/customScriptExtension')]",
"apiVersion": "2018-06-01",
"location": "[resourceGroup().location]",
"copy": {
"name": "cSELoop",
"count": "[variables('numberOfInstances')]"
},
"dependsOn": [
"[concat(parameters('vmNamePrefix'), copyindex())]"
],
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10",
"autoUpgradeMinorVersion": true,
"Settings": {
"commandToExecute": "powershell.exe Set-ExecutionPolicy Bypass -Scope Process -Force && powershell.exe Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) && powershell.exe c:\\programdata\\chocolatey\\choco.exe install microsoft-edge -y"
}
}
}
]
}
}

0 comments on commit 46aea58

Please sign in to comment.