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",
|
"contentVersion": "1.0.0.0",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"adminUsername": {
|
"adminUsername": {
|
||||||
"value": "Student"
|
"value": "localadmin"
|
||||||
},
|
},
|
||||||
"vmNamePrefix": {
|
"vmNamePrefix": {
|
||||||
"value": "az104-10-vm"
|
"value": "az104-10-vm"
|
||||||
@ -30,7 +30,7 @@
|
|||||||
"value": "10.0.0.0/24"
|
"value": "10.0.0.0/24"
|
||||||
},
|
},
|
||||||
"virtualNetworkResourceGroup": {
|
"virtualNetworkResourceGroup": {
|
||||||
"value": "az104-10-rg0"
|
"value": "az104-10-rg10"
|
||||||
},
|
},
|
||||||
"subnet0Name": {
|
"subnet0Name": {
|
||||||
"value": "subnet0"
|
"value": "subnet0"
|
||||||
|
|||||||
@ -84,7 +84,7 @@
|
|||||||
},
|
},
|
||||||
"virtualNetworkResourceGroup": {
|
"virtualNetworkResourceGroup": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultValue": "az104-10-rg0",
|
"defaultValue": "az104-10-rg10",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"description": "Resource group of the VNet"
|
"description": "Resource group of the VNet"
|
||||||
}
|
}
|
||||||
@ -114,7 +114,7 @@
|
|||||||
"variables": {
|
"variables": {
|
||||||
"vnetID": "[resourceId(parameters('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', parameters('virtualNetworkName'))]",
|
"vnetID": "[resourceId(parameters('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', parameters('virtualNetworkName'))]",
|
||||||
"subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet0Name'))]",
|
"subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet0Name'))]",
|
||||||
"numberOfInstances": 2,
|
"numberOfInstances": 1,
|
||||||
"computeAPIVersion": "2018-10-01",
|
"computeAPIVersion": "2018-10-01",
|
||||||
"networkAPIVersion": "2018-12-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