I have registered an application in active directory and created secret for the application.
image for reference:

I have created Azure key vault and created two access policies to the application which I registered in azure active directory.
Image for reference:

I created key in azure key vault.
Image for reference:

I install the SQL Server Connecter in my local machine.
Image for reference:

In SSMS I Configure SQL Server to use EKM by running the following Transact-SQL script:
USE master;
GO
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'EKM provider enabled', 1;
GO
RECONFIGURE;

I created Cryptographic provider by using below code.
CREATE CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM FROM FILE = 'C:\Program Files\SQL Server Connector for Microsoft Azure Key Vault\Microsoft.AzureKeyVaultService.EKM.dll'; GO
Image for reference:

I created SQL Server credential for a SQL Server login to use the key vault where identity is key vault name and secret is concatination of application client id and secret of application without hipens using below code.
USE master;
CREATE CREDENTIAL sysadmin_ekm_cred
WITH IDENTITY = 'ContosoEKMKeyVaulta',
SECRET = '663e01f3-7537-49f6-8074-1ac787d3d452ReplaceWithAADClientSecret'
FOR CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM;
Image for reference:
Image for reference:

I added the credential to the SQL Server administrator's domain login using below code.
ALTER LOGIN bhanu
ADD CREDENTIAL sysadmin_ekm_cred;
Image for reference:

I have created new asymmetric key using below code where PROVIDER_KEY_NAME is my key name which I created in azure key vault.
CREATE ASYMMETRIC KEY EKMSampleASYKey
FROM PROVIDER [AzureKeyVault_EKM]
WITH PROVIDER_KEY_NAME = 'ContosEKMVault',
CREATION_DISPOSITION = OPEN_EXISTING;
I also got the same error .
Image for reference:

I changed My secret string as following
secret = 'clientId+ReplaceWithAADClientSecret'
Code;
USE master;
CREATE CREDENTIAL sysadmin_ekm_cred
WITH IDENTITY = 'ContosoEKMKeyVault', -- for global Azure
SECRET = '<clientId>ReplaceWithAADClientSecret'
FOR CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM;
Image for reference:

Note:
The secret string that is the concatenation of AAD client ID and secret is shorter than 32 characters
It resolved my issue and it run successfully.
Image for reference:
