Abfragen für die Tabelle "ACICollaborationAudit"
Informationen zur Verwendung dieser Abfragen im Azure-Portal finden Sie im Log Analytics-Lernprogramm. Informationen zur REST-API finden Sie unter "Abfrage".
Wie oft wurde pro Pipeline eine Ressource gewährt?
Gibt die Anzahl der Gewährten des Zugriffs für Ressourcen während der Pipelineausführung zurück. Gruppiert nach Dem Typ der Erteilung: Berechtigung (nach Teilnehmer im Produktionsmodus), Referenziert (nach Teilnehmer im Testmodus) oder Besitzer (vom Besitzer der Ressource).
//=================================================================================================================================================================
// summarize by CorrelationId groups audits by pipeline run. For more details about summarize see: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/summarizeoperator
ACICollaborationAudit
| summarize PipelineExecutedOn=max(TimeGenerated), ResourceAccessGrantCount=count(), EntitlementResult=array_strcat(make_set(EntitlementResult), ',') by CorrelationId, GrantType, TargetResourceId
| project-away CorrelationId
| order by PipelineExecutedOn desc, TargetResourceId asc
| top 100 by PipelineExecutedOn;
Welche Berechtigungen wurden meiner Ressource gewährt?
Suchen Sie Berechtigungen, die CI-Ressourcen gewährt wurden. Kann verwendet werden, um eine bestimmte Ressource abzufragen.
//==============================================================================================
// For specific results, insert values in the let statements and uncomment the where filters within the query
// let partialResourceId = "<Full or Partial resource name (DataAsset, DataSet or Script) to look for (e.g. "dataassets/e2etest2020qqigqeqp">");
ACICollaborationAudit
| where GrantType == 'Entitlement'
//| where TargetResourceId has partialResourceId
| extend ShortOperationName=tostring(array_slice(split(OperationName, '/'), -1, -1)[0])
| summarize TimeGenerated=max(TimeGenerated), EntitlementResult=array_strcat(make_set(EntitlementResult), ','),
GrantSource=any(GrantSource), GrantSourceType=any(GrantSourceType),
TargetResourceId=any(TargetResourceId), TargetResourceType=any(TargetResourceType), ParticipantName=any(ParticipantName),
OperationName=any(ShortOperationName)
by GrantCorrelationId
| project-away GrantCorrelationId
| order by TimeGenerated desc
| limit 100;
Auf welche Ressourcen wurde durch eine Berechtigung zugegriffen?
Suchen Sie CI-Ressourcen, die für den Zugriff berechtigt waren. Kann verwendet werden, um eine bestimmte Berechtigung abzufragen.
//============================================================================================
// For specific results, insert values in the let statements and uncomment the where filters within the query
// let entitlementOrContract = "<Full or Partial entitlement (or contract) name to look for (e.g. "proposals/e2etest2020qytcbkar","entitlements/e2etest2020nzutiqca">");
ACICollaborationAudit
| where GrantType == 'Entitlement'
//| where GrantSource has entitlementOrContract
| extend ShortOperationName=tostring(array_slice(split(OperationName, '/'), -1, -1)[0])
| summarize TimeGenerated=max(TimeGenerated), EntitlementResult=array_strcat(make_set(EntitlementResult), ','),
TargetResourceId=any(TargetResourceId), TargetResourceType=any(TargetResourceType),
ParticipantName=any(ParticipantName), GrantSource=any(GrantSource), GrantSourceType=any(GrantSourceType),
OperationName=any(ShortOperationName)
by GrantCorrelationId
| project-away GrantCorrelationId
| order by TimeGenerated desc
| limit 100;
Auf welche Teilnehmer wurde auf meine Ressource zugegriffen?
Suchen Sie Teilnehmer, denen der Zugriff auf CI-Ressourcen gewährt wurde. Kann verwendet werden, um eine bestimmte Ressource abzufragen.
//=====================================================================================================
// For specific results, insert values in the let statements and uncomment the where filters within the query
// let partialParticipantName = "<Full or Partial participant (or tenant) name to look for (e.g. "propmtion.dept@contoso">");
ACICollaborationAudit
| where GrantType == 'Entitlement'
//| where ParticipantName contains partialParticipantName
| extend ShortOperationName=tostring(array_slice(split(OperationName, '/'), -1, -1)[0])
| summarize TimeGenerated=max(TimeGenerated), EntitlementResult=array_strcat(make_set(EntitlementResult), ','),
TargetResourceId=any(TargetResourceId), TargetResourceType=any(TargetResourceType),
GrantSource=any(GrantSource), GrantSourceType=any(GrantSourceType),
OperationName=any(ShortOperationName), ParticipantName=any(ParticipantName)
by GrantCorrelationId
| project-away GrantCorrelationId
| order by TimeGenerated desc
| limit 100;