An Azure service that provides customers with a serverless container experience.
Azure Container Instances failed without message
Hello everybody,
I currently working on a n application which has a Back- and a Frontend-Part. They are based on Spring Boot and Angular and are deployed with 2 docker containers. The last month it does work properly on the Azure container instances put now it won't deploy for a while. There is following message, well... not actually a message:
"properties": {
"statusCode": "Conflict",
"statusMessage": "{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceDeploymentFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"message\":\"\"}]}}",
"eventCategory": "Administrative",
My azure-config.json looks like following:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"containerGroupName": {
"type": "string",
"defaultValue": "container-group-name",
"metadata": {
"description": "Container Group name."
}
}
},
"variables": {
"container1name": "app-frontend",
"container1image": "docker.xyz.com/hotdesk/frontend:test",
"container2name": "app-backend",
"container2image": "docker.xyz.com/hotdesk/backend:test"
},
"resources": [
{
"name": "[parameters('containerGroupName')]",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2019-12-01",
"location": "[resourceGroup().location]",
"properties": {
"containers": [
{
"name": "[variables('container2name')]",
"properties": {
"image": "[variables('container2image')]",
"resources": {
"requests": {
"cpu": 1,
"memoryInGb": 1.5
}
}
}
},
{
"name": "[variables('container1name')]",
"properties": {
"image": "[variables('container1image')]",
"resources": {
"requests": {
"cpu": 1,
"memoryInGb": 1.5
}
},
"ports": [
{
"port": 80
},
{
"port": 443
}
]
}
}
],
"imageRegistryCredentials": [
{
"server": "docker.xyz.com",
"username": "username",
"password": "password"
}
],
"restartPolicy": "OnFailure",
"osType": "Linux",
"ipAddress": {
"type": "Public",
"ports": [
{
"protocol": "tcp",
"port": 80
},
{
"protocol": "tcp",
"port": 443
}
],
"dnsNameLabel": "appDNS"
}
}
}
]
}
So maybe anyone have an idea why it suddenly will not deploy?