I have two active directories as follow
- Corporate
- CorporateSub
All the users even my email id is present in Corporate
directory and all the
resources/subscriptions are in CorporateSub
directory.
I am following this document https://docs.microsoft.com/en-us/azure/azure-sql/database/always-encrypted-azure-key-vault-configure?tabs=azure-powershell to configure Always Encrypted
by using Azure Key Vault.
The below PowerShell
script fails
Set-AzKeyVaultAccessPolicy -VaultName $vaultName -ResourceGroupName $resourceGroupName -ServicePrincipalName $applicationId -PermissionsToKeys get,wrapKey,unwrapKey,sign,verify,list
Error is,
Set-AzKeyVaultAccessPolicy : Cannot find the Active Directory object '' in tenant
XXXXXXXXXXXXXXXXXXXXX