-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfer.json
More file actions
77 lines (77 loc) · 2.72 KB
/
transfer.json
File metadata and controls
77 lines (77 loc) · 2.72 KB
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
71
72
73
74
75
76
77
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"source": {
"type": "string",
"metadata": {
"description": "Source Storage Account: https://myaccount.blob.core.windows.net/mycontainer1"
}
},
"sourceKey": {
"type": "string",
"metadata": {
"description": "Storage Account Key"
}
},
"destination": {
"type": "string",
"metadata": {
"description": "Desitination Storage Account: https://myaccount.blob.core.windows.net/mycontainer2"
}
},
"destinationKey": {
"type": "string",
"metadata": {
"description": "Storage Account Key"
}
}
},
"variables": {
"location": "[resourceGroup().location]",
"storageAccountType": "Standard_LRS",
"image": "hawaku/azcopy:latest",
"cpuCores": "1.0",
"memoryInGb": "1.5",
"containerGroupName": "blob-movement",
"containerName": "mover"
},
"resources": [
{
"name": "[variables('containerGroupName')]",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2018-02-01-preview",
"location": "[variables('location')]",
"properties": {
"containers": [
{
"name": "[variables('containerName')]",
"properties": {
"image": "[variables('image')]",
"command": [
"azcopy",
"--source",
"[parameters('source')]",
"--destination",
"[parameters('destination')]",
"--source-key",
"[parameters('sourceKey')]",
"--dest-key",
"[parameters('destinationKey')]",
"--recursive"
],
"resources": {
"requests": {
"cpu": "[variables('cpuCores')]",
"memoryInGb": "[variables('memoryInGb')]"
}
}
}
}
],
"restartPolicy": "OnFailure",
"osType": "Linux"
}
}
]
}