Hi there,
I'm using the rest api mentioned here https://video2.skills-academy.com/en-us/azure-stack/operator/azure-stack-tenant-resource-usage-api?view=azs-2008 to get instances usage information, I have a SQL Server (sqlVM) running on a Virtual Machine sqlVM, I created this via SQL Virtual Machine.
However, when I used the rest api to get usage for both database and virtual machine, they return the same resourceId information.
Here is the VM
Here is the SQL VM
I know the SQL Server runs as a software on the VM but I still believe the resource Id for them would be different because I saw there is a different resourceId for SQL VM specifically (/subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/sqlVM)
Should the rest api return a different resource id for the SQL VM than the VM?