Sdílet prostřednictvím


Dotazy na tabulku AzureAttestationDiagnostics

Dochází k nějakým chybám autorizace?

Počet požadavků zprostředkovatele ověření identity, u kterých selhala autorizace

// To create an alert for this query, click '+ New alert rule'
AzureAttestationDiagnostics
| where toint(ResultSignature) == 403
| summarize count() by ResourceUri, ResultSignature, _ResourceId
// ResultSignature contains HTTP status code returned by the request, (e.g.  200, 300, 401, etc.)
// ResourceUri contains the URI of the request

Dochází k nějakým pomalým požadavkům?

Seznam požadavků zprostředkovatele ověření identity, které trvaly déle než 1 sekundu

// To create an alert for this query, click '+ New alert rule'
let threshold=1000; // let operator defines a constant that can be further used in the query
AzureAttestationDiagnostics
| where DurationMs > threshold
| summarize count() by OperationName, _ResourceId

Jak aktivní je tento poskytovatel ověření identity?

Spojnicový graf znázorňující trend objemu požadavků poskytovatele ověření identity na jednotlivé operace v průběhu času

AzureAttestationDiagnostics
| where TimeGenerated > ago(1d)
| summarize count() by bin(TimeGenerated, 1h), OperationName // Aggregate by hour
| render timechart

Kdo volá tohoto poskytovatele ověření identity?

Seznam volajících identifikovaných podle jejich IP adresy a hlavního názvu uživatele (UPN) AAD s počtem požadavků

AzureAttestationDiagnostics
| summarize count() by CallerIpAddress, tostring(Identity.callerAadUPN)

Došlo k nějakým změnám zásad ověření identity?

Seznam úspěšných žádostí zprostředkovatele ověření identity o změnu zásad ověření identity nebo podpisových certifikátů zásad

// To create an alert for this query, click '+ New alert rule'
let policyOperations = pack_array(
    "AddPolicyCertificate",
    "AddPolicyManagementCertificate",
    "AddPolicyManagementCertificates",
    "RemovePolicyCertificate",
    "RemovePolicyManagementCertificate",
    "RemovePolicyManagementCertificates",
    "ResetAttestationPolicy",
    "SetCurrentPolicy",
    "SetCurrentPolicyWithHttpMessagesAsync",
    "SetEffectiveAttestationPolicy",
    "DeleteCurrentPolicy",
    "DeletePolicy"
);
AzureAttestationDiagnostics
| where toint(ResultSignature) == 200
| where policyOperations contains OperationName
| take 100

Došlo při pokusu o konfiguraci zásad ověření identity k nějakým chybám?

Seznam chyb při pokusu o konfiguraci zásad ověřování identity nebo podpisových certifikátů zásad

// To create an alert for this query, click '+ New alert rule'
let policyOperations = pack_array(
    "AddPolicyCertificate",
    "AddPolicyManagementCertificate",
    "AddPolicyManagementCertificates",
    "PrepareToSetPolicy",
    "PrepareToUpdatePolicy",
    "RemovePolicyCertificate",
    "RemovePolicyManagementCertificate",
    "RemovePolicyManagementCertificates",
    "ResetAttestationPolicy",
    "SetCurrentPolicy",
    "SetCurrentPolicyWithHttpMessagesAsync",
    "SetEffectiveAttestationPolicy",
    "DeleteCurrentPolicy",
    "DeletePolicy"
);
AzureAttestationDiagnostics
| where toint(ResultSignature) >= 300
| where policyOperations contains OperationName
| take 100