title: How to deploy Azure functions, and ensure the packages get updated
body: <p>I have my functions working locally, then when I deploy them I am getting errors like :</p>
  <blockquote>
  <p>Result: Failure Exception: ModuleNotFoundError: No module named 'azure.cosmosdb'. Troubleshooting Guide: <a href="https://aka.ms/functions-modulenotfound" rel="nofollow noreferrer">https://aka.ms/functions-modulenotfound</a> Stack: File &quot;/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py&quot;, line 284, in _handle__function_load_request func = loader.load_function( File &quot;/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/utils/wrappers.py&quot;, line 42, in call raise extend_exception_message(e, message) File &quot;/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/utils/wrappers.py&quot;, line 40, in call return func(*args, **kwargs) File &quot;/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/loader.py&quot;, line 76, in load_function mod = importlib.import_module(fullmodname) File &quot;/usr/local/lib/python3.8/importlib/<strong>init</strong>.py&quot;, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File &quot;/home/site/wwwroot/user-add/<strong>init</strong>.py&quot;, line 4, in  from azure.cosmosdb.table.tableservice import TableService</p>
  </blockquote>
  <p>I think this looks like the Python env on the Azure side doesn't have azure as I specify on my import like so:</p>
  <pre><code>import logging
  
  import azure.functions as func
  import azure.cosmosdb.table
  from azure.cosmosdb.table.tableservice import TableService
  from azure.cosmosdb.table.models import Entity
  
  
  def main(req: func.HttpRequest) -&gt; func.HttpResponse:
      logging.info('Python HTTP trigger function processed a request.')
  
      user_id = req.params.get('user_id')
      if not user_id:
          try:
              req_body = req.get_json()
          except ValueError:
              pass
          else:
              user_id = req_body.get('user_id')
  
      if user_id:
  
          the_connection_string = &quot;redacted&quot;
          table_service = TableService(endpoint_suffix=&quot;table.cosmos.azure.com&quot;,
                       connection_string=the_connection_string)
  
          # table_service.create_table('usertable')
  
          user = {&quot;PartitionKey&quot;: &quot;user&quot;,
                  &quot;RowKey&quot;: user_id}
  
          table_service.insert_entity('usertable', user)
  
          return func.HttpResponse(f&quot;{user_id} added to the user database&quot;)
  
      else:
          return func.HttpResponse(
              &quot;This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.&quot;,
              status_code=200
          )
  
  </code></pre>
  <p>I don't understand what I need to do to force an equivalent pip install on their side?    Which is mad as it is supposed to be serverless?</p>