mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-04 23:59:08 +00:00
Delete Allfiles/Archive directory
This commit is contained in:
parent
b9aa822829
commit
0846647962
@ -1,27 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"diskName": {
|
||||
"value": "az104-03a-disk1"
|
||||
},
|
||||
"location": {
|
||||
"value": "eastus"
|
||||
},
|
||||
"sku": {
|
||||
"value": "Standard_LRS"
|
||||
},
|
||||
"diskSizeGb": {
|
||||
"value": 32
|
||||
},
|
||||
"createOption": {
|
||||
"value": "empty"
|
||||
},
|
||||
"diskEncryptionSetType": {
|
||||
"value": "EncryptionAtRestWithPlatformKey"
|
||||
},
|
||||
"networkAccessPolicy": {
|
||||
"value": "AllowAll"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,53 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"diskName": {
|
||||
"type": "String"
|
||||
},
|
||||
"location": {
|
||||
"type": "String"
|
||||
},
|
||||
"sku": {
|
||||
"type": "String"
|
||||
},
|
||||
"diskSizeGb": {
|
||||
"type": "Int"
|
||||
},
|
||||
"sourceResourceId": {
|
||||
"type": "String"
|
||||
},
|
||||
"createOption": {
|
||||
"type": "String"
|
||||
},
|
||||
"hyperVGeneration": {
|
||||
"defaultValue": "V1",
|
||||
"type": "String"
|
||||
},
|
||||
"diskEncryptionSetType": {
|
||||
"type": "String"
|
||||
},
|
||||
"networkAccessPolicy": {
|
||||
"type": "String"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/disks",
|
||||
"apiVersion": "2020-05-01",
|
||||
"name": "[parameters('diskName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"tags": {},
|
||||
"sku": {
|
||||
"name": "[parameters('sku')]"
|
||||
},
|
||||
"properties": {
|
||||
"creationData": {
|
||||
"createOption": "[parameters('createOption')]"
|
||||
},
|
||||
"diskSizeGB": "[parameters('diskSizeGb')]",
|
||||
"networkAccessPolicy": "[parameters('networkAccessPolicy')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"value": "Standard_D2s_v3"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "Student"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,162 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_D2s_v3",
|
||||
"metadata": {
|
||||
"description": "VM size"
|
||||
}
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"defaultValue": "az104-04-vm",
|
||||
"metadata": {
|
||||
"description": "VM name Prefix"
|
||||
}
|
||||
},
|
||||
"vmCount": {
|
||||
"type": "int",
|
||||
"defaultValue": 2,
|
||||
"metadata": {
|
||||
"description": "Number of VMs"
|
||||
}
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Admin username"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Admin password"
|
||||
}
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"type": "string",
|
||||
"defaultValue": "az104-04-vnet1",
|
||||
"metadata": {
|
||||
"description": "Virtual network name"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"nic": "az104-04-nic",
|
||||
"virtualNetworkName": "[parameters('virtualNetworkName')]",
|
||||
"subnetName": "subnet",
|
||||
"subnet0Name": "subnet0",
|
||||
"subnet1Name": "subnet1",
|
||||
"computeApiVersion": "2018-06-01",
|
||||
"networkApiVersion": "2018-08-01"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[concat(parameters('vmName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "VMcopy",
|
||||
"count": "[parameters('vmCount')]"
|
||||
},
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"apiVersion": "[variables('computeApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Creating VMs",
|
||||
"dependsOn": [
|
||||
"[concat(variables('nic'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"osProfile": {
|
||||
"computerName": "[concat(parameters('vmName'),copyIndex())]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]",
|
||||
"windowsConfiguration": {
|
||||
"provisionVmAgent": "true"
|
||||
}
|
||||
},
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('vmSize')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftWindowsServer",
|
||||
"offer": "WindowsServer",
|
||||
"sku": "2019-Datacenter",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"createOption": "fromImage"
|
||||
},
|
||||
"dataDisks": []
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"properties": {
|
||||
"primary": true
|
||||
},
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces', concat(variables('nic'),copyIndex()))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Virtual Network",
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"10.40.0.0/22"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('subnet0Name')]",
|
||||
"properties": {
|
||||
"addressPrefix": "10.40.0.0/24"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('subnet1Name')]",
|
||||
"properties": {
|
||||
"addressPrefix": "10.40.1.0/24"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('nic'),copyIndex())]",
|
||||
"copy":{
|
||||
"name": "nicCopy",
|
||||
"count": "[parameters('vmCount')]"
|
||||
},
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Primary NIC",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"subnet": {
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), concat(variables('subnetName'),copyIndex()))]"
|
||||
},
|
||||
"privateIPAllocationMethod":"Dynamic"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"value": "Standard_D2s_v3"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "Student"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,202 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_D2s_v3",
|
||||
"metadata": {
|
||||
"description": "Virtual machine size"
|
||||
}
|
||||
},
|
||||
"location1": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "First Azure Region"
|
||||
}
|
||||
},
|
||||
"location2": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Second Azure Region"
|
||||
}
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Admin username"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Admin password"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"locationNames": "[createArray(parameters('location1'),parameters('location1'),parameters('location2'))]",
|
||||
"vmName": "az104-05-vm",
|
||||
"nicName": "az104-05-nic",
|
||||
"subnetName": "subnet0",
|
||||
"VnetName": "az104-05-vnet",
|
||||
"pipName": "az104-05-pip",
|
||||
"nsgName": "az104-05-nsg",
|
||||
"computeApiVersion": "2018-06-01",
|
||||
"networkApiVersion": "2018-08-01"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[concat(variables('vmName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "VMcopy",
|
||||
"count": "[length(variables('locationNames'))]"
|
||||
},
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"apiVersion": "[variables('computeApiVersion')]",
|
||||
"location": "[variables('locationNames')[copyIndex()]]",
|
||||
"dependsOn": [
|
||||
"[concat(variables('nicName'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"osProfile": {
|
||||
"computerName": "[concat(variables('vmName'),copyIndex())]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]",
|
||||
"windowsConfiguration": {
|
||||
"provisionVmAgent": "true"
|
||||
}
|
||||
},
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('vmSize')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftWindowsServer",
|
||||
"offer": "WindowsServer",
|
||||
"sku": "2019-Datacenter",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"createOption": "fromImage"
|
||||
},
|
||||
"dataDisks": []
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"properties": {
|
||||
"primary": true
|
||||
},
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('nicName'),copyIndex()))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[concat(variables('VnetName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "VNetCopy",
|
||||
"count": "[length(variables('locationNames'))]"
|
||||
},
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[variables('locationNames')[copyIndex()]]",
|
||||
"comments": "Virtual Network",
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[concat('10.5',copyIndex(),'.0.0/22')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('subnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[concat('10.5',copyIndex(),'.0.0/24')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('nicName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "nicCopy",
|
||||
"count": "[length(variables('locationNames'))]"
|
||||
},
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[variables('locationNames')[copyIndex()]]",
|
||||
"comments": "Primary NIC",
|
||||
"dependsOn": [
|
||||
"[concat(variables('pipName'),copyIndex())]",
|
||||
"[concat(variables('nsgName'),copyIndex())]",
|
||||
"[concat(variables('VnetName'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"subnet": {
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', concat(variables('VnetName'),copyIndex()), variables('subnetName'))]"
|
||||
},
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"publicIpAddress": {
|
||||
"id": "[resourceId('Microsoft.Network/publicIpAddresses', concat(variables('pipName'),copyIndex()))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkSecurityGroup": {
|
||||
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', concat(variables('nsgName'),copyIndex()))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('pipName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "pipCopy",
|
||||
"count": "[length(variables('locationNames'))]"
|
||||
},
|
||||
"type": "Microsoft.Network/publicIpAddresses",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[variables('locationNames')[copyIndex()]]",
|
||||
"comments": "Public IP for Primary NIC",
|
||||
"properties": {
|
||||
"publicIpAllocationMethod": "Dynamic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('nsgName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "nsgCopy",
|
||||
"count": "[length(variables('locationNames'))]"
|
||||
},
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[variables('locationNames')[copyIndex()]]",
|
||||
"comments": "Network Security Group (NSG) for Primary NIC",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "default-allow-rdp",
|
||||
"properties": {
|
||||
"priority": 1000,
|
||||
"sourceAddressPrefix": "*",
|
||||
"protocol": "Tcp",
|
||||
"destinationPortRange": "3389",
|
||||
"access": "Allow",
|
||||
"direction": "Inbound",
|
||||
"sourcePortRange": "*",
|
||||
"destinationAddressPrefix": "*"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"value": "Standard_D2s_v3"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "Student"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,237 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_D2s_v3",
|
||||
"metadata": {
|
||||
"description": "VM size"
|
||||
}
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"defaultValue": "az104-06-vm",
|
||||
"metadata": {
|
||||
"description": "VM name Prefix"
|
||||
}
|
||||
},
|
||||
"vmCount": {
|
||||
"type": "int",
|
||||
"defaultValue": 4,
|
||||
"metadata": {
|
||||
"description": "Number of VMs"
|
||||
}
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Admin username"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Admin password"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"vmExtensionName": "customScriptExtension",
|
||||
"nic": "az104-06-nic",
|
||||
"virtualNetworkNames": "[createArray('az104-06-vnet01','az104-06-vnet01','az104-06-vnet2','az104-06-vnet3')]",
|
||||
"virtualNetworkNamestbc": "[createArray('az104-06-vnet01','az104-06-vnet2','az104-06-vnet3')]",
|
||||
"VNetPrefixes":"[createArray('10.60','10.62','10.63')]",
|
||||
"nsgNames": "[createArray('az104-06-nsg01','az104-06-nsg01','az104-06-nsg2','az104-06-nsg3')]",
|
||||
"nsgNamestbc": "[createArray('az104-06-nsg01','az104-06-nsg2','az104-06-nsg3')]",
|
||||
"subnetName": "subnet",
|
||||
"subnetRefs": "[createArray(0,1,0,0)]",
|
||||
"computeApiVersion": "2018-06-01",
|
||||
"networkApiVersion": "2018-08-01"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[concat(parameters('vmName'),copyIndex())]",
|
||||
"copy": {
|
||||
"name": "VMcopy",
|
||||
"count": "[parameters('vmCount')]"
|
||||
},
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"apiVersion": "[variables('computeApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Creating VMs",
|
||||
"dependsOn": [
|
||||
"[concat(variables('nic'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"osProfile": {
|
||||
"computerName": "[concat(parameters('vmName'),copyIndex())]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]",
|
||||
"windowsConfiguration": {
|
||||
"provisionVmAgent": "true"
|
||||
}
|
||||
},
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('vmSize')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftWindowsServer",
|
||||
"offer": "WindowsServer",
|
||||
"sku": "2019-Datacenter",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"createOption": "fromImage"
|
||||
},
|
||||
"dataDisks": []
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"properties": {
|
||||
"primary": true
|
||||
},
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces', concat(variables('nic'),copyIndex()))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(concat(parameters('vmName'),copyIndex()), '/', variables('vmExtensionName'))]",
|
||||
"copy": {
|
||||
"name": "Extopy",
|
||||
"count": "[parameters('vmCount')]"
|
||||
},
|
||||
"apiVersion": "[variables('computeApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/', concat(parameters('vmName'),copyIndex()))]"
|
||||
],
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.7",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[variables('virtualNetworkNamestbc')[copyIndex()]]",
|
||||
"copy": {
|
||||
"name": "VnetCopy",
|
||||
"count": "[length(variables('virtualNetworkNamestbc'))]"
|
||||
},
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Virtual Network",
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[concat(variables('VNetPrefixes')[copyIndex()],'.0.0/22')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[concat(variables('subnetName'),'0')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[concat(variables('VNetPrefixes')[copyIndex()],'.0.0/24')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
},
|
||||
{ "type": "Microsoft.Network/virtualNetworks/subnets",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Virtual Network Subnet for VNet01",
|
||||
"name": "az104-06-vnet01/subnet1",
|
||||
"properties": {
|
||||
"addressPrefix": "10.60.1.0/24"
|
||||
},
|
||||
"dependsOn": [
|
||||
"Microsoft.Network/virtualNetworks/az104-06-vnet01"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('nic'),copyIndex())]",
|
||||
"copy":{
|
||||
"name": "nicCopy",
|
||||
"count": "[parameters('vmCount')]"
|
||||
},
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Primary NIC",
|
||||
"dependsOn": [
|
||||
"[variables('nsgNames')[copyindex()]]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkNames')[copyIndex()])]"
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"subnet": {
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkNames')[copyIndex()], concat(variables('subnetName'),variables('subnetRefs')[copyindex()]))]"
|
||||
},
|
||||
"privateIPAllocationMethod": "Dynamic"
|
||||
}
|
||||
}
|
||||
],
|
||||
"networkSecurityGroup": {
|
||||
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgNames')[copyIndex()])]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('nsgNamestbc')[copyIndex()]]",
|
||||
"copy": {
|
||||
"name": "nsgCopy",
|
||||
"count": 3
|
||||
},
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"apiVersion": "[variables('networkApiVersion')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"comments": "Network Security Group (NSG) for Primary NIC",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "default-allow-rdp",
|
||||
"properties": {
|
||||
"priority": 1000,
|
||||
"sourceAddressPrefix": "*",
|
||||
"protocol": "Tcp",
|
||||
"destinationPortRange": "3389",
|
||||
"access": "Allow",
|
||||
"direction": "Inbound",
|
||||
"sourcePortRange": "*",
|
||||
"destinationAddressPrefix": "*"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default-allow-http",
|
||||
"properties": {
|
||||
"priority": 1100,
|
||||
"sourceAddressPrefix": "*",
|
||||
"protocol": "Tcp",
|
||||
"destinationPortRange": "80",
|
||||
"access": "Allow",
|
||||
"direction": "Inbound",
|
||||
"sourcePortRange": "*",
|
||||
"destinationAddressPrefix": "*"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user