Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
get_resources_by_batch,
search_resources,
)
from shared.azure_search_client import get_search_client
from shared.database import initialize_database

# Initialize the function app
Expand All @@ -18,8 +19,11 @@
# Initialize database connection
db, collection = initialize_database()

# Initialize Azure Search client
search_client = get_search_client()

# Register functions
get_resources_by_batch.register_function(app, collection)
search_resources.register_function(app, collection)
search_resources.register_function(app, search_client)
get_filters.register_function(app, collection, db["filter_values"])
get_dependent_workloads.register_function(app, collection)
Loading
Loading