I have created a Key Vault, an the application should be able to consume this key vault.
This works if a add the application via the portal in the access policies.
However, it seems that the ObjectId actually stored (in the access policies property in resources.azure.com), is not the application id nor the object id of the application I have registered.
Any ideas to obtain that 'ObjectID' for a app registration/service principal so that I can map the object ID in my ARM template?