The Defender-for-Cloud-Apps Toolbox is a robust collection of PowerShell functions designed to streamline and automate the management of Microsoft Cloud App Security (MCAS).
By leveraging these tools, administrators can efficiently handle tasks such as managing blocklists, configuring IP ranges, and more. Below is a detailed overview of its features, functions, requirements, and usage.
The toolbox offers the following key functionalities:
To use the toolbox:
Discovery.manage
, Settings.read
, and Settings.manage
.To install, clone the repository:
git clone https://github.com/alexverboon/Defender-for-Cloud-Apps-Toolbox.git
Import the desired functions into your PowerShell session:
Import-Module .\FunctionName.ps1
Export All IP Ranges
.\Export-MCASIpRange.ps1 -McasPortalAPI "https://yourmcasapi.com" -Token "your_token" -OutputCsvFilePath "c:\Sampledata\mcas_export.csv"
Add a New IP Range
New-MCASIpRange -CsvFilePath "c:\sampledata\mcasip_new.csv" -McasPortalAPI "https://yourmcasapi.com" -Token $token
Remove an IP Range
Remove-MCASIPRange -CsvFilePath "C:\sampledata\mcasip_remove.csv" -McasPortalAPI "https://yourmcasapi.com" -Token $token
This toolbox simplifies administrative tasks in Microsoft Defender for Cloud Apps, enabling efficient management of security configurations through automation.
Introduction to the Model Context Protocol (MCP) The Model Context Protocol (MCP) is an open…
While file extensions in Linux are optional and often misleading, the file command helps decode what a…
The touch command is one of the quickest ways to create new empty files or update timestamps…
Handling large numbers of files is routine for Linux users, and that’s where the find command shines.…
Managing files and directories is foundational for Linux workflows, and the mv (“move”) command makes it easy…
Creating directories is one of the earliest skills you'll use on a Linux system. The mkdir (make…