{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "containerImage": { "type": "string", "defaultValue": "nginx:latest" } }, "variables": { "containerGroupName": "AzureAntennaCG02", "containerName": "web", "location": "westus" }, "resources": [ { "name": "[variables('containerGroupName')]", "type": "Microsoft.ContainerInstance/containerGroups", "apiVersion": "2017-08-01-preview", "location": "[variables('location')]", "properties": { "containers": [ { "name": "[variables('containerName')]", "properties": { "image": "[parameters('containerImage')]", "resources": { "requests": { "cpu": 1, "memoryInGb": 1.0 } }, "ports": [ { "port": 80 } ] } } ], "osType": "Linux", "ipAddress": { "type": "Public", "ports": [ { "protocol": "tcp", "port": "80" } ] } } } ], "outputs": { "containerIPv4Address": { "type": "string", "value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups/', variables('containerGroupName'))).ipAddress.ip]" } } }