Share via

Bicep deployment failed with data type

Sukant Virkud 31 Reputation points
2022-12-17T15:51:31.35+00:00

I am trying to deploy bicep template using yml pipeline and passing the tags value using runtime parameters the yml parameter datatype is object and I have declared the tag parameter in bicep object. please check the below error and suggest.

271648-bicep-pip.png

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,221 Reputation points
    2022-12-17T16:05:18.91+00:00

    Hi,

    First, I must say that I am not using Bicep in production and therefore I do not have a lot of experience using it. I don't find why to use it when we can use the portal when I need a GUI or using PowerShell CLI when I need to use textual solution.

    Note: For these who read this thread and do not know what Bicep is, please check this document for a short explanation: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview?tabs=bicep&WT.mc_id=DP-MVP-5001699

    @Sukant Virkud to have more understanding on your specific case, we need you to provide the Bicep file

    In the meantime, please check if the following document solve your need. It explain the structure and syntax of Bicep files

    https://learn.microsoft.com/azure/azure-resource-manager/bicep/file?WT.mc_id=DP-MVP-5001699

    In addition, I recommend to follow the step-by-step demo on deploying virtual Machines using Bicep:

    https://learn.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-bicep&WT.mc_id=DP-MVP-5001699

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.