Created
October 13, 2017 14:32
-
-
Save TsuyoshiUshio/0660ac26e043ea1afe9e782d7bdc25e9 to your computer and use it in GitHub Desktop.
Azure Container Instances deploy sample with two ports and ACR credential
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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