Hi Team,
I am using Powershell V5.1 Exchange Online Module to connect to Data Loss Prevention and create a DLP Policy.
To connect to DLP policy we must connect Connect-IPPSession session and access the security and compliance resources. and then access the DLP resources using New-DLPCompliancePolicy command and o trigger the required operations like Create, Update, remove, etc.
The Challange:
Connect-IPPSession - We are not able to find any way to connect using the certificate (Client ID & Secret/Certificate). It only supports User Principles ( Connect-IPPSSession -UserPrincipalName -ConnectionUri) which means we have to hard code Username and Password somewhere in the configuration settings. This is potentially a risk and not recommended.
Can you please help us with any other alternatives?
Thanks
Aniruddha