Web Analytics

Azure-Runbooks

⭐ 61 stars English by sargeschultz11

Azure-Runbooks

License: MIT PowerShell Microsoft 365 Graph API Azure GitHub release Maintenance Made with

A collection of Azure Automation runbooks for Microsoft 365 and Intune management.

Overview

This repository contains PowerShell scripts designed to be used as Azure Automation runbooks for automating various Microsoft 365 and Intune management tasks. These scripts help streamline administrative processes, maintain consistency across your environment, and reduce manual overhead.

Repository Structure

The repository is organized into folders, with each folder containing a specific runbook solution:

Azure-Runbooks/
├── DeviceCategorySync/             # Sync device categories with user departments
├── Report-DiscoveredApps/          # Generate reports of discovered applications
├── Report-IntuneDeviceCompliance/  # Generate device compliance reports
├── Report-DevicesWithApp/          # Find devices with specific applications
├── Alert-DeviceSyncReminder/       # Send reminders for devices needing sync
├── Update-AutopilotDeviceGroupTags/ # Sync Autopilot group tags with Intune categories
├── Alert-IntuneAppleTokenMonitor/  # Monitor Apple token expirations
├── Report-UserManagers/            # Generate reports of users and their managers
├── Report-MissingSecurityUpdates/  # Report on devices missing security updates
├── Sync-IntuneDevices/             # Force sync all managed Intune devices
├── Report-DeviceSyncOverdue/       # Report on devices overdue for sync
├── Report-OneDriveSharedItems/     # Generate reports of shared items in OneDrive
├── Task-SetCompanyAttribute/       # Set company attribute for all users
├── Snipe-IT-UserSync/              # Sync Microsoft 365 users to Snipe-IT users
├── Sync-IntuneToAction1Categories/ # Sync Intune device categories to Action1 custom attributes
Each runbook folder contains:

Authentication

All runbooks in this repository are designed to use Azure Automation's System-Assigned Managed Identity for authentication, which is the recommended approach for Azure Automation. Each folder includes an Add-GraphPermissions.ps1 script that helps assign the necessary Microsoft Graph API permissions to your Automation Account's Managed Identity.

Getting Started

Each runbook includes detailed documentation for implementation and usage. In general, to use these runbooks:

Available Runbooks

Reporting

Device Management

Alerts and Notifications

User Management

Third-Party Integration

Branch Management

This repository follows a simplified Git workflow:

If you're working with a specific development branch, consider creating your own fork to ensure your work isn't affected when branches are deleted.

What's New in v1.4.0

New Runbook: Sync-IntuneToAction1Categories

This release introduces a new integration with Action1 RMM, enabling automated synchronization of Intune device categories to Action1 custom attributes. Key features include:

This integration helps organizations maintain consistent device categorization across both Microsoft Intune and Action1 RMM platforms, enabling better reporting, policy application, and device management workflows.

Discussions

I've enabled GitHub Discussions for this repository to foster collaboration and support among users. This is the best place to:

Check out the Discussions tab to join the conversation. We encourage you to use Discussions for general questions and community interaction, while Issues should be used for reporting bugs or specific problems with the scripts.

Contributing

Feel free to use these scripts as a starting point for your own automation needs. Contributions, improvements, and suggestions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details. --- Tranlated By Open Ai Tx | Last indexed: 2025-12-06 ---