Azure / deployment-environments

Sample infrastructure-as-code templates to get started with Azure Deployment Environments service.
MIT License
68 stars 218 forks source link

When the manifest.json is not correct it shows "Incorrect file type" instead an actual error. #13

Open mahomedalid opened 1 year ago

mahomedalid commented 1 year ago

When sync a catalog with an incorrect manifest.json is not correct it shows "Incorrect file type" instead an actual error. We found out the issue was that we cannot have a default with value and required: true in the parameters, there was a lot of trial/error on catalog sync to figure it out.

Example param:


  - id: location
    name: 'Location'
    description: 'Region location'
    type: string
    default: 'eastus'
    required: true
ericaguthan commented 1 year ago

Hi @mahomedalid, thanks for reaching out!

There is work currently in progress that will make errors like this more specific and easier to debug.

mahomedalid commented 1 year ago

Thank you @ericaguthan ! We also had a few other instances with confusing errors, instead of creating a issue we can maybe just report them here. For example, when an environment fails to be created it shows something like: "Provisioned state failed", without any specifics about why. Of course, sometimes we can go to the deployments and see the error, but sometimes it is something related to the parameters or something else, that does not show up because the deployment has not been created.