Hi Koduri, Satya (Contractor) ,
I understand the issue with the HTTP verb used for the GetProperties
API. The 405-UnsupportedHttpVerb
error indicates that the HTTP method you're using is not supported for the resource you're trying to access.
For the Path - Get Properties
API, you should use the HEAD
method instead of GET
This API returns all system and user-defined properties for a path, including the access control list (ACL) if theaction
parameter is set togetAccessControl
Regarding the roles, the Storage Blob Data Contributor
role should be sufficient for reading properties and ACLs
The service principal has the necessary permissions at the correct scope (e.g., container or storage account level).
Ensure you're using the HEAD
method for the GetProperties
API. And Set the action
parameter to getAccessControl
to retrieve the ACL. And verify that the service principal has the Storage Blob Data Contributor
role assigned at the appropriate scope.
For more information:
https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.