I am using below code. I have replaced the credentials and other GUIDs with XXXX. Please let me know if I am missing anything. The Service principal has read/write perms on