Skip to content

Instantly share code, notes, and snippets.

@TsuyoshiUshio
Created October 13, 2017 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TsuyoshiUshio/0660ac26e043ea1afe9e782d7bdc25e9 to your computer and use it in GitHub Desktop.
Save TsuyoshiUshio/0660ac26e043ea1afe9e782d7bdc25e9 to your computer and use it in GitHub Desktop.
Azure Container Instances deploy sample with two ports and ACR credential
$ cat azuredeploy.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
},
"resources": [
{
"name": "myContainerGroup",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2017-08-01-preview",
"location": "[resourceGroup().location]",
"properties": {
"imageRegistryCredentials": [
{"password": "{YOUR_ACR_PASSWORD}",
"server": "{YOUR_ACR_HOST_NAME}.azurecr.io",
"username": "{YOUR_ACR_USER_NAME"}
],
"containers": [
{
"name": "kirinmq",
"properties": {
"image": "{YOUR_ACR_HOST_NAME}.azurecr.io/mq",
"ports": [
{
"port": "5555"
},
{
"port": "5556"
}
],
"resources": {
"requests": {
"cpu": "1.0",
"memoryInGb": "1.5"
}
}
}
}
],
"osType": "Linux",
"ipAddress": {
"type": "Public",
"ports": [
{
"protocol": "tcp",
"port": "5555"
},
{
"protocol": "tcp",
"port": "5556"
}
]
}
}
}
],
"outputs": { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment