Azure monthly estimated billing - azure

I am curious of how the billing for azure works,
I choose B1 pricing tier when i created the service plan for testing purposes,
I created 2 app services
My thought was it would end up around 13 USD a month which it estimated when i choose the plan,
But it ended up at around 70 USD at the end of the month,
Now my question is how does this work ? how does it calculating the cost ?
If i choose to scale it up to a P1V2, which is estimated to 83 USD a month, with my current workload will it go up to over 400+ USD ??

Related

Stripe Subscriptions : 2 months free with yearly subscription?

This may be a bigger question than how do I give 2 months free but if it is that simple... awesome
I want to have 3 levels of pricing so that the consumable credits get cheaper the more you commit to buying per month. You basically get more savings when you purchase a yearly subscription of buy 10 get 2 free
Here's the math:
Base subscription - $99
App Addon (optional) - $100
Consumable Credits (Volume Pricing?) - starts at $20 each for 15, $18.33 each for 30 - $16 each for 50.
this works great for the monthly subscription plan and I think I can set up a subscription with multiple products / prices
Then the complicated math:
$20 each per year for 180 and $16 each per year for 600 THEN apply a buy 10 months get 2 months free logic to this as well so they get a 16.66666667% discount? and mind you they would also get the base fee and addon fee reduction as well.
How would you set this up in stripe?
I think I could have 3 products in stripe and each would have a monthly price and a yearly price, then just have a coupon for 16.666667% off?
is there a better way?

How much does Azure Insights cost if the data retention period exceeds 90 days?

It is said that data is kept for 90 days for the cost of Azure insights, but if you set a value larger than 90 days, how much will the cost be?
Since the free period is 90 days, will it cost only the amount exceeding that number of days, or will it cost all the number of days if it exceeds?
For example, in the following cases, which is pattern 1 or pattern 2?
When the amount of data is 5 [GB] and the number of data retention days is 120 days,
Pattern 1: 16.80 x 5 x 1 month
Pattern 2: 16.80 x 5 x 4 months
I didn't find the answer when I searched.
I would appreciate if you could let me know.
You only pay the extra part.
This is an example for log analytics, but it works the same way for app insights: https://azure.com/e/891538a848fb4c89ba4876ece4bf7919
You can also check: https://azure.microsoft.com/en-ca/pricing/details/monitor/
Every GB of data ingested into your Azure Monitor Log Analytics
workspace can be retained at no charge for up to the first 31 days.
Data retained beyond the first 31 days will be charged as per the data
retention prices listed below.
That is what it cost to have 1Gb for 121 days (31 free + 90 payed)

Continuing cost of storage for hosted solution

I've searched by can't find anything, but looking at Azure Storage and AWS S3, the rate at which you're billed is based on how much storage is used; most of these measurements are on a per month basis.
Does this mean there is a one time charge for the storage or does is compound?
EG:
Assumption: $1/1Gb
One month I store 30GB of data, the next month I use another 30GB of data. Does that mean that I would pay $30 each month or would I pay $30 the first month and then $60 the next month. The former is $60 total and the latter being $90 total.
Billing is compounded based on the actual storage used.
Let's assume that on the 1st day of your billing cycle in 1st month, you upload 30 GB and then on the 1st day of your billing cycle in 2nd month, you uploaded another 30 GB.
So for 1st month you stored 30 GB thus the price would be $30 for 1st month. In the 2nd month you stored 60 GB (30 GB from 1st month and 30 GB for the 2nd month) so the price for the 2nd month would be $60. So in total you would be paying $90 in two months.
most of these measurements are on a per month basis
Well, yes and no. The rate is a monthly rate, but for object storage services, it's typical for the bill to be calculated hourly.
Assuming 750 (round number) hours in a month, storing 750GB for around 2 hours would be the same price as storing 2GB for the entire month.
You pay for what you use for as long as you use it, prorated against some minimum time granularity, which is typically an hour.
These questions are answered in the various vendors' documentation.
Note that this is true for object storage services, but not block storage services like Elastic Block Store. These services give you a fixed number of GB of storage capacity in disk volumes, and you are billed for the provisioned capacity because it's all there all the time, whether you are using that space or not.

Calculating Azure pricing

The price calculator Azure does not show option for us we inform the number of hours that we use his service. Is the price calculator Windows Azure calculating 24 hours of use per day during the month?
How can I calculate the amount I pay if I access the Windows Azure services for two hours for day throughout the month?
1. The calculator shows both prices per hour and per month. Yet, the monthly price is estimated on average of (fully consumed) 744 hours per month.
2. You're paying for the resources you consume, not for the resources you accessed. That means that even if nobody visited your website/webrole for the entire month, you would still have to pay the compute cost (the bandwidth cost will be $0 though).

stripe payment - how to suspend a subscription (not cancel)

We want to use the stripe payment system.
Our model is based on a weekly fee but billed every 13 weeks. So, the user will initially be billed for 13 weeks at the initial subscription quantity.
Our users will be changing the quantity of the subscription several times over the 13 week billing period and some weeks have subscription level of zero.
Can we set a subscription quantity to zero (0), to suspend the subscription.
For Example
$10 per week per subscription unit
First bill is for 13 weeks, for a total of $130.
At the end of the third (3) week, the customer increase subscription quality to 3, for a weekly charge of $30.
At the end of the sixth (6) week, the customer decrease subscription quality to 0, for a weekly charge of $0.
At the end of the nineth (9) week, the customer increase subscription quality to 4, for a weekly charge of $40.
So, the second charge (after 13 weeks) is:
Bill 13 weeks in advance at the current subscription quantity 4: $40 * 13 weeks = $520
Prorate charges
3 weeks * ($30 - $10 (prepaid)) = $60
3 weeks * ($0 - $10 (prepaid)) = -$30 (credit)
4 weeks * ($40 - $10 (prepaid)) = $120
Total Charge: $670 = 520 + 60 - 30 + 120
I'm not sure if the math will work out exactly like you laid it out here, but you can definitely handle stuff like this with Stripe. There's a lot of material on the support site and API docs about proration.
Some basics about proration
Integration guide section on quantity
The update subscription API which has a bit at the bottom about how proration works
So in short, yes, you should be able to do what you're suggesting.

Resources