Azure app sevice give yaml exception

Sahas Saurav 5 Reputation points

We are deploying the our code using Azure Devops pipeline in that we configure docker build and push the docker image to Azure Container Registry after that image pushed in the Container Registry. We deploy that image to Azure app service. And we are facing this excaeption during of server

Exception in multi-container config parsing: Exception: System.InvalidCastException, Msg: Unable to cast object of type 'YamlDotNet.RepresentationModel.YamlScalarNode' to type 'YamlDotNet.RepresentationModel.YamlMappingNode'.

User's image

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
406 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,040 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Sreeju Nair 11,856 Reputation points

    It seems the issue with the compose file. Can you double check your compose file to ensure that it is as per the specifications.

    Based on my reading, I saw users getting this error when they are using ports other than 80 and 443 in the YAML file. I recommend you to review your Compose file based on the following guidelines

    Hope this helps