Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.25k stars 753 forks source link

SCM type VSTSRM not supported when decompling #3174

Open mattiasjback opened 3 years ago

mattiasjback commented 3 years ago

Bicep version Bicep CLI version 0.4.63 (7ebed03284)

Describe the bug When running the decompile cmd from Azure CLI 2.24.2 I get an error from Bicep saying: Warning BCP036: The property "scmType" expected a value of type "'BitbucketGit' | 'BitbucketHg' | 'CodePlexGit' | 'CodePlexHg' | 'Dropbox' | 'ExternalGit' | 'ExternalHg' | 'GitHub' | 'LocalGit' | 'None' | 'OneDrive' | 'Tfs' | 'VSO' | null" but the provided value is of type "'VSTSRM'".

This is the breviated resource: { "type": "Microsoft.Web/sites/config", "apiVersion": "2018-11-01", ... "properties": { ... "scmType": "VSTSRM", ... } }

According to the documentation, VSTSRM is a valid input. Our repo is located in Azure DevOps. https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites/config-web?tabs=json

To Reproduce Setup an ARM template with a resource such as above. Run az bicep decompile --file <template.json>

alex-frankel commented 3 years ago

Can you share the original template? Can you try with a more recent api version? Looks like the latest is 2021-01-01