Azure / Azure/bicep

regression: Deployment: if no parameter file is chosen, should ask for unspecified parameter values but doesn't

Open
#11,683 1 comment 1 reaction 1 assignee Claimed by @Usman0111 View on GitHub
story: bicep deploy
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

Reported through documentation users: https://github.com/MicrosoftDocs/azure-docs/issues/113981

REPRO:
1) Deploy the following bicep file:
```bicep
param p1 int
```
- for "Select a parameter file", select "None"
!) does not ask for a value for p1 and instead deployment just fails:
```
{"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The value for the template parameter 'p1' at line '1' and column '545' is not provided. Please see https://aka.ms/arm-create-parameter-file for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":1,"linePosition":545,"path":"properties.template.parameters.p1"}}]}}
```
NOTE: This doesn't repro if you instead specify a parameter file, even if it has no values, e.g.:
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.