0
votes

I am trying to query Azure storage table using Rest API. here is what I am doing:

Step 1: fetching auth token using GET : https://login.microsoftonline.com/{tenant-id}/oauth2/token enter image description here

Step 2: Using the auth token in step 1 I am calling Query table API as described in this document : https://docs.microsoft.com/en-us/rest/api/storageservices/query-tables

enter image description here

It is throwing 403 -server failed to authenticate the request error. Isn't it the right approach?

1

1 Answers

2
votes

Authorization with Azure AD is not supported for Azure Table storage.

Reference - Authorize access to Azure blobs and queues using Azure Active Directory

Authorization with Azure AD is available for all general-purpose and Blob storage accounts in all public regions and national clouds. Only storage accounts created with the Azure Resource Manager deployment model support Azure AD authorization. Authorization with Azure AD is not supported for Azure Table storage.

To authorize requests to Azure Table storage, you need to use Shared Key or Shared access signatures.