Hi @Sezgin Tabak ,
I suggest you use the new PNP cmdlets, it supports the modern authentication that uses client id+ certificate/clientSecret.
- https://pnp.github.io/powershell/articles/connecting.html#connect-by-using-your-own-azure-ad-application
- https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#acs-legacy-app-only-using-a-clientid-and-clientsecret-and-an-url
How to upload a file?
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.