azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

HttpResponseError: 403 while running prepdocs.ps1

Open VikashLalit opened this issue 1 year ago • 2 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report ->  Issue in prepdocs.ps1

### Minimal steps to reproduce
> All my azure resources are configured to use selected network and private endpoint, but when i am running prepdocs.ps1 from my local then m getting error 

### Any log messages given by the failure
>  
Azure-Demo\scripts\.venv\Lib\site-packages\azure\ai\formrecognizer\_generated\v2023_07_31\aio\operations\_document_models_operations.py", line 114, in _analyze_document_initial

    raise HttpResponseError(response=response)

azure.core.exceptions.HttpResponseError: (403) Public access is disabled. Please configure private endpoint
### Expected/desired behavior
> I should be able to run even if my azure resources are configured to use selected network.

### OS and Version?
> Windows 10

### azd version?
> run `azd version` and copy paste here.

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

VikashLalit avatar Jan 19 '24 07:01 VikashLalit

Hi @VikashLalit ,

Please track #1159 , this will enable you to use selected networks with prepdocs if you configure your search service appropriately

cc @srbalakr

mattgotteiner avatar Jan 22 '24 17:01 mattgotteiner

Hi @mattgotteiner @srbalakr Hi have adopted the changes from but still getting same error.

my azure resources are using selected network and private endpoint. please help

VikashLalit avatar Jan 29 '24 16:01 VikashLalit