Search code examples
azureazure-storage-filesazure-file-share

Azure storage sync unable to create cloud endpoint


In azure storage sync while trying to create a cloud endpoint I am getting the below error message to enter image description here

enter image description here

I am getting the following error -

Cloud endpoint creation failed.

Code: Authorization failed. Details: The client xxxxxx with object ID xxxxxxxxx doesn't have authorization to perform action xxxxxxxxx

Please help me out for the above mentioned problem statement which also contains the error message.


Solution

  • The Error message represents your account doesn't have role assignment permissions and write permission on defined scope. so, you need to add required permissions. After reproducing from my end getting the same error and below are the steps followed.

    • Created Storage account. enter image description here
    • Then Create File share in Storage account. enter image description here
    • Then Create file sync by taking previously created storage a/c and file share name as shown below. enter image description here Getting the same error as to create cloud end what it needs required permissions. enter image description here

    For above error, you need to

    Step1: Enable AD ownership to azure file share.

    Step2:Set share-level-permissions to “Enable permissions for all authenticated users and users”

    Then save. enter image description here

    Then only cloud end will create.

    If you are unable to add required permissions as mentioned above, I am suggesting that connect with the client who can add you required permissions or try with other account which had these permissions.

    Reference MS Document for share level permissions.