-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathStorageAccount.yaml
61 lines (61 loc) · 1.93 KB
/
StorageAccount.yaml
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
$schema: https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
contentVersion: 1.0.0.0
parameters:
location:
type: string
metadata:
description: The region where resources are deployed
defaultValue: '[resourceGroup().location]'
storageAccountName:
type: string
metadata:
description: Name of Storage Account
storageAccountSkuName:
type: string
metadata:
description: SKU Name for the Storage Account
allowedValues:
- Standard_LRS
- Standard_GRS
- Standard_ZRS
- Standard_RGRS
defaultValue: Standard_LRS
storageAccountSkuTier:
type: string
metadata:
description: SKU Tier for the Storage Account
defaultValue: Standard
variables:
storageAccount:
name: "[parameters('storageAccountName')]"
apiVersion: "[providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]]"
location: "[parameters('location')]"
sku:
name: "[parameters('storageAccountSkuName')]"
tier: "[parameters('storageAccountSkuTier')]"
tags:
author: Justin Yoo
profile: https://twitter.com/justinchronicle
projectUrl: https://github.com/aliencube/ARM-Deployment-History-Cleaner
repositoryUrl: https://github.com/aliencube/ARM-Deployment-History-Cleaner
license: https://raw.githubusercontent.com/aliencube/ARM-Deployment-History-Cleaner/master/LICENSE
resources:
- comments: '### RESOURCE - STORAGE ACCOUNT ###'
apiVersion: "[variables('storageAccount').apiVersion]"
type: Microsoft.Storage/storageAccounts
name: "[variables('storageAccount').name]"
location: "[variables('storageAccount').location]"
kind: StorageV2
tags: "[variables('tags')]"
sku:
name: "[variables('storageAccount').sku.name]"
tier: "[variables('storageAccount').sku.tier]"
properties:
encryption:
keySource: Microsoft.Storage
services:
blob:
enabled: true
file:
enabled: true
outputs: {}