Skip to content

"Deploy with bicep" VS Code task default deployment name uses month twiceΒ #14763

Closed

Description

Bicep version
v0.29.47

Describe the bug
The default deployment name for the bicep.deploy task uses month twice for the timestamp instead of minutes.
The following screenshot is taken on 7 August 2024 at 10:11 UTC. The expected suggested name should be main-240807-1011, but the suggested name is main-240807-1008.
image

To Reproduce
In Visual Studio Code, when having a bicep file open, press CTRL + SHIFT + P and select "Deploy bicep file...". Notice the default deployment name pre-filled in the text box that pops up.

Additional context
Code line: https://github.com/Azure/bicep/blob/624835146a8e48677ae1eafe06b20041ed785905/src/vscode-bicep/src/commands/deploy.ts#L111C34-L111C73

The issue in the code is this line:

value: fileName.concat("-", moment.utc().format("YYMMDD-HHMM")),

which should be

value: fileName.concat("-", moment.utc().format("YYMMDD-HHmm")),

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions