forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-vm-windows.bicep
41 lines (41 loc) · 1.06 KB
/
res-vm-windows.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
// Windows Virtual Machine
resource /*${1:windowsVM}*/windowsVM 'Microsoft.Compute/virtualMachines@2020-12-01' = {
name: /*${2:'name'}*/'name'
location: resourceGroup().location
properties: {
hardwareProfile: {
vmSize: 'Standard_A2_v2'
}
osProfile: {
computerName: /*${3:'computerName'}*/'computerName'
adminUsername: /*${4:'adminUsername'}*/'adminUsername'
adminPassword: /*${5:'adminPassword'}*/'adminPassword'
}
storageProfile: {
imageReference: {
publisher: 'MicrosoftWindowsServer'
offer: 'WindowsServer'
sku: '2012-R2-Datacenter'
version: 'latest'
}
osDisk: {
name: /*${6:'name'}*/'name'
caching: 'ReadWrite'
createOption: 'FromImage'
}
}
networkProfile: {
networkInterfaces: [
{
id: /*${7:'id'}*/'id'
}
]
}
diagnosticsProfile: {
bootDiagnostics: {
enabled: true
storageUri: /*${8:'storageUri'}*/'storageUri'
}
}
}
}