@Gaurav Singh Thanks for using Microsoft Q&A!!
You can use the az costmanagement export create Azure CLI cmdlet
az costmanagement export create --name "TestExport" --type "Usage" --dataset-configuration columns="MeterId" columns="MeterName" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/{SubscriptionId}/resourceGroups/{resourcegroup}-Analytics/providers/Microsoft.Storage/storageAccounts/{storageaccount}" --storage-directory="cost-mgmt-export-report" --recurrence "Monthly" --recurrence-period from="2023-06-28T00:00:00Z" to="2023-06-30T00:00:00Z" --schedule-status "Active" --scope "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroup}"
Once the export task is completed you will see exported csv file like below under the storage container like below -
Please refer to Tutorial: Create and manage exported data which provides details to create a cost management export schedule. You can also refer to az costmanagement export document to know more about the CLI cmdlet.
Please let me know if you have any questions.
Thanks
Saurabh
Please consider hitting Accept Answer button. Accepted answers help community as well.