***Updating comment***
pablocastro suggested adding the Search Service Contributor role to my account and this resolved my issue. I have the solution now deployed in my Azure subscription and it makes for an amazing demo. Thank you pablocastro!
---------------- Original post below------------
Thank you for the great work in putting all this together. I am running into a problem when the predocs.ps1 is running:
Running "prepdocs.py"
Ensuring search index gptkbindex exists
Traceback (most recent call last):
File "C:\Users\username\aoaidemo\scripts\prepdocs.py", line 299, in <module>
create_search_index()
File "C:\Users\username\aoaidemo\scripts\prepdocs.py", line 237, in create_search_index
if args.index not in index_client.list_index_names():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\username\aoaidemo\scripts\.venv\Lib\site-packages\azure\core\paging.py", line 124, in __next__
return next(self._page_iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\username\aoaidemo\scripts\.venv\Lib\site-packages\azure\core\paging.py", line 76, in __next__
self._response = self._get_next(self.continuation_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\username\aoaidemo\scripts\.venv\Lib\site-packages\azure\search\documents\indexes\_generated\operations\_indexes_operations.py", line 520, in get_next
raise HttpResponseError(response=response, model=error)
azure.core.exceptions.HttpResponseError: () Authorization failed.
Code:
Message: Authorization failed.
Also I see that the search index doesn't exist. Any thoughts on what I should try are much appreciated.