Hello Nikhil.
More information on what the Apigee policies are doing would be helpful. But nevertheless, in Azure API Management, you can use policy expressions to achieve similar functionality as JavaScript policies in Apigee. Policy expressions are C# expressions that can be used to configure and conditionally execute policies. They have read-only access to the request context and can use only whitelisted .NET typesYou can also use named values to keep secrets and “magic” strings out of policies, provide environment-specific values, and enable a single point of change Another option is to externalize the logic as an HTTP endpoint, make a call, and cache the result
Do let us know if it helps.