-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.bicep
48 lines (46 loc) · 1.28 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
param templateSpecName string = 'ManagedDisk'
param templateSpecVersionName string = '0.1'
param location string = resourceGroup().location
resource templateSpec 'Microsoft.Resources/templateSpecs@2019-06-01-preview' = {
name: templateSpecName
location: location
properties: {
description: 'A basic templateSpec - creates a managed disk.'
displayName: 'Managed Disk (Standard_LRS)'
}
}
resource templateSpecVersion 'Microsoft.Resources/templateSpecs/versions@2019-06-01-preview' = {
name: '${templateSpec.name}/${templateSpecVersionName}'
location: location
properties: {
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
parameters: {
diskName: {
type: 'string'
}
location: {
type: 'string'
}
}
resources: [
{
type: 'Microsoft.Compute/disks'
name: '[parameters(\'diskName\')]'
apiVersion: '2020-05-01'
location: '[parameters(\'location\')]'
sku: {
name: 'Standard_LRS'
}
properties: {
creationData: {
createOption: 'Empty'
}
diskSizeGB: 64
}
}
]
}
}
}