Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
"value": [
"10.0.0.0/16"
]
},
"subnets": {
"value": [
{
"name": "default",
"addressPrefix": "10.0.0.0/16"
}
]
}
}
}
5 changes: 2 additions & 3 deletions arm/Microsoft.Network/virtualNetworks/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ param location string = resourceGroup().location
@description('Required. An Array of 1 or more IP Address Prefixes for the Virtual Network.')
param addressPrefixes array

@description('Required. An Array of subnets to deploy to the Virual Network.')
@minLength(1)
param subnets array
@description('Optional. An Array of subnets to deploy to the Virtual Network.')
param subnets array = []

@description('Optional. DNS Servers associated to the Virtual Network.')
param dnsServers array = []
Expand Down
2 changes: 1 addition & 1 deletion arm/Microsoft.Network/virtualNetworks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This template deploys a virtual network (vNet).
| `metricsToEnable` | array | `[AllMetrics]` | `[AllMetrics]` | Optional. The name of metrics that will be streamed. |
| `name` | string | | | Required. The Virtual Network (vNet) Name. |
| `roleAssignments` | array | `[]` | | Optional. Array of role assignment objects that contain the 'roleDefinitionIdOrName' and 'principalId' to define RBAC role assignments on this resource. In the roleDefinitionIdOrName attribute, you can provide either the display name of the role definition, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11' |
| `subnets` | _[subnets](subnets/readme.md)_ array | | | Required. An Array of subnets to deploy to the Virual Network. |
| `subnets` | _[subnets](subnets/readme.md)_ array | `[]` | | Optional. An Array of subnets to deploy to the Virtual Network. |
| `tags` | object | `{object}` | | Optional. Tags of the resource. |
| `virtualNetworkPeerings` | _[virtualNetworkPeerings](virtualNetworkPeerings/readme.md)_ array | `[]` | | Optional. Virtual Network Peerings configurations |

Expand Down