Azure / Azure/automation-task-template
Value is required in portal task submission even though it is marked as not required in the template
- Dominant language
- No language data
- Stars
- 12
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
In our templates, we have set the following values to not required. However, they are failing when not included in the portal request.

File: https://github.com/Azure/automation-task-template/blob/master/templates/stop-postgresql-flexible-server.json
```
"Notify": {
"type": "Bool",
"metadata": {
"displayName": "Notify Me",
"description": "Notify me about task status",
"format": "notifier",
"required": false
}
},
"EmailID": {
"defaultValue": "user@microsoft.com",
"type": "String",
"metadata": {
"displayName": "Enter email",
"description": "Notification to be sent to email",
"required": false
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with templates/stop-postgresql-flexible-server.json and inspect how the Notify and EmailID metadata is represented. Reproduce a portal task submission that omits these values, then compare the portal's validation with the template's required settings. Done means both fields marked required:false can be omitted without submission failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100