1
+ {
2
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" ,
3
+ "contentVersion" : " 1.0.0.0" ,
4
+ "parameters" : {
5
+
6
+ "gitProject" : {
7
+ "type" : " string" ,
8
+ "defaultValue" : " AzureDataPipelineTools"
9
+ },
10
+ "branch" : {
11
+ "type" : " string"
12
+ },
13
+ "commit" : {
14
+ "type" : " string"
15
+ },
16
+ "pullRequest" : {
17
+ "type" : " string" ,
18
+ "defaultValue" : " N/A"
19
+ },
20
+ "location" : {
21
+ "type" : " string" ,
22
+ "defaultValue" : " UK South"
23
+ }
24
+ },
25
+ "variables" : {
26
+ "storageAccountApiVersion" : " 2019-06-01" ,
27
+ "storageAccountName" : " [concat('adls', substring(uniqueString(parameters('branch')), 0, 4), 'xxxx', substring(parameters('commit'), 0, min(length(parameters('commit')), 7)))]" ,
28
+ "storageAccountResourceId" : " [resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
29
+ },
30
+ "resources" : [
31
+ {
32
+ "name" : " [variables('storageAccountName')]" ,
33
+ "type" : " Microsoft.Storage/storageAccounts" ,
34
+ "apiVersion" : " [variables('storageAccountApiVersion')]" ,
35
+ "location" : " [parameters('location')]" ,
36
+ "properties" : {
37
+ "accessTier" : " Hot" ,
38
+ "minimumTlsVersion" : " TLS1_2" ,
39
+ "supportsHttpsTrafficOnly" : true ,
40
+ "allowBlobPublicAccess" : true ,
41
+ "allowSharedKeyAccess" : true ,
42
+ "isHnsEnabled" : true ,
43
+ "networkAcls" : {
44
+ "bypass" : " AzureServices" ,
45
+ "defaultAction" : " Allow"
46
+ }
47
+ },
48
+ "dependsOn" : [],
49
+ "sku" : {
50
+ "name" : " Standard_LRS"
51
+ },
52
+ "kind" : " StorageV2" ,
53
+ "tags" : {
54
+ "Git Project" : " [parameters('gitProject')]" ,
55
+ "Commit" : " [parameters('commit')]" ,
56
+ "Branch" : " [parameters('branch')]" ,
57
+ "Pull Request" : " [parameters('pullRequest')]" ,
58
+ "Create Date Time" : " 2021-04-28T12:08:00"
59
+ }
60
+ }
61
+ ],
62
+ "outputs" : {
63
+ "storageAccountName" : {
64
+ "type" : " string" ,
65
+ "value" : " [variables('storageAccountName')]"
66
+ },
67
+ "storageAccountConnectionString" : {
68
+ "type" : " string" ,
69
+ "value" : " [concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccountName'), ';AccountKey=', listKeys(variables('storageAccountResourceId'), variables('storageAccountApiVersion')).keys[0].value)]"
70
+ }
71
+ }
72
+ }
0 commit comments