I need to check whether the provided blob is assigned to the organisation represented by tenant ID. Provided information is: - storage URI - SAS token
My solution is to list all the subscription within the organisation, get the subscription of provided blob and find the match.
The problem is, in Azure SDK i can not find any method to get information about subscription.
The only way I can list the properties about my storage account is to use azure CLI by running command
az storage account show
Is there any way to get subscription information having such parameters? If not, could you suggest me some solution to check blob belongingness?