Hi @Nitin Itare
I'm glad that you were able to resolve your issue and thank you for posting your solution, so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.
Issue: "Authentication Failed Error in Azure DevOps Pipeline with Bicep Template".
Solution: "The issue turned out to be a simple syntax error in the container name—there was an unintended space at the end of the name. Which resolved the issue by clearing the space".
If you have any further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.