Reputation: 3278
I have developed the function using HttpTrigger
and deployed it to Azure
cloud using the publish method. I have multiple environments like development
, test
, and production
.
Now how do I know which successful build I have deployed on different environments? Basically, how do I manage to version it in the cloud?
The same goes for other app services
like a web app.
Do I have to push it from host.json
?
Upvotes: 4
Views: 2729
Reputation: 31686
It can be found in the Deployment Center
of the function. Look at the logs
of what was deployed. It should show what the ADO Release
pipeline sets the version to:
Upvotes: 2
Reputation: 222682
Versioning has to be done for your system from your side, Azure has no idea of maintaining version control for your APIs, Apps, etc.
If you have not implemented CI/CD in your organization, try looking out for the features provided by Azure Devops
The simplest way to implement versioning in Azure Functions is using endpoints
. The HttpTrigger Attribute allows the definition of a custom route where you can set the expected version.
Upvotes: 3
Reputation: 938
The only way that I was able to check:
Upvotes: 0
Reputation: 72171
you dont, its up to your ci\cd system to display that information. Azure has no knowledge of the binaries you deploy to webapps\azure functions\etc. same goes for vm's, Azure is not aware of what is going on inside them.
Upvotes: 1