I hope to get some advice on how to tackle the following task:
I’ve automated the provisioning of SharePoint websites and the user can request a website using a PowerApps form. On the form, they can also select their desired security level for their website. Once they selected their desired level of security and clicked the request button, the flow runs and creates a SharePoint site using a PowerShell script.
What I would like to do now is to create data loss prevention policies (DLP) in Security & Compliance Center in advance and automatically add newly created SharePoint sites to the right DLP policy based on the user’s preferred security level chosen in the PowerApps form.
Is it even possible to automate this process with PowerShell? So far my research is pointing towards a "No".