Skip to content

Commit bd38d66

Browse files
authored
Create acistorage.json
1 parent 13a3ffb commit bd38d66

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

acistorage/acistorage.json

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"storageAccountName": {
6+
"type": "String",
7+
"metadata": {
8+
"description": "Storage Account Name"
9+
}
10+
},
11+
"fileShareName": {
12+
"type": "string",
13+
"metadata": {
14+
"description": "File Share Name"
15+
}
16+
},
17+
"containerName": {
18+
"type": "String",
19+
"metadata": {
20+
"description": "Container Name"
21+
}
22+
}
23+
},
24+
"variables": {
25+
"image": "microsoft/azure-cli",
26+
"cpuCores": "1.0",
27+
"memoryInGb": "1.5",
28+
"containerGroupName": "createshare-containerinstance",
29+
"containerName": "createshare"
30+
},
31+
"resources": [
32+
{
33+
"type": "Microsoft.Storage/storageAccounts",
34+
"apiVersion": "2019-04-01",
35+
"name": "[parameters('storageAccountName')]",
36+
"location": "australiaeast",
37+
"sku": {
38+
"name": "Standard_RAGRS",
39+
"tier": "Standard"
40+
},
41+
"kind": "Storage",
42+
"properties": {
43+
"networkAcls": {
44+
"bypass": "AzureServices",
45+
"virtualNetworkRules": [],
46+
"ipRules": [],
47+
"defaultAction": "Allow"
48+
},
49+
"supportsHttpsTrafficOnly": true,
50+
"encryption": {
51+
"services": {
52+
"file": {
53+
"enabled": true
54+
},
55+
"blob": {
56+
"enabled": true
57+
}
58+
},
59+
"keySource": "Microsoft.Storage"
60+
}
61+
}
62+
},
63+
{
64+
"name": "[variables('containerGroupName')]",
65+
"type": "Microsoft.ContainerInstance/containerGroups",
66+
"apiVersion": "2018-02-01-preview",
67+
"location": "[parameters('containerInstanceLocation')]",
68+
"dependsOn": [
69+
"[concat('Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]"
70+
],
71+
"properties": {
72+
"containers": [
73+
{
74+
"name": "[variables('containerName')]",
75+
"properties": {
76+
"image": "[variables('image')]",
77+
"command": [
78+
"az",
79+
"storage",
80+
"share",
81+
"create",
82+
"--name",
83+
"[parameters('fileShareName')]"
84+
],
85+
"environmentVariables": [
86+
{
87+
"name": "AZURE_STORAGE_KEY",
88+
"value": "[listKeys(parameters('storageAccountName'),'2017-10-01').keys[0].value]"
89+
},
90+
{
91+
"name": "AZURE_STORAGE_ACCOUNT",
92+
"value": "[parameters('storageAccountName')]"
93+
}
94+
],
95+
"resources": {
96+
"requests": {
97+
"cpu": "[variables('cpuCores')]",
98+
"memoryInGb": "[variables('memoryInGb')]"
99+
}
100+
}
101+
}
102+
}
103+
],
104+
"restartPolicy": "OnFailure",
105+
"osType": "Linux"
106+
}
107+
}
108+
]
109+
}

0 commit comments

Comments
 (0)