Azure cost export to vNet integrated strorage container

Senthilnath TM 241 Reputation points
2021-12-20T07:56:03.58+00:00

I am creating Cost export to my storage account which is vNet integrated & has only few IPs allowed via firewall.

I get the below error when i try adding the storage account.

Error: "Export creation failed.The exports service is not authorized to access the specified storage account 'mystoragecccount'. For more information see: https://go.microsoft.com/fwlink/?linkid=2127915 (Code: 400)"

Are there any IPs which can be whitelisted on storage to allow this Azure export service?

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,642 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,203 questions
{count} vote

Accepted answer
  1. Alan Kinane 16,951 Reputation points MVP Volunteer Moderator
    2021-12-20T09:53:29.55+00:00

    I don't believe this is supported currently. If you are restricting access to the storage account via a service or private endpoint then you are effectively firewalling it by denying access via the public endpoint.

    https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-export-acm-data?tabs=azure-portal
    158890-capture.png

    It's also not possible to assign a system assigned managed identity to the Azure cost management service currently as an exception to the firewall configuration. I don't think public IP address whitelisting is a viable option either due to the fact this comes from an internal Microsoft management API service.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Manu Philip 20,211 Reputation points MVP Volunteer Moderator
    2021-12-20T08:15:18.2+00:00

    Check the following roles requirements are already completed for the account

    1. Cost management Storage Account Contributor role
    2. Cost management Reader role

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.