To get creation time of a storage account in Microsoft Azure, use Get-AzureRMStorageAccount PowerShell cmdlet and look at the “CreationTime” property.
To list all storage accounts with their “CreationTime” value, run below command:
- Get-AzureRmStorageAccount | Select-Object StorageAccountName,CreationTime
To export output to a CSV file, add “Export-CSV” command as shown in the below command:
- Get-AzureRmStorageAccount | Select-Object StorageAccountName,CreationTime | Export-CSV AzureStorageAccounts.CSV
About Nirmal Sharma
Nirmal Sharma is a MCSEx3, MCITP and Microsoft MVP in Directory Services. He specializes in directory services, Microsoft Azure, Failover clusters, Hyper-V, and System Center products and has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to Health Packs for ADHealthProf.ITDynamicPacks.Net solutions. Nirmal can be reached at [email protected]