Azure是否会自动更改数据库的定价层? [英] Azure changes pricing tiers for databases automatically?

查看:41
本文介绍了Azure是否会自动更改数据库的定价层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中创建了一个"Web App + DB",并在其中部署了ASP.NET API.对于SQL数据库,我选择了免费计划".

I created a "Web App + DB" in Azure and deployed my ASP.NET API to it. For the SQL database I selected the "Free plan".

现在,在运行API几天后(仅写入了十几个数据集并进行了约30个API调用),Azure/Microsoft将定价层从免费"更改为"S0",将另一个API从免费"更改为改为基本".现在,数据库每天都在产生费用.

Now, after some days of running the API (only a dozen datasets were written and ~30 API calls were made) Azure/Microsoft changed the pricing tier from "Free" to "S0" and for another API from "Free" to "Basic". And now the database produces costs for every day.

为什么会这样? 以及如何阻止Azure在不询问我的情况下这样做?

Why is this happen? And how can I prevent Azure from doing this without asking me?

更新: 一些屏幕截图说明了Azure中sql数据库免费计划的可用性.

UPDATE: Some screenshots to illustrate the availability of free plans for sql databases in Azure.

目前,我有3个带有免费计划的SQL数据库(多长时间?没人知道)和Basic中的2个数据库,它们是以前的免费计划数据库:

Currently I've 3 SQL Databases with a free plan (how long? nobody knows) and 2 databases in Basic, that were former free plan databases:

推荐答案

Azure SQL数据库允许您为每个区域创建一个免费的Azure SQL Server数据库,该数据库在365天后恢复为标准.自从您使用PowerShell创建它以来,这就是我所知道的(我不知道使用其他方法).

Azure SQL Database allows you to create one free Azure SQL Server database per region, it reverts to Standard after 365 days. That is what I know ever since you use PowerShell to create it (I don't know about using other methods).

New-AzureRmSqlDatabase -DatabaseName $DatabaseName  -ServerName $sqlServer.ServerName 
-ResourceGroupName $resourceGroup.ResourceGroupName -Edition 'Free' 
-RequestedServiceObjectiveName 'Free'

目前仅适用于以下地区:

This works only for the following regions, for now:

 Location           DisplayName
 --------           -------------------
 australiaeast      Australia East
 australiasoutheast Australia Southeast
 centralindia       Central India
 eastasia           East Asia
 francecentral      France Central
 japaneast          Japan East
 japanwest          Japan West
 koreacentral       Korea Central
 koreasouth         Korea South
 northcentralus     North Central US
 northeurope        North Europe
 southeastasia      Southeast Asia
 southindia         South India
 uksouth            UK South
 ukwest             UK West
 westcentralus      West Central US
 westeurope         West Europe
 westindia          West India
 westus2            West US 2

这篇关于Azure是否会自动更改数据库的定价层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆