mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-04 23:59:08 +00:00
Add files via upload
This commit is contained in:
parent
fb3161cc9d
commit
46aea58232
@ -3,7 +3,7 @@
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "Student"
|
||||
"value": "localadmin"
|
||||
},
|
||||
"vmNamePrefix": {
|
||||
"value": "az104-10-vm"
|
||||
@ -30,7 +30,7 @@
|
||||
"value": "10.0.0.0/24"
|
||||
},
|
||||
"virtualNetworkResourceGroup": {
|
||||
"value": "az104-10-rg0"
|
||||
"value": "az104-10-rg10"
|
||||
},
|
||||
"subnet0Name": {
|
||||
"value": "subnet0"
|
||||
|
||||
@ -84,7 +84,7 @@
|
||||
},
|
||||
"virtualNetworkResourceGroup": {
|
||||
"type": "string",
|
||||
"defaultValue": "az104-10-rg0",
|
||||
"defaultValue": "az104-10-rg10",
|
||||
"metadata": {
|
||||
"description": "Resource group of the VNet"
|
||||
}
|
||||
@ -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"
|
||||
},
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user