Using Azure KeyVault, cannot find object in Azure Active Directory tenant -


using azure keyvault have set resourcegroup, keyvault , key following guide:

https://azure.microsoft.com/en-gb/documentation/articles/key-vault-get-started/

i have set application client in active directory. when try use:

set-azurekeyvaultaccesspolicy 

to grant permissions client application error stating:

"cannot find active directory object 'clientid' in tenant 'tenantid'. please make sure user of application service principal authorizing registered in current subscription's azure active directory."

the clientid correct copied application configuration page in portal. tenant id tenant id current subscription.. not active directory.

the problem seems tenant id active directory different tenant id subscription i'm using. how change tenant id of active directory in azure portal match subscription tenant id?

the tenant id refers unique identifier of azure ad directory. every azure subscription associated directory (or "tenant").

it sounds you've created application in different directory directory associated azure subscription in you've created key vault.

when registering applications, when go "active directory" section of azure management portal, sure choose same directory 1 subscription (the subscription created azure key vault) associated.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -