-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bicep
37 lines (34 loc) · 815 Bytes
/
main.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
param location string = resourceGroup().location
param virtualNetworkName string = 'vnet-01'
param subnetName string = 'subnet-01'
param aseName string = uniqueString(resourceGroup().name)
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2020-06-01' = {
name: virtualNetworkName
location: location
properties: {
addressSpace: {
addressPrefixes: [
'10.0.0.0/16'
]
}
}
}
resource subNet 'Microsoft.Network/virtualNetworks/subnets@2020-06-01' = {
name: subnetName
properties: {
addressPrefix: '10.0.1.0/25'
}
}
resource ase 'Microsoft.Web/hostingEnvironments@2020-06-01' = {
name: aseName
location: location
kind: 'ASEV2'
properties: {
location: location
name: aseName
workerPools: []
virtualNetwork: {
id: subNet.id
}
}
}