Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. {
  2. "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  3. "contentVersion": "1.0.0.0",
  4. "parameters": {
  5.  
  6. "location": {
  7. "type": "string",
  8. "defaultValue": "[resourceGroup().location]",
  9. "metadata": {
  10. "description": "Location for all resources."
  11. }
  12. }
  13. },
  14. "variables": {
  15. "image": "oneflat/hello",
  16. "cpuCores": "2",
  17. "memoryInGb": "4",
  18. "containerGroupName": "createshare-containerinstance",
  19. "containerName": "createshare",
  20. "count": 4
  21. },
  22. "resources": [
  23.  
  24. {
  25. "name": "[ concat(copyIndex(), uniqueString(resourceGroup().id)) ]",
  26. "type": "Microsoft.ContainerInstance/containerGroups",
  27. "apiVersion": "2018-10-01",
  28. "location": "[resourceGroup().location]",
  29. "properties": {
  30. "containers": [
  31. {
  32. "name": "[concat(copyIndex(),variables('containerName'))]",
  33. "properties": {
  34. "image": "[variables('image')]",
  35. "resources": {
  36. "requests": {
  37. "cpu": "[variables('cpuCores')]",
  38. "memoryInGb": "[variables('memoryInGb')]"
  39. }
  40. }
  41. }
  42. }
  43. ],
  44. "osType": "Linux",
  45. "restartPolicy": "OnFailure"
  46. },
  47. "copy": {
  48. "name": "storagecopy",
  49. "count": "[variables('count')]"
  50. }
  51. }
  52. ],
  53. "outputs": {}
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement