multicloud365
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud
No Result
View All Result
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud
No Result
View All Result
multicloud365
No Result
View All Result

Get Microsoft Purview Incidents utilizing Graph API

admin by admin
March 29, 2025
in Azure
0
Get Microsoft Purview Incidents utilizing Graph API
399
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter


Microsoft Purview is a complete knowledge governance answer that helps organizations handle their knowledge and guarantee compliance with numerous regulatory necessities.

One of many essential points of knowledge governance is monitoring and responding to incidents associated to knowledge breaches, delicate knowledge publicity, and coverage violations.

Microsoft Purview offers strong capabilities to deal with these incidents, and the Microsoft Graph API allows seamless integration and automation of incident administration.

We wished to fetch the incident logged right here by using graph API:

Assumption is that you have already got APP registered in AzureAD for Microsoft Graph SDK module.

If in case you have not accomplished that then first end that step earlier than shifting ahead.

Microsoft Graph SDK overview

Now that you’re setup with Microsoft graph SDK, please present the APP with following rights

SecurityIncident.Learn.All

Don’t forget to ADD Admin consent

Now Join the Microsoft Graph PowerShell SDK.

Join-MgGraph -ClientId $MgGClientID -CertificateThumbprint $ThumbPrint -TenantId $TenantName

Now first create filtering mechanism of begin and Finish Dates:

$startDate = “2024-07-08”

$endDate = “2024-07-10” # Regulate this as wanted

$filterQuery = “createdDateTime ge $startDate and createdDateTime le $endDate”

Now you’ll be able to gather all of the incident utilizing beneath code in a group.

$allIncidents = @()

$uri = “https://graph.microsoft.com/beta/safety/incidents`?`$filter=$filterQuery”

$depend =0

do {

    # Make the request

    $response = Invoke-MgGraphRequest -Methodology Get -Uri $uri

    # Add the present batch of incidents to the allIncidents array

    $allIncidents += $response.worth

    # Examine if there’s a nextLink to comply with

    if ($response.’@odata.nextLink’) { $uri = $response.’@odata.nextLink’ } else { $uri = $null }

    $depend++

    $depend

} whereas ($uri -ne $null)

Listed here are the outcomes:

You may comply with this process and improve the script as required.

Thanks for studying …
Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

PowerShell Quick Monitor

Tags: APIGraphIncidentsMicrosoftPurview
Previous Post

Save on Azure SQL with Azure Hybrid Profit

Next Post

Obtain seamless digital machine migration to Purple Hat Openshift Virtualization

Next Post
Obtain seamless digital machine migration to Purple Hat Openshift Virtualization

Obtain seamless digital machine migration to Purple Hat Openshift Virtualization

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending

Introducing Distill CLI: An environment friendly, Rust-powered instrument for media summarization

Introducing Distill CLI: An environment friendly, Rust-powered instrument for media summarization

March 26, 2025
Azure VMware Answer: A Step-by-Step Information To Migrate Your Workloads 

Azure VMware Answer: A Step-by-Step Information To Migrate Your Workloads 

April 3, 2025
Mastering Pronunciation: A Deep Dive into Kaldi-Powered Speech Evaluation (Half 1) | by Suraj Singh | Apr, 2025

Mastering Pronunciation: A Deep Dive into Kaldi-Powered Speech Evaluation (Half 1) | by Suraj Singh | Apr, 2025

April 25, 2025
From a Level to L∞ | In the direction of Information Science

From a Level to L∞ | In the direction of Information Science

May 3, 2025
Introducing step failure methods in Bitbucket Pipelines

Rapidly diagnose points by viewing earlier Pipeline runs

March 25, 2025

Batch script to test tablespace utilization and ship e mail notification

January 31, 2025

MultiCloud365

Welcome to MultiCloud365 — your go-to resource for all things cloud! Our mission is to empower IT professionals, developers, and businesses with the knowledge and tools to navigate the ever-evolving landscape of cloud technology.

Category

  • AI and Machine Learning in the Cloud
  • AWS
  • Azure
  • Case Studies and Industry Insights
  • Cloud Architecture
  • Cloud Networking
  • Cloud Platforms
  • Cloud Security
  • Cloud Trends and Innovations
  • Data Management
  • DevOps and Automation
  • GCP
  • IAC
  • OCI

Recent News

Closing the cloud safety hole with runtime safety

Closing the cloud safety hole with runtime safety

May 20, 2025
AI Studio to Cloud Run and Cloud Run MCP server

AI Studio to Cloud Run and Cloud Run MCP server

May 20, 2025
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact

© 2025- https://multicloud365.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Cloud Architecture
    • OCI
    • GCP
    • Azure
    • AWS
    • IAC
    • Cloud Networking
    • Cloud Trends and Innovations
    • Cloud Security
    • Cloud Platforms
  • Data Management
  • DevOps and Automation
    • Tutorials and How-Tos
  • Case Studies and Industry Insights
    • AI and Machine Learning in the Cloud

© 2025- https://multicloud365.com/ - All Rights Reserved