How to check Azure Pricing tier change history for SQL Server Database?

守給你的承諾、 提交于 2019-12-11 00:58:13

问题


I created an AZURE SQL Database with S0 pricing tier, two months back. But somehow the pricing tier of the same database suddenly got upgraded to P15 for 10 days and then again downgraded to S0.

I want to check when and how this happened! Is there any way I can check pricing tier change history from Azure portal or using any Sql query?

Activity logs of Azure portal do not show any such pricing tier changes.


回答1:


Yes, in the portal you can scale the database:

There is no automatic auto-scaling, so somebody must have done manual changes.

//edit: Changing the SKU results in a "Update SQL Database" event in the activity log:




回答2:


You can see a log of pricing tier changes by querying the sys.dm_operation_status dynamic management view.

SELECT * FROM sys.dm_operation_status   
   WHERE major_resource_id = 'myddb'   
   ORDER BY start_time DESC; 

If you identify a pattern when these changes occur, for instance, the scale up or down occurs at the same time every day, Azure Automation is a good place to verify if a job schedule have been created that changes the service tier.



来源:https://stackoverflow.com/questions/55951893/how-to-check-azure-pricing-tier-change-history-for-sql-server-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!