Sdílet prostřednictvím


Dotazy pro AzureAttestationDiagnostics table

Pro informace o používání těchto dotazů v portálu Azure naleznete Log Analytics tutorial. Informace o rozhraní REST API najdete v tématu Dotaz.

Jsou nějaké selhání autorizace?

Počet požadavků poskytovatele osvědčení, které neprošly autorizací.

// 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

Existují nějaké pomalé požadavky?

Seznam žádostí poskytovatele atestací, 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í byl tento poskytovatel attestace?

Čárový graf ukazující trend objemu žádostí poskytovatele ověření pro jednotlivé operace v čase.

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

Kdo volá tohoto poskytovatele osvědčení?

Seznam volajících identifikovaných podle jejich IP adresy a AAD UPN s počtem jejich požadavků.

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

Došlo k nějakým změnám v politice osvědčování?

Seznam úspěšných žádostí poskytovatelů atestací o změnu zásad atestace nebo certifikátů pro podepisování 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

Vyskytly se nějaké chyby při pokusu o nastavení atestační politiky?

Seznam jakýchkoli chyb při pokusu o konfiguraci atestační politiky nebo certifikátů pro podepisování politiky.

// 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