Skip to content

Run Script once after Deployment #316

@Robstei

Description

@Robstei

We have to update our Cosmos DB after we deploy a new version of our function app.

What is the recommended way to do this?

The database is not available from the Internet.
The solution should be as portable as possible, as we might switch to other Azure services.

The appStart hook seems wrongs since it would run multiple times and slow down API responses.

Using Kudu seems bad for multiple reasons:

  • The repo has been archived and is no longer maintained
  • No documentation on how to run something once on deployment. This seems to be something else because we don't want to change the deployment itself. We want to run a migration afterwards.

Thanks for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions