Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Run azd up fail #3

Closed
v-jiaodi opened this issue Jun 21, 2023 · 6 comments
Closed

Run azd up fail #3

v-jiaodi opened this issue Jun 21, 2023 · 6 comments
Assignees

Comments

@v-jiaodi
Copy link
Member

Describe the issue:
When executing azd up according to README.md, the error is as follows:
image

Repro Steps:

  1. Clone the code to local.
  2. Run azd up.

Environment:

  • OS: Windows desktop.

Expected behavior:
Run azd up can pass.

@hemarina for notification.

@paulyuk
Copy link
Collaborator

paulyuk commented Jul 1, 2023

Thank you for the report.
This needs to sync with this change:
Azure-Samples/azure-search-openai-demo#322

@v-jiaodi
Copy link
Member Author

v-jiaodi commented Jul 6, 2023

@paulyuk Retest when I synchronize this change Azure-Samples/azure-search-openai-demo#322. At first, I got the following error:
image
But when I execute azd up again, it works fine.
image

@paulyuk
Copy link
Collaborator

paulyuk commented Jul 6, 2023

Wow, thank you for trying after a sync.

There is one special workaround I notice they did in main.bicep which makes that error go away:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/21bac5de946669390014b278c5cf3208a06f1a16/infra/main.bicep#L61C39-L61C39

Essentially, they made another reference to the resource group, and created an implicit Dependson relationship from that resource group. With depends on in place, the RG will always get created before the AI resource. For some reason, today, in ARM/bicep there is a timing issue!

My PR will have the full fix. it's coming momentarily.

@paulyuk
Copy link
Collaborator

paulyuk commented Jul 6, 2023

Beware to anyone testing this issue and hitting the quota issues, you will likely need to purge your deleted resources first to free up capacity before retrying.
https://learn.microsoft.com/en-us/azure/cognitive-services/manage-resources?tabs=azure-portal#purge-a-deleted-resource

@paulyuk
Copy link
Collaborator

paulyuk commented Jul 6, 2023

Fixed by #4

@paulyuk paulyuk closed this as completed Jul 6, 2023
@paulyuk paulyuk self-assigned this Jul 6, 2023
@v-jiaodi
Copy link
Member Author

v-jiaodi commented Jul 7, 2023

@paulyuk Retest with the latest code, still encounter this error: #3 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants