Azure / Azure/bicep

Allow the use of utcNow() in bicepparam files

Open
#13,489 5 comments 9 reactions 1 assignee Assigned to @stephaniezyen View on GitHub
enhancement story: bicep parameters
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
Several Azure resources become immutable upon deployment, so having their name set automatically to include its deploy date makes redeploy easier. Bicep allows for utcNow() in templates as the default value for parameters, but it cannot be used in bicepparam files to automatically generate a name in the same way that this can be accomplished in bicep itself.

**Describe the solution you'd like**
The ability to use the following in a bicepparam file:
```
param imageTemplate: {
name: 'imgtemplate-${utcNow('yyMMdd')}'
...
}
```

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.