Azure Diagnostics Extension uses DeploymentId to store performance counter and other data in the storage tables. However, when a VM is deployed thru Azure Resource Manager, finding out what this DeploymentId is, is not apparent.
How does one find this DeploymentId? What API do I query? I need to do this programmatically and I do not have access to the VM itself, can only to call the API.