azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Deployment failed: BadRequest: NetworkAcls is required for this resouce
Please provide us with the following information:
This issue is for a: (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Any log messages given by the failure
After successfully deploying hte Form recognizer, I get this error ERROR: deployment failed: error deploying infrastructure: failed deploying: deploying to subscription:
Deployment Error Details: BadRequest: NetworkAcls is required for this resouce.
Expected/desired behavior
OS and Version?
Windows 10
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
I get the same error after successfully deploying App Service plan. I'm deploying from scratch without using any existing resources.
The only things I changed are additional tags in the "var tags" variable of the "main.bicep" file because my company requires these to deploy new resources. I also hardcoded "param resourceGroupName string" in the "main.bicep" file, so the name of the new resource group complies with the naming conventions my company is using.
I found the issue. I had to clean the variables set up in the .env file of the .azure folder
Hi @TheMLman ,
I'm running into the same issue (I guess).
I would like to know what do you mean with cleaning the variables in the .env file. Does it mean delete all of them? In the .env I set: AZURE_ENV_NAME="xxx" AZURE_LOCATION="westeurope" AZURE_OPENAI_RESOURCE_GROUP="xxx" AZURE_OPENAI_SERVICE="xxx" AZURE_PRINCIPAL_ID="xxx" AZURE_SUBSCRIPTION_ID="xx"
If I delete them I don't think the application can run.
it worked for me by starting from scratch with empty env file, thank you
Hi @mousaab , thanks for getting back to me. I did a fresh installation with an empty env file and it seems to work. I'm getting an error regarding a missing search index but this is another story. I guess to use an existing openai service, I need to grant permissions to my user before provisioning the other services.
Hi. I got the same error in West Europe region. debug message didn't give me a clue to solve this issue. For me, a fresh installation with an empty env file didn't work. But deleting the env file AND changing the region to South Central US region worked fine. I'm wondering whether this occurs only in West Europe. Anyway, thank you for sharing your thoughts.
Pull request 200 fixed this for me... it should be merged.