He was the court poet of Azam Shah and wrote the volume at his request.
This passage describes a poet who was commissioned to write a volume of poetry for Azam Shah, the ruler. The context suggests that this was a formal request made by the ruler.