the parameter azure_search_key should be optional and default to None.
Error Message and Stack Trace (if applicable)
No response
Description
These changes made key in _get_search_client optional, defaulting to None. Consequently, None should be allowed for azure_search_key when initializing the AzureSearch client.
Background: When running my Azure Function App locally, I use a ManagedIdentity. For this setup, I set azure_search_key to None so that _get_search_client falls back to using DefaultAzureCredential()
System Info
System Information
OS: Windows
OS Version: 10.0.19045
Python Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Checked other resources
Example Code
In following code
the parameter
azure_search_key
should be optional and default to None.Error Message and Stack Trace (if applicable)
No response
Description
These changes made
key
in_get_search_client
optional, defaulting toNone
. Consequently,None
should be allowed forazure_search_key
when initializing theAzureSearch
client.Background: When running my Azure Function App locally, I use a ManagedIdentity. For this setup, I set
azure_search_key
toNone
so that_get_search_client
falls back to usingDefaultAzureCredential()
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies