Skip to content

fix: add resource token salt to avoid 404 on AI agent recreate#8488

Open
banrahan wants to merge 1 commit into
Azure:mainfrom
banrahan:salted_hash_404_error
Open

fix: add resource token salt to avoid 404 on AI agent recreate#8488
banrahan wants to merge 1 commit into
Azure:mainfrom
banrahan:salted_hash_404_error

Conversation

@banrahan
Copy link
Copy Markdown
Contributor

Generate a random salt at 'azd ai agent init' time and store it as AZD_RESOURCE_TOKEN_SALT in the azd environment. The Bicep templates in azd-ai-starter-basic feed this salt into uniqueString() so that resource names differ across project teardown/recreate cycles, avoiding collisions with soft-deleted Azure AI accounts.

The salt is best-effort: if generation or storage fails, the templates fall back to the original deterministic uniqueString() hash, keeping the change fully non-breaking.

Fixes #8360

Copilot AI review requested due to automatic review settings May 29, 2026 20:47
Generate a random salt at 'azd ai agent init' time and store it as
AZD_RESOURCE_TOKEN_SALT in the azd environment. The Bicep templates
in azd-ai-starter-basic feed this salt into uniqueString() so that
resource names differ across project teardown/recreate cycles,
avoiding collisions with soft-deleted Azure AI accounts.

The salt is best-effort: if generation or storage fails, the templates
fall back to the original deterministic uniqueString() hash, keeping
the change fully non-breaking.

Fixes Azure#8360

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@banrahan banrahan force-pushed the salted_hash_404_error branch from d763803 to 046c9eb Compare May 29, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

azd ai agent extension - 404 error if you create the same project twice

1 participant