I am looking for a REST API using which my application can determine the location of the Blob Storage account. The application has an access to a specific blob using the Shared Access Signature.
1 Answer
If you just have a blob's SAS URL, then you will not be able to find the location of the storage account.
In order to get the location of a storage account, you would need to use is Storage Resource Provider API especially Storage Accounts - Get Properties operation there. When you perform this operation, the location of the storage account is available in primaryLocation attribute in response. In order to perform this operation, you would need access to underlying Azure Subscription.
Using Storage REST API it is not possible to find this information currently. This API enables you to manage the data in a storage account.
blob.Uri. You can use Fiddler to intercept what REST API call it makes underneath.