-
Notifications
You must be signed in to change notification settings - Fork 38
/
azuredeploy.bicep
62 lines (57 loc) · 1.77 KB
/
azuredeploy.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
@description('Name of the templateSpec')
param templateSpecName string = 'ManagedDisk'
@description('Version for this instance of the templateSpec')
param templateSpecVersion string = '0.1'
@description('Location for all resources.')
param location string = resourceGroup().location
resource templateSpecName_resource '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 templateSpecName_templateSpecVersion 'Microsoft.Resources/templateSpecs/versions@2019-06-01-preview' = {
name: '${templateSpecName_resource.name}/${templateSpecVersion}'
location: location
tags: {
Dept: 'Finance'
Environment: 'Production'
}
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
}
}
]
}
}
}
output templateSpecName string = templateSpecName
output templateSpecVersion string = templateSpecVersion
output templateSpecResourceGroupName string = resourceGroup().name
output templateSpecSubscriptionId string = subscription().subscriptionId