Umbraco 13 in Azure Function
a
Hello, I would like to use Umbraco 13 Services with Db integrated into Azure Function. I've found this article https://24days.in/umbraco-cms/2022/umbraco-anywhere/ which shows how we can setup Umbraco in Azure function but it references Umbraco.Cms.Infrastructure and Umbraco.Cms.Persistence.SqlServer version 10.3.2. When I tried this solution I got couple of exceptions of missing service registration, which I tried to collect in the attached picture. I also needed to remove Install Steps because it's registered in the AddCoreInitialServices but with missing dependencies and I don't want to use it from Azure function. Could You please help how can I use Umbraco 13 from Azure Function? Thanks, Attila https://cdn.discordapp.com/attachments/1193915012117450862/1193915012423618661/image.png?ex=65ae7300&is=659bfe00&hm=ed492f3ab1304bd33040b777a6c0859a415036e7985b29a6378142c8d86f5b03&
j
While it's possible to do this, it's unlikely to be a good idea. What are you trying to achieve?
a
I would like to run background processes outside of Umbraco so that I can run expensive operations without slowing down the website or the backoffice.
j
What sort of operations? The main consideration is that it'll boot Umbraco off the same database as your site with every use so you need to treat it as a scaled/load-balanced instance. With that in mind, you might as well scale your app itself in Azure and just use the same single codebase.
Generally speaking, you're usually better off optimising your Umbraco app itself for handling such operations or handling them completely off-app by other means.
125 Views