Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Script once after Deployment #316

Open
Robstei opened this issue Nov 22, 2024 · 0 comments
Open

Run Script once after Deployment #316

Robstei opened this issue Nov 22, 2024 · 0 comments

Comments

@Robstei
Copy link

Robstei commented Nov 22, 2024

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

@Robstei Robstei changed the title Run Script once after deployment Run Script once after Deployment Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant