microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
321 stars 678 forks source link

Host name check failed for non-existing function app #693

Closed ifourajay closed 3 months ago

ifourajay commented 4 months ago

Bug Details

When I cloned the repo and tried to deploy when the terraform module reaches the function app step it fails host name check. Says hostname already existing for non-existing resources. I tried it multiple times while using different random strings I get the same issue always. This stops the terraform idempotency feature and stops me from running make deploy.

Steps To Reproduce

  1. Clone the repo
  2. run make deploy

What is the expected behavior? You will get stuck at function app deployment. Even if we try deploying in other resource groups or any random string it fails.

Screenshots image

Information Assistant details

Please provide the following details. You can simply include a screenshot of your Info panel as well.

GitHub branch: [e.g. main] main Version or Latest commit: [obtained by running git log -n 1 <branchname> bf12999aa3eb72b19b277538667495f8e801bdbd What region is your Azure Open AI Service in? eastus

model name: (i.e. gpt-3.5-turbo, gpt-4) 'gpt-35-turbo-16k' model version: (i.e. 0613) 0613

If the bug is confirmed, would you be willing to submit a PR? Yes

dayland commented 4 months ago

It seems there may simply be a conflict with the random string and another used in the same region. To get around this simply delete your TF state file from /infra/terraform.tfstate.d/<workspace name>/terraform.tfstate then run make deploy again.

dayland commented 3 months ago

This issue is marked for closure due to inactivity for 2 weeks. It will be closed in 5 days.

dayland commented 3 months ago

closing due to inactivity