Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfa, Azure Hizmet Durumu için Azure Kaynak Grafiği örnek sorgularından oluşan bir koleksiyondur.
Uyarı
Her sorgudan sonra, güncelleştirilmiş sonuçları genel olarak 5 dakika içinde görmeniz gerekir.
Genel Bakış
Bu sayfa, Azure Kaynak Grafı aracılığıyla Kusto Sorgu Dili'ni (KQL) kullanarak Azure hizmetlerinizin ve kaynaklarınızın durumunu izlemenize ve anlamanıza yardımcı olur.
Azure Hizmet Durumu için özel olarak örnek sorgular içerir.
Hizmet Sağlığı için örnek sorgular
Aboneliğe göre Aktif Hizmet Sağlığı etkinlikleri
Bu sorgu, olay türüne göre gruplandırılmış ve etkilenen hizmetlerin sayısını içeren hizmet sorunları, planlı bakım, sistem durumu önerileri ve güvenlik önerileri gibi tüm etkin Hizmet Durumu olaylarını gösterir.
Bir örnek her olay türünü ve bundan etkilenen abonelik sayısını gösterir.
Uyarı
Ortaya çıkan sorunlar abonelik kimliklerine bağlı değildir ve sonuç olarak abonelik kimliği tabanlı ARG aracılığıyla sorgulanamaz. Daha fazla bilgi için bkz. Kaynak Durumu ortaya çıkan sorunlar.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = tostring(properties.EventType), status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime
| where eventType == 'ServiceIssue' and status == 'Active'
| summarize count(subscriptionId) by name
az graph query -q "ServiceHealthResources | where type =~ 'Microsoft.ResourceHealth/events' | extend eventType = tostring(properties.EventType), status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime | where eventType == 'ServiceIssue' and status == 'Active' | summarize count(subscriptionId) by name"
Tüm aktif sağlık danışmanlığı etkinlikleri
Bu sorgu, erişiminiz olan her abonelikteki Hizmet Sağlığı üzerinden gelen tüm aktif sağlık uyarısı etkinliklerini listeler.
Uyarı
Sağlık Uyarıları için Mitigation Time yalnızca uyarının sona erme zamanını gösterir. Sağlık Uyarılarının ayrı bir azaltım süresi olmadığından bu alan için geçerli değildir. Daha fazla bilgi için bkz. abonelik kimliğine göre Events-List.
Yaklaşan tüm hizmet kullanımdan kaldırma olayları, aktif durumdaki tüm hizmet durumu danışmanlığı olaylarının bir parçasıdır.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = todatetime(tolong(properties.ImpactMitigationTime))
| where eventType == 'HealthAdvisory' and impactMitigationTime > now()
az graph query -q "ServiceHealthResources | where type =~ 'Microsoft.ResourceHealth/events' | extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = todatetime(tolong(properties.ImpactMitigationTime)) | where eventType == 'HealthAdvisory' and impactMitigationTime > now()"
Yaklaşan tüm hizmet kullanımdan kaldırma olayları
Bu sorgu, tüm abonelikleriniz genelinde kullanımdan kaldırma işlemleri için yaklaşan tüm Hizmet Durumu olaylarını döndürür.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = properties.EventType, eventSubType = properties.EventSubType
| where eventType == "HealthAdvisory" and eventSubType == "Retirement"
| extend status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = todatetime(tolong(properties.ImpactStartTime)), impactMitigationTime = todatetime(tolong(properties.ImpactMitigationTime)), impact = properties.Impact
| where impactMitigationTime > datetime(now)
| project trackingId, subscriptionId, status, eventType, eventSubType, summary, description, priority, impactStartTime, impactMitigationTime, impact
Tüm etkin planlı bakım olayları
Bu sorgu, erişim sağladığınız tüm aboneliklerdeki etkin planlı bakım Hizmet Sağlığı olaylarının listesini bulur ve döndürür.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = todatetime(tolong(properties.ImpactMitigationTime))
| where eventType == 'PlannedMaintenance' and impactMitigationTime > now()
az graph query -q "ServiceHealthResources | where type =~ 'Microsoft.ResourceHealth/events' | extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = todatetime(tolong(properties.ImpactMitigationTime)) | where eventType == 'PlannedMaintenance' and impactMitigationTime > now()"
Tüm aktif Hizmet Sağlığı olayları
Tüm aboneliklerinizde hizmet sorunları, planlı bakım, sistem durumu önerileri ve güvenlik önerileri gibi tüm etkin Hizmet Durumu olaylarını listelemek için bu sorguyu kullanın.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime
| where (eventType in ('HealthAdvisory', 'SecurityAdvisory', 'PlannedMaintenance') and impactMitigationTime > now()) or (eventType == 'ServiceIssue' and status == 'Active')
az graph query -q "ServiceHealthResources | where type =~ 'Microsoft.ResourceHealth/events' | extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime | where (eventType in ('HealthAdvisory', 'SecurityAdvisory', 'PlannedMaintenance') and impactMitigationTime > now()) or (eventType == 'ServiceIssue' and status == 'Active')"
Tüm aktif hizmet sorunları olayları
Bu sorgu tüm aboneliklerde tüm etkin hizmet sorunlarını (kesintiler) ve Hizmet Durumu olaylarını bulur ve listeler.
ServiceHealthResources
| where type =~ 'Microsoft.ResourceHealth/events'
| extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime
| where eventType == 'ServiceIssue' and status == 'Active'
az graph query -q "ServiceHealthResources | where type =~ 'Microsoft.ResourceHealth/events' | extend eventType = properties.EventType, status = properties.Status, description = properties.Title, trackingId = properties.TrackingId, summary = properties.Summary, priority = properties.Priority, impactStartTime = properties.ImpactStartTime, impactMitigationTime = properties.ImpactMitigationTime | where eventType == 'ServiceIssue' and status == 'Active'"
Sonraki Adımlar
- Sorgu dili hakkında daha fazla bilgi edinin.
- Kaynakları keşfetme hakkında daha fazla bilgi edinin.