One of our Azure customers raised a support ticket to find out the creation dates for all their resources on their Azure subscription.
This blog shows you one of the ways to achieve that.
Create an Azure service principal with the az ad sp create-for-rbac command. Make sure to copy the output, as it is required in the next steps.
az ad sp create-for-rbac --name serviceprincipalname --role reader
Creating 'reader' role assignment under scope '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
The output includes credentials that you must protect. Be sure that you do not include these credentials in your code or check the credentials into your source control. For more information, see https://aka.ms/azadsp-cli
'name' property in the output is deprecated and will be removed in the future. Use 'appId' instead.