Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "contentVersion": "1.0.0.0",
- "parameters": {
- "location": {
- "type": "string",
- "defaultValue": "[resourceGroup().location]",
- "metadata": {
- "description": "Location for all resources."
- }
- }
- },
- "variables": {
- "image": "oneflat/hello",
- "cpuCores": "2",
- "memoryInGb": "4",
- "containerGroupName": "createshare-containerinstance",
- "containerName": "createshare",
- "count": 4
- },
- "resources": [
- {
- "name": "[ concat(copyIndex(), uniqueString(resourceGroup().id)) ]",
- "type": "Microsoft.ContainerInstance/containerGroups",
- "apiVersion": "2018-10-01",
- "location": "[resourceGroup().location]",
- "properties": {
- "containers": [
- {
- "name": "[concat(copyIndex(),variables('containerName'))]",
- "properties": {
- "image": "[variables('image')]",
- "resources": {
- "requests": {
- "cpu": "[variables('cpuCores')]",
- "memoryInGb": "[variables('memoryInGb')]"
- }
- }
- }
- }
- ],
- "osType": "Linux",
- "restartPolicy": "OnFailure"
- },
- "copy": {
- "name": "storagecopy",
- "count": "[variables('count')]"
- }
- }
- ],
- "outputs": {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement