Deployment: Not handling type errors in parameter entry very well
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
Main.bicep:
```bicep
param a int
```
Main.params.json:
```json
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
}
}
```
When deploying, press ENTER for the 'a' parameter value, or enter a string value such as abc.
UNEXPECTED: Deploy will continue. EXPECTED: To retry input
Ask to save values to the params file
UNEXPECTED: The value does not get saved
UNEXPECTED: The error you get is difficult to debug (doesn't mention which parameter or its value):
```
3:38:03 PM: Deployment failed for /Users/stephenweatherford/repos/abc/main.bicep. Please fix following issues in the parameter file /Users/stephenweatherford/repos/abc/main.params.json: Input string was not in a correct format.
```
Contributor guide
Assessment
This issue has not been assessed yet.