I have an application registered both in Application Insights and Azure Active Directory. So, I can send requests to the application
https://management.azure.com/subscriptions/<subId>/resourceGroups/<resGroupId>/providers/Microsoft.Insights/components/myApp/providers/microsoft.insights/metrics?api-version=2018-01-01&metricnames=traces/count&interval=PT1H
to retrieve some Application Insights metrics. But I also need to know the identifier (IP or hostname) of the machine where my application is deployed. Application Insights Analytics queries provide such functionality (there is cloud_RoleInstance column in schema corresponding to the hostname of application's machine).
But I have to use classic Azure REST API (with access_token and without Application Insights Access Key). Can I do that? Or if I cannot could you please provide some proof links that Microsoft prohibits such requests?
Thank you in advance.