Closed davidwboyd closed 1 year ago
@davidwboyd Thanks for filing. This is discussed quite a bit in https://github.com/Azure-Samples/azure-search-openai-demo/issues/460 so I'm going to rename that issue for clarity and close this issue. Please look at the suggestions in that thread to see if any workarounds will work for you (it's possible they won't, depending on your permissions).
@pamelafox - So you said this was discussed in #460 but I think that is this ticket as the link takes me right to this ticket. Can you please provide the correct ticket where this is discussed?
Apologies! https://github.com/Azure-Samples/azure-search-openai-demo/issues/4 is the correct issue
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
If the bicep sections with role grants are commented out the upload fails as follows: Processing files... Processing 'C:\Users\dboyd\Documents\BPOakland/data\11009 First Quarter 2020 Groundwater Monitoring and Status Report.PDF' Uploading blob for page 0 -> 11009 First Quarter 2020 Groundwater Monitoring and Status Report-0.pdf Traceback (most recent call last): File "C:\Users\dboyd\Documents\BPOakland\scripts\prepdocs.py", line 364, in
upload_blobs(filename)
File "C:\Users\dboyd\Documents\BPOakland\scripts\prepdocs.py", line 49, in upload_blobs
blob_container.upload_blob(blob_name, f, overwrite=True)
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\core\tracing\decorator.py", line 76, in wrapper_use_tracer
return func(*args, *kwargs)
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\storage\blob_container_client.py", line 1038, in upload_blob
blob.upload_blob(
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\core\tracing\decorator.py", line 76, in wrapper_use_tracer
return func(args, kwargs)
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\storage\blob_blob_client.py", line 742, in upload_blob
return upload_block_blob(options)
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\storage\blob_upload_helpers.py", line 197, in upload_block_blob
process_storage_error(error)
File "C:\Users\dboyd\Documents\BPOakland\scripts.venv\lib\site-packages\azure\storage\blob_shared\response_handlers.py", line 185, in process_storage_error
exec("raise error from None") # pylint: disable=exec-used # nosec
File "", line 1, in
azure.core.exceptions.HttpResponseError: This request is not authorized to perform this operation using this permission.RequestId:828fc72b-801e-00d9-586c-bf27d8000000
Time:2023-07-26T02:53:26.2749484Z
ErrorCode:AuthorizationPermissionMismatch
Content: <?xml version="1.0" encoding="utf-8"?>This request is not authorized to perform this operation using this permission.
RequestId:828fc72b-801e-00d9-586c-bf27d8000000
Time:2023-07-26T02:53:26.2749484Z
AuthorizationPermissionMismatch
Expected/desired behavior
Versions
Mention any other details that might be useful