in function_app/src/helpers/azure_function.py [0:0]
def check_if_azurite_storage_emulator_is_running() -> bool:
"""
Check if the Azurite storage emulator is running. This should fail
if the HTTP request cannot create a connection, while any other
response or exceptions are treated as though the emulator is running.
"""
# Attempt request to Azurite storage emulator
try:
requests.get("http://127.0.0.1:10000/")
except requests.exceptions.ConnectionError as _e:
return False
return True