Azure billing

Overa890 20 Reputation points
2024-05-19T14:12:45.85+00:00

We are getting 400 error when executing get-Azcosumptionsusagedeatils
Second issue How billing is charged when sunchronization occurs from azure files to on-premises server

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,201 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,824 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,547 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 44,506 Reputation points Microsoft Employee
    2024-05-20T06:54:34.84+00:00

    @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:

    1. Check that you have the correct permissions to retrieve usage details for the subscription. You may need to be a member of the Owner or Contributor role for the subscription.
    2. Check that you are using the correct subscription ID and tenant ID in the command.
    3. 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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marcin Policht 16,005 Reputation points MVP
    2024-05-19T14:19:20.3533333+00:00

    It's Get-AzConsumptionUsageDetail

    https://learn.microsoft.com/en-us/powershell/module/az.billing/get-azconsumptionusagedetail?view=azps-11.6.0

    For Azure Files Sync pricing, refer to

    https://azure.microsoft.com/en-us/pricing/details/storage/files/

    The total cost of Azure File Sync services is determined by the number of servers that connect to the cloud endpoint (Azure file share) plus the underlying costs of Azure Files (including storage and access costs) and outbound data transfer.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. akinbade abiola 5,555 Reputation points
    2024-05-19T21:24:36.6+00:00

    Hello Overa890,

    Thanks for your question.

    A 400 error generally indicates a bad request and it can be caused by various factors, which may include: Incorrect permissions, or incorrectly formed query. It currently looks like the query was not properly typed. Here is a sample usage:

    Get-AzConsumptionUsageDetail -StartDate 2017-10-02 -EndDate 2017-10-05 -Top 10
    
    

    The query format can be found here:

    https://learn.microsoft.com/en-us/powershell/module/az.billing/get-azconsumptionusagedetail?view=azps-11.6.0

    You can also confirm the role assigned to the user running the command.

    az role assignment list
    

    For your second question, the total cost contains the cost of the:

    For detailed calculation you can use the pricing calculator: See: https://azure.microsoft.com/en-us/pricing/calculator/

    Please let me know if you have further questions**

    You can mark it 'Accept Answer' if this helped.

    0 comments No comments