Is their an action replay code for the azure flute in Pokemon diamond with an action replay?

Yes, there is, but you'd have to get the action replay and its code to activate it. I don't have the code yet, but I have two arceuses already.