About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation provides only a PowerShell script example for programmatically accessing audit logs, with no equivalent example for Linux or cross-platform shells (e.g., Bash, curl, Python). The use of PowerShell and references to Azure Cloud Shell (which supports PowerShell by default) may disadvantage Linux users or those preferring non-Windows scripting environments. There is no mention of how to perform the same tasks using common Linux tools or languages.
Recommendations:
- Provide a Bash/curl example for querying the Microsoft Graph API to retrieve audit logs, including authentication via client credentials.
- Include a Python script example using the requests library to demonstrate cross-platform access.
- Explicitly mention that the API can be accessed from any platform and provide guidance for Linux/macOS users.
- Where PowerShell is used, add a note or section for equivalent Linux/macOS commands or scripts.
- Consider referencing platform-agnostic tools (e.g., HTTPie, curl, Python) before or alongside PowerShell.
Create pull request