共用方式為


AutoscaleScaleActionsLog 數據表的查詢

顯示前 50 個自動調整記錄

在過去 24 小時內顯示最新的 Azure 自動調整記錄。

AutoscaleScaleActionsLog 
| where TimeGenerated > ago(24h) 
| limit 50

自動調整作業狀態

清單 最新的自動調整作業、調整方向、實例計數及其狀態。

AutoscaleScaleActionsLog
| project TimeGenerated, ResourceId, CurrentInstanceCount, NewInstanceCount, ScaleDirection, ResultType
| sort by TimeGenerated desc 

自動調整失敗的作業

列出過去一天失敗作業的所有報告。

// To create an alert for this query, click '+ New alert rule'
AutoscaleScaleActionsLog 
| where TimeGenerated > ago(24h)  
| where ResultType == "Failed"