Pros and cons of deploying containers to Azure Functions
As with any technology and as we have seen in Chapter 2, every technology has its pros and cons.
From this chapter, you might be aware it takes quite a few steps to containerize a solution for Azure function apps. We have also learned that Azure Functions are not the technology you would initially select as the primary choice for running a container. The use case works the other way around. You are using Azure Functions but now you need to run a solution with non-standard runtimes or dependencies. If we stick to that use case, it is an acceptable solution for running containers. Let’s take a look at those pros and cons.
Pros
There are definitely a couple of reasons to use containers for Azure Functions.
It solves the problem of unsupported code and dependencies in Azure Functions
This is exactly the use case we described in the previous paragraphs. Your product manager confronts you with a piece of code...