Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 201-aci-linux-container-azure-files-volume/README.md
Original file line number Diff line number Diff line change
@@ -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
59 changes: 59 additions & 0 deletions 201-aci-linux-container-azure-files-volume/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -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')]"
}
}]
}
}]
}


Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}

7 changes: 7 additions & 0 deletions 201-aci-linux-container-azure-files-volume/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}
3 changes: 3 additions & 0 deletions 201-aci-linux-multiple-container-groups/README.md
Original file line number Diff line number Diff line change
@@ -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.
69 changes: 69 additions & 0 deletions 201-aci-linux-multiple-container-groups/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -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]"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"imageRegistryCredentials": [
{
"server": "[parameters('imageRegistryLoginServer')]",
"username": "[parameters('imageRegistryUsername')]",
"password": "[parameters('imageRegistryPassword')]"
}
]
7 changes: 7 additions & 0 deletions 201-aci-linux-multiple-container-groups/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}