Hi @Ajin Martin-FT ,
Thank you for reaching out to Microsoft Q&A for this question.
Generally, it takes a few minutes for a new resource to appear in Portal and be listed through the REST API mentioned here. Infact, the portal uses similar API calls to refresh the view after you have created resource.
Based on the symptom mentioned in the question above, that the resources do no get listed using this API, pagination could be one of the reasons for it. The Resources - List returns the following as resoponse:
* nextLink <-- The URL to use for the next set of results
* value <-- the array of resources
In some cases, the first response might be smaller/contain no resource at all but includes a nextLink
in the reply. This mainly happens because the API might initiate lookup in multiple storage/dataSources. Therefore, you should not rely on the response alone and should use the nextLink
to get the next set of resources. You may also refer to this link for details on Pagination with ARM APIs
In case the above answer does not help you with your issue, I would suggest reaching out to Microsoft Support for detailed investigation of the cause for your Subscription/Resources. Please let me know if you face any issues reaching out to Microsoft Support for it.
Please let me know if you have any questions.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.