Skip to content

Commit 615a092

Browse files
Add Azure OpenAI soft-delete troubleshooting section
Co-authored-by: ianjensenisme <[email protected]>
1 parent 4432e0c commit 615a092

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/troubleshooting.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ If you see an InsufficientQuota error mentioning "Tokens Per Minute", the reques
88

99
This occurs when Terraform tries to create the private endpoint before the Azure OpenAI (Cognitive Services) account leaves the `Accepted` state; wait until the resource shows `Succeeded` (portal or `az resource show`) and re-run the provisioning (`azd provision`).
1010

11+
## Azure OpenAI resource name already exists error
12+
13+
If you encounter an error like `Code="ResourceNameAlreadyExists" Message="The resource name 'oai-copilot-studio-xyz' is already in use"` during deployment, this typically indicates that an Azure OpenAI resource with the same name exists in a soft-deleted state.
14+
15+
**Symptoms:**
16+
- Deployment fails with `ResourceNameAlreadyExists` error
17+
- The resource was previously deleted via `azd down` or Terraform destroy
18+
- Error occurs within 48 hours of the previous deletion
19+
20+
**Cause:**
21+
Azure OpenAI (Cognitive Services) resources are soft-deleted by default and remain in a "recently deleted" state for 48 hours. During this retention period, the resource name is reserved and cannot be reused.
22+
23+
**Solution:**
24+
In CI/CD workflows, soft-deleted resources are automatically purged after `azd down`. For local development, you can manually purge the resource by following the instructions in the [Clean Up section of the README](../README.md#clean-up).
25+
1126
## Use GitHub Copilot to help troubleshoot
1227

1328
If you're unsure how to fix a deployment error, open the relevant files in VS Code and use GitHub Copilot for suggestions. Copilot can propose TFVARS overrides, sample values, terraform plan snippets, or concise support-request wording; always review and test generated suggestions before applying them.

0 commit comments

Comments
 (0)