An Azure service that is used to provision Windows and Linux virtual machines.
Hello @Sergio diaz
If you have the VM’s public IP address or Azure payment receipts, you can identify the associated Azure subscription and billing account by using the Azure portal, billing information, or Azure tools such as PowerShell, CLI, or the Instance Metadata Service. Azure does not automatically map a VM IP to an account externally, but the steps below will help you trace it accurately.
If you’re paying for an Azure Virtual Machine but are unsure which Azure account or subscription it belongs to, here are the supported and recommended approaches.
1.Identify the subscription using Azure billing receipts :
Azure billing invoices and receipts always reference the subscription name or ID that incurred the charges.
What to do
- Sign in to the Azure portal
- Navigate to Cost Management + Billing
- Open the invoice or payment receipt
- Review the Subscription name / Subscription ID listed on the invoice
This is the most reliable way to identify the account responsible for the VM charges.
https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/view-all-accounts
https://learn.microsoft.com/en-us/azure/cost-management-billing/understand/understand-invoice
2.Locate the VM using its public IP address
If you have access to the Azure tenant, you can search for the public IP resource and identify which VM or network interface it is attached to.
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses
3.Find the subscription from inside the VM
If you can sign in to the VM, Azure provides the Instance Metadata Service, which exposes subscription and resource details securely from within the VM.
What this provides
- Subscription ID
- Resource group
- VM name
https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows
4.Use Azure PowerShell or CLI.
If you have access to multiple subscriptions under the same tenant, you can use Azure PowerShell or CLI to identify which subscription contains the VM.
https://learn.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest
https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/filter-view-subscriptions
If you’re still unable to locate the correct Azure account or subscription after following the above steps, we’ll be happy to assist further. Please add your details in the Comments section, and our team will get back to you to help investigate this further.
Thanks,
Manish.