diff --git a/201-aci-linux-container-azure-files-volume/README.md b/201-aci-linux-container-azure-files-volume/README.md new file mode 100644 index 000000000000..2231e7571177 --- /dev/null +++ b/201-aci-linux-container-azure-files-volume/README.md @@ -0,0 +1,3 @@ +# Azure Container Instances + +This template is a use case for mounting an [Azure file share](https://docs.microsoft.com/en-us/azure/container-instances/container-instances-mounting-azure-files-volume) for use with Azure Container Instances diff --git a/201-aci-linux-container-azure-files-volume/azuredeploy.json b/201-aci-linux-container-azure-files-volume/azuredeploy.json new file mode 100644 index 000000000000..02b4468a9d0f --- /dev/null +++ b/201-aci-linux-container-azure-files-volume/azuredeploy.json @@ -0,0 +1,59 @@ + +{ + "$schema":" https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters":{ + "storageaccountname": { + "type": "string" + }, + "storageaccountkey":{ + "type": "securestring" + } + + }, + "resources":[{ + "name": "hellofiles", + "type": "Microsoft.ContainerInstance/containerGroups", + "apiVersion": "2017-08-01-preview", + "location": "[resourceGroup().location]", + "properties": { + "containers": [{ + "name": "hellofile", + "properties": { + "image": "seanmckenna/aci-hellofiles", + "resources": { + "requests": { + "cpu": 1, + "memoryInGb": 1.5 + } + }, + "ports":[{ + "port": 80 + }], + "volumeMounts": [{ + "name": "myvolume", + "mountpath": "/aci/logs/" + }] + } + }], + "osType": "Linux", + "ipAddress": { + "type": "Public", + "ports": [{ + "protocol": "tcp", + "port": "80" + }] + }, + "volumes": [{ + "name": "myvolume", + "azureFile": { + "shareName": "acishare", + "storageAccountName": "[parameters('storageaccountname')]", + "storageAccountKey": "[parameters('storageaccountkey')]" + } + }] + } + }] + } + + diff --git a/201-aci-linux-container-azure-files-volume/azuredeploy.parameters.json b/201-aci-linux-container-azure-files-volume/azuredeploy.parameters.json new file mode 100644 index 000000000000..18d5fe0dba71 --- /dev/null +++ b/201-aci-linux-container-azure-files-volume/azuredeploy.parameters.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "storageaccountname": { + "value": "mystorageaccount14549" + }, + "storageaccountkey": { + "reference": { + "keyVault": { + "id": "azurefilesstoragekey" + }, + "secretName": "/subscriptions/2ce4ca73-8bf4-45d5-aa55-b37121fd51a6/resourceGroups/my-rg/providers/Microsoft.KeyVault/vaults/aci-keyvaultwdjofnoae" + } + } + } +} + diff --git a/201-aci-linux-container-azure-files-volume/metadata.json b/201-aci-linux-container-azure-files-volume/metadata.json new file mode 100644 index 000000000000..5e06e616f79f --- /dev/null +++ b/201-aci-linux-container-azure-files-volume/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Azure Container Instances - Container-Azure-files-volume", + "description": "Mount Azure file volumes to your Azure Container Instances.", + "summary": "This template demonstrates how to mount Azure file volumes for Azure Container Instances.", + "githubUsername": "rbitia", + "dateUpdated": "2017-09-05" +} diff --git a/201-aci-linux-multiple-container-groups/README.md b/201-aci-linux-multiple-container-groups/README.md new file mode 100644 index 000000000000..ed369db58a30 --- /dev/null +++ b/201-aci-linux-multiple-container-groups/README.md @@ -0,0 +1,3 @@ +#Azure Container Instances + +This template demonstrates how to deploy and configure [container groups](https://docs.microsoft.com/en-us/azure/container-instances/container-instances-multi-container-group) with Azure Container Instances. diff --git a/201-aci-linux-multiple-container-groups/azuredeploy.json b/201-aci-linux-multiple-container-groups/azuredeploy.json new file mode 100644 index 000000000000..678f63c2d921 --- /dev/null +++ b/201-aci-linux-multiple-container-groups/azuredeploy.json @@ -0,0 +1,69 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + }, + "variables": { + "container1name": "aci-tutorial-app", + "container1image": "microsoft/aci-helloworld:latest", + "container2name": "aci-tutorial-sidecar", + "container2image": "microsoft/aci-tutorial-sidecar" + }, + "resources": [ + { + "name": "myContainerGroup", + "type": "Microsoft.ContainerInstance/containerGroups", + "apiVersion": "2017-08-01-preview", + "location": "[resourceGroup().location]", + "properties": { + "containers": [ + { + "name": "[variables('container1name')]", + "properties": { + "image": "[variables('container1image')]", + "resources": { + "requests": { + "cpu": 1, + "memoryInGb": 1.5 + } + }, + "ports": [ + { + "port": 80 + } + ] + } + }, + { + "name": "[variables('container2name')]", + "properties": { + "image": "[variables('container2image')]", + "resources": { + "requests": { + "cpu": 1, + "memoryInGb": 1.5 + } + } + } + } + ], + "osType": "Linux", + "ipAddress": { + "type": "Public", + "ports": [ + { + "protocol": "tcp", + "port": "80" + } + ] + } + } + } + ], + "outputs": { + "containerIPv4Address": { + "type": "string", + "value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups/', 'myContainerGroup')).ipAddress.ip]" + } + } + } diff --git a/201-aci-linux-multiple-container-groups/azuredeploy.parameters.json b/201-aci-linux-multiple-container-groups/azuredeploy.parameters.json new file mode 100644 index 000000000000..2864fc9f055f --- /dev/null +++ b/201-aci-linux-multiple-container-groups/azuredeploy.parameters.json @@ -0,0 +1,7 @@ +"imageRegistryCredentials": [ + { + "server": "[parameters('imageRegistryLoginServer')]", + "username": "[parameters('imageRegistryUsername')]", + "password": "[parameters('imageRegistryPassword')]" + } +] diff --git a/201-aci-linux-multiple-container-groups/metadata.json b/201-aci-linux-multiple-container-groups/metadata.json new file mode 100644 index 000000000000..27554d826214 --- /dev/null +++ b/201-aci-linux-multiple-container-groups/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Azure Container Instances - Multi-container group", + "description": "Deploy a multi-container group with Azure Container Instances.", + "summary": "This template helps you configure and deploy a multi-container group with Azure Container Instances.", + "githubUsername": "rbitia", + "dateUpdated: "2017-09-07" +}