@narsimha Apologies for the delay response!
As mentioned in the above answer you can use the same APIs you need to make changes from Compute to Storage.
https://prices.azure.com/api/retail/prices?api-version=2021-10-01-preview&$filter=serviceFamily eq 'Storage'
For more information, refer to this article: https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices
Cost Management automation FAQ
Please let us know if you have any further queries. If the issue still persist, I would like to work closer on this issue.
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.