@Deepak Patil Sorry for the delayed response!
The right approach here would be to have you move to the updated APIs that are used. If you want to look at the relevant APIs that are being replaced the current documents here point to the newer versions
Resource RateCard (Preview) | Microsoft Learn
Resource Usage (Preview) | Microsoft Learn
----------------------------------------------------------------------------------------------------------------------
If the response helped, do "Accept Answer" and up-vote it