问题
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