tests/functional/Microsoft.Network/virtualNetworks/deploy/deploy.json
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "location": { "type": "string" }, "virtualNetworkName": { "type": "string" }, "addressSpaces": { "type": "array" }, "subnet0_name": { "type": "string" }, "subnet0_addressRange": { "type": "string" }, "ddosProtectionPlanEnabled": { "type": "bool" }, "nic0_name": { "type": "string" } }, "variables": {}, "resources": [ { "name": "[parameters('virtualNetworkName')]", "type": "Microsoft.Network/VirtualNetworks", "apiVersion": "2021-01-01", "location": "[parameters('location')]", "dependsOn": [], "tags": {}, "properties": { "addressSpace": { "addressPrefixes": "[parameters('addressSpaces')]" }, "subnets": [ { "name": "[parameters('subnet0_name')]", "properties": { "addressPrefix": "[parameters('subnet0_addressRange')]" } } ], "enableDdosProtection": "[parameters('ddosProtectionPlanEnabled')]" } }, { "name": "[parameters('nic0_name')]", "type": "Microsoft.Network/networkInterfaces", "apiVersion": "2020-11-01", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Network/VirtualNetworks/', parameters('virtualNetworkName'))]" ], "properties": { "ipConfigurations": [ { "name": "ipconfig", "properties": { "privateIPAddress": "", "privateIPAllocationMethod": "Dynamic", "subnet": { "id": "[resourceId('Microsoft.Network/VirtualNetworks/subnets/', parameters('virtualNetworkName'), parameters('subnet0_name'))]" }, "primary": true, "privateIPAddressVersion": "IPv4" } } ], "dnsSettings": { "dnsServers": [] }, "enableAcceleratedNetworking": false, "enableIPForwarding": false } } ] } |