@Overa890 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
Adding more information to the above response!
Regarding the first issue, the Get-AzConsumptionUsageDetails
cmdlet is used to retrieve the usage details for an Azure subscription. A 400 error typically indicates that there is an issue with the request being sent to Azure. Here are a few things you can try to resolve the issue:
- Check that you have the correct permissions to retrieve usage details for the subscription. You may need to be a member of the
Owner
orContributor
role for the subscription. - Check that you are using the correct subscription ID and tenant ID in the command.
- Check that you are using the correct syntax for the command. You can refer to the Azure documentation for more information on the syntax and parameters for the
Get-AzConsumptionUsageDetails
cmdlet.
Regarding the second issue, when synchronizing data from Azure Files to an on-premises server, the data transfer is charged based on the egress data transfer rates from Azure. The pricing for egress data transfer varies depending on the region and the amount of data transferred. You can refer to the Azure pricing calculator to estimate the cost of data transfer for your specific scenario.
It's worth noting that if you are using Azure File Sync to synchronize data between Azure Files and an on-premises server, there may be additional charges for the Azure File Sync service itself. You can refer to the Azure File Sync pricing page for more information on the pricing model for Azure File Sync.
Additional information: When using Azure Files with Premium File Storage, file updates of Azure Files When file synchronization occurs to an on-premises server that has Azure File Sync installed,
There will be a separate "bandwidth" charge for egress traffic.
This is when communicating from Azure Files (storage account) to on-premises servers etc. outside of Azure. This is a default exception to the elements that are included in the Premium File Storage bill.
Pricing Calculator | Microsoft Azure
Pricing - Bandwidth | Microsoft Azure
Azure Files Pricing | Microsoft Azure
There is similar thread discussion here: Unable to get Azure Consumption Detail
Billing and Subscription team would be the best to provide more insight and guidance on this scenario: https://azure.microsoft.com/en-us/support/options/ it's free, and it's the best choice for you based on your requirement and region
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.