# Azure Audit logs

**URL:** <https://forums.powershell.org/t/azure-audit-logs/11925>\
**Category:** PowerShell Help\
**Created:** [January 18, 2019, 9:43am UTC](https://forums.powershell.org/t/azure-audit-logs/11925 "2019-01-18T09:43:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike-edwards](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@mike-edwards](https://forums.powershell.org/u/mike-edwards)\
**Post date:** [January 18, 2019, 9:43am UTC](https://forums.powershell.org/t/azure-audit-logs/11925/1 "2019-01-18T09:43:40Z")

</div>

Does anyone have some code that will search the Azure audit logs? I’m trying to set up a script to notify me when a new application gets registered in Azure. I’ve done some checking online, but documentation appears to be a bit sparse.

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![kpatnayakuni](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kpatnayakuni/32/19_2.png) [@kpatnayakuni](https://forums.powershell.org/u/kpatnayakuni)\
**Post date:** [January 18, 2019, 10:12am UTC](https://forums.powershell.org/t/azure-audit-logs/11925/2 "2019-01-18T10:12:49Z")

</div>

[pre]  
Import-Module -Name Az  
Get-AzLog -StartTime ((Get-Date).AddDays(-1)) -EndTime (Get-Date) | `  
Select -Property Level, EventTimestamp, Caller, ResourceGroupName, ResourceId -ExpandProperty Authorization  
[/pre]

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/azure-audit-logs/11925/3 "2024-05-16T20:34:05Z")

</div>


