-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvm.bicep
63 lines (60 loc) · 1.28 KB
/
vm.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
param virtualMachineSize string
param adminUsername string
@secure()
param adminPassword string
param location string = resourceGroup().location
param virtualMachineName string
param nic1Id string
param nic2Id string
param diagsStorageUri string
resource vm 'Microsoft.Compute/virtualMachines@2017-03-30' = {
name: virtualMachineName
location: location
properties: {
osProfile: {
computerName: virtualMachineName
adminUsername: adminUsername
adminPassword: adminPassword
windowsConfiguration: {
provisionVMAgent: true
}
}
hardwareProfile: {
vmSize: virtualMachineSize
}
storageProfile: {
imageReference: {
publisher: 'MicrosoftWindowsServer'
offer: 'WindowsServer'
sku: '2016-Datacenter'
version: 'latest'
}
osDisk: {
createOption: 'FromImage'
}
dataDisks: []
}
networkProfile: {
networkInterfaces: [
{
properties: {
primary: true
}
id: nic1Id
}
{
properties: {
primary: false
}
id: nic2Id
}
]
}
diagnosticsProfile: {
bootDiagnostics: {
enabled: true
storageUri: diagsStorageUri
}
}
}
}