SAFE-Stack / SAFE-template

dotnet CLI template for SAFE project
MIT License
283 stars 87 forks source link

Config option for azure auto deployment #520

Closed darren-mk closed 2 years ago

darren-mk commented 2 years ago

Can there be a config option for azure deployment? Currently once it is deployed by dotnet azure .., its minimum cost is about more than $50 per month at least (without meaningful traffic).

reigam commented 2 years ago

dotnet run Azure will deploy to a free tier. You can deploy 10 Apps, get a shared core with 60 CPU min/d, 1GB Ram and 1GB Storage. Great for fast deployment and testing, but I agree that the higher tiers are much to expensive for non commercial use.

darren-mk commented 2 years ago

Thanks for your comment, but I'm not sure if I understand your comment correctly. I did exactly the same command dotnet run azure but it costed me the amount I said above. Does it mean that free tier actually costs something?

reigam commented 2 years ago

Strange. Are you still on your free trial? (200USD to spend on services?). Didn't you have to agree on a payment first? I uploaded several apps and always ended up on (F1:Free). Unfortunately that's all I can say about this topic, since that's all of my knowledge about azure and It's deeper workings.

I do all of my testing and deployment with docker images, which I host on a cloud server (~7USD/month).

Hope somebody with more azure knowledge can help you out.

P.S. to answer your question: no, the free tier should be free. I never payed actual money on azure. Only some of the (virtual) 200USD that went with the free trial.

darren-mk commented 2 years ago

I believe my free trial period had been over. Probably that's why. But tif the service consumes the virtual money given, it isn't technically free I guess?

theprash commented 2 years ago

For the app service the template does not specify a SKU so we end up with the Farmer default which is the free tier. But Farmer also adds a corresponding Application Insights by default which could incur a small cost if the site is used. The app insights can be disabled if necessary:

    let web = webApp {
        ...
        app_insights_off
    }

I'd suggest closing this issue unless further clarification is provided, i.e. what exactly is costing money in the deployment and what is the suggested change?