microsoft / microsoft/azurechat

Template deployment fails on KeyVault naming

Open
#172 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
1

Description

Under certain scenarios, the template deployment fails because the KeyVault cannot have a double-hyphen ("--") in its name. This appears to be due to truncation of the "name" parameter entered by the user and combined on line 273 of infra/main.json:

273: "keyVaultName": "[toLower(format('{0}-kv-{1}', variables('kv_prefix'), parameters('resourceToken')))]",

removing the hyphens on either side of kv fixes the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in infra/main.json at line 273 and inspect how the user-provided name is combined into keyVaultName. Reproduce a deployment with a name that triggers truncation, then verify the template deploys successfully without producing a double hyphen in the Key Vault name.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.