-
Notifications
You must be signed in to change notification settings - Fork 3
/
resource-groups.bicep
70 lines (58 loc) · 1.36 KB
/
resource-groups.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
64
65
66
67
68
69
70
targetScope = 'subscription'
metadata moduleDocs = {
title: 'Resource Group'
description: 'A module to demonstrate documentation generation'
version: '2022-12-17'
}
@description('Name of the resource group')
param resourceGroupName string
@allowed([
'northcentralus'
'northcentralusstage'
'northeurope'
'norway'
'norwayeast'
'norwaywest'
'uk'
'uksouth'
'ukwest'
'westeurope'
])
@description('Location of the resource group')
@minLength(3)
@maxLength(24)
@secure()
param resourceGroupLocation string
@description('Tags to append to resource group')
param tags object = {}
@description('Bool input')
param boolInput bool = false
@description('int input')
@minValue(1)
@maxValue(2333)
param intInput int = 124
@description('Complex array input')
param inputArray array = [
{ prop: 'one' }
]
@description('Simple array input')
param inputArraySimple array = [
'one'
'two'
]
@description('Object input')
@secure()
param complexObject object = {
prop: 'one'
propTwo: 'two'
}
@description('Resource to deploy')
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-01-01' = {
name: resourceGroupName
location: resourceGroupLocation
tags: tags
}
@description('ResourceId of the resource group')
output resourceId string = resourceGroup.id
@description('Location of the resource group')
output location string = resourceGroup.location