Hi @hamza ali
It looks like you just created a function project without any functions in it. To add the function with the binding, you can click the Azure Function icon and select Create New Function from the context menu.
This will bring up a wizard that will step you through creating a trigger function. Or, you could add the function yourself by creating the method and decorating that method with app.cosmosdb_trigger
attribute:
@app.cosmos_db_trigger(name="documents",
connection="CONNECTION_SETTING",
database_name="DB_NAME",
container_name="CONTAINER_NAME",
lease_container_name="leases",
create_lease_container_if_not_exists="true")
def test_function(documents: func.DocumentList) -> str:
if documents:
logging.info('Document id: %s', documents[0]['id'])
See Develop Azure Functions locally using Core Tools | Microsoft Learn for more details.