Mapping values are not allowed in this context


{tocify} $title={Table of Contents}



Issue


The issue is related to deployment, where I am deploying azure services using yaml files.

In the yaml file it has a dedicated deployment job for each azure service.

And when I tried to run the pipeline , it  gave me the below error


Mapping values is not allowed in this context


         "Mapping values are not allowed in this context"


Why it happened

Below is snap of definition in yaml file

incorrect yaml file


YAML requires a specific indentation and spacing to work . And it's not like JSON, where it ignores rather it will stop you and tell you to follow the rules of indentation and space etc.

That's what happened here

incorrect indentation






What to do

To fix the issue, the rules has to be followed i.e. correct the indentation.


correct indentation



Did the correction and services were happily deployed.



Post a Comment

If you have any suggestions or questions or want to share something then please drop a comment

Previous Post Next Post